An MCP server for OpenHAB
OpenHAB MCP server exists for a simple reason — assistants are far more useful when they can act on OpenHAB directly instead of describing what you should do. An MCP server for OpenHAB.
A MCP (Model Context Protocol) server that interacts with a real openHAB instance.
This project provides an implementation of an MCP server that connects to a real openHAB instance via its REST API. It enables AI assistants like Claude and Cline to interact with your openHAB smart home system.
Once OpenHAB is connected, these are the calls the assistant has available:
Items — The Items tool exposed by this serverThings — The Things tool exposed by this serverRules — The Rules tool exposed by this serverScripts — When connected to Claude or Cline in VSCode, you can use natural language to control and manage your openHAB system, making home automation morePrerequisites — The Prerequisites tool exposed by this serverSetup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.
You will need 2 environment variables: OPENHAB_URL, OPENHAB_API_TOKEN. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. OpenHAB's toolset — Items, Things, Rules and 2 more — is a fair guide to whether it matches your workflow. It is maintained by tdeckers; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against OpenHAB's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| Items | The Items tool exposed by this server. |
| Things | The Things tool exposed by this server. |
| Rules | The Rules tool exposed by this server. |
| Scripts | When connected to Claude or Cline in VSCode, you can use natural language to control and manage your openHAB system, making home automation more accessible and intuitive. |
| Prerequisites | The Prerequisites tool exposed by this server. |
| Variable | Description | Required |
|---|---|---|
| OPENHAB_URL | Endpoint or connection string the server talks to. | Yes |
| OPENHAB_API_TOKEN | Credential the server authenticates with. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.