debmatic-mcp

v1.3.0
io.github.claymore666/debmatic-mcp Checked 5 hours ago Published 5 months ago

MCP server for controlling HomeMatic smart home devices via the CCU JSON-RPC API

Values you need

VariableWhat it is
CCU_HOSTrequired Hostname or IP of your HomeMatic CCU (debmatic, CCU3, or RaspberryMatic)
CCU_PASSWORDrequired secret CCU admin password (same as the WebUI login)
CCU_USERoptional CCU username Default: Admin
CCU_HTTPSoptional Connect to the CCU via HTTPS (self-signed certificates supported) Default: false
CCU_PORToptional CCU API port (80 for HTTP, 443 for HTTPS) Default: 80
CACHE_DIRoptional Directory for the device type cache and session persistence Default: /data
MCP_ALLOWED_ORIGINSoptional Comma-separated allowlist of browser origins. Unset = no cross-origin browser access (default-deny). An allowlisted origin is reflected exactly in Access-Control-Allow-Origin (never '*'); the list also drives DNS-rebinding origin checks
MCP_ALLOWED_HOSTSoptional Extra Host header values accepted by DNS-rebinding protection (comma-separated host:port); add your hostname when behind a proxy or container DNS name

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add debmatic-mcp -e 'CCU_HOST=<CCU_HOST>' -e 'CCU_PASSWORD=<CCU_PASSWORD>' -- npx -y debmatic-mcp@1.3.0 --stdio
Add to claude_desktop_config.json
{
  "mcpServers": {
    "debmatic-mcp": {
      "args": [
        "-y",
        "debmatic-mcp@1.3.0",
        "--stdio"
      ],
      "command": "npx",
      "env": {
        "CCU_HOST": "<CCU_HOST>",
        "CCU_PASSWORD": "<CCU_PASSWORD>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "debmatic-mcp": {
      "args": [
        "-y",
        "debmatic-mcp@1.3.0",
        "--stdio"
      ],
      "command": "npx",
      "env": {
        "CCU_HOST": "<CCU_HOST>",
        "CCU_PASSWORD": "<CCU_PASSWORD>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "CCU_HOST",
      "id": "ccu-host",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "CCU_PASSWORD",
      "id": "ccu-password",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "debmatic-mcp": {
      "args": [
        "-y",
        "debmatic-mcp@1.3.0",
        "--stdio"
      ],
      "command": "npx",
      "env": {
        "CCU_HOST": "${input:ccu-host}",
        "CCU_PASSWORD": "${input:ccu-password}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.debmatic-mcp]
command = "npx"
args = ["-y", "debmatic-mcp@1.3.0", "--stdio"]
env = { "CCU_HOST" = "<CCU_HOST>", "CCU_PASSWORD" = "<CCU_PASSWORD>" }

For AI agents

  1. Ask the user for: CCU_HOST, CCU_PASSWORD. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list_devices, list_interfaces, list_rooms, list_functions, list_programs, list_system_variables, describe_device_type, list_links, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json