MCP.so
登录

MCP Server for OpenHAB

@pendialek

基本信息

分类

其他

传输方式

stdio

作者

pendialek

关于 MCP Server for OpenHAB

mcp-server-openhab

MCP Server for OpenHAB 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

MCP Server for OpenHAB 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Server for OpenHAB?

MCP Server for OpenHAB is a server that connects MCP with the OpenHAB REST API, enabling MCP to interact with OpenHAB items. It is intended for developers and users who want to integrate MCP-based tools with their local OpenHAB smart home instance.

How to use MCP Server for OpenHAB?

Create a .env file with OPENHAB_URL and OPENHAB_TOKEN, install dependencies with npm install, then build the project using npm run build. For development, run with npm run dev (auto-restart); for production, run the compiled server with npm start or similar.

Key features of MCP Server for OpenHAB

  • Provides two MCP operations: getItemState and sendCommand
  • Communicates with OpenHAB via its REST API
  • Requires only URL and API token configuration
  • Built with TypeScript for type safety
  • Supports development mode with automatic restarts

Use cases of MCP Server for OpenHAB

  • Retrieve the current state of any OpenHAB item from an MCP client
  • Send commands to OpenHAB items (e.g., turn lights on/off)
  • Automate smart home actions through MCP-integrated assistants or workflows
  • Monitor item states for dashboards or alerts

常见问题

1

What configuration is required?

You must create a `.env` file with `OPENHAB_URL` (your local OpenHAB instance URL) and `OPENHAB_TOKEN` (an API token from OpenHAB).

2

What MCP operations are available?

Two operations are implemented: `getItemState` (returns the current state of an item) and `sendCommand` (sends a command to an item).

3

What are the runtime requirements?

The server is written in TypeScript and requires Node.js with npm. Dependencies are installed via `npm install`, and the project must be built before production use.

4

How do I run this in development?

Use `npm run dev` to start the server with automatic restart on file changes. For production, first build with `npm run build`, then run the compiled output.

5

Where do I find the API token?

The `OPENHAB_TOKEN` must be generated in your OpenHAB instance’s REST API settings. The server uses it for authenticated requests to the OpenHAB REST API.

评论

其他 分类下的更多 MCP 服务器