MCP Server Studio
MCP server for controlling HomeMatic smart home devices via the CCU JSON-RPC API
Registry name: io.github.claymore666/debmatic-mcp
Add to claude_desktop_config.json:
{
"mcpServers": {
"debmatic-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"CCU_HOST": "<CCU_HOST>",
"CCU_PASSWORD": "<CCU_PASSWORD>",
"CCU_USER": "<CCU_USER>",
"CCU_HTTPS": "<CCU_HTTPS>",
"CCU_PORT": "<CCU_PORT>",
"CACHE_DIR": "<CACHE_DIR>",
"MCP_ALLOWED_ORIGINS": "<MCP_ALLOWED_ORIGINS>",
"MCP_ALLOWED_HOSTS": "<MCP_ALLOWED_HOSTS>"
}
}
}
}Run in your terminal:
claude mcp add debmatic-mcp -e CCU_HOST='<CCU_HOST>' -e CCU_PASSWORD='<CCU_PASSWORD>' -e CCU_USER='<CCU_USER>' -e CCU_HTTPS='<CCU_HTTPS>' -e CCU_PORT='<CCU_PORT>' -e CACHE_DIR='<CACHE_DIR>' -e MCP_ALLOWED_ORIGINS='<MCP_ALLOWED_ORIGINS>' -e MCP_ALLOWED_HOSTS='<MCP_ALLOWED_HOSTS>' -- npx -y [email protected]Add to .cursor/mcp.json:
{
"mcpServers": {
"debmatic-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"CCU_HOST": "<CCU_HOST>",
"CCU_PASSWORD": "<CCU_PASSWORD>",
"CCU_USER": "<CCU_USER>",
"CCU_HTTPS": "<CCU_HTTPS>",
"CCU_PORT": "<CCU_PORT>",
"CACHE_DIR": "<CACHE_DIR>",
"MCP_ALLOWED_ORIGINS": "<MCP_ALLOWED_ORIGINS>",
"MCP_ALLOWED_HOSTS": "<MCP_ALLOWED_HOSTS>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"debmatic-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"CCU_HOST": "<CCU_HOST>",
"CCU_PASSWORD": "<CCU_PASSWORD>",
"CCU_USER": "<CCU_USER>",
"CCU_HTTPS": "<CCU_HTTPS>",
"CCU_PORT": "<CCU_PORT>",
"CACHE_DIR": "<CACHE_DIR>",
"MCP_ALLOWED_ORIGINS": "<MCP_ALLOWED_ORIGINS>",
"MCP_ALLOWED_HOSTS": "<MCP_ALLOWED_HOSTS>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"debmatic-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"CCU_HOST": "<CCU_HOST>",
"CCU_PASSWORD": "<CCU_PASSWORD>",
"CCU_USER": "<CCU_USER>",
"CCU_HTTPS": "<CCU_HTTPS>",
"CCU_PORT": "<CCU_PORT>",
"CACHE_DIR": "<CACHE_DIR>",
"MCP_ALLOWED_ORIGINS": "<MCP_ALLOWED_ORIGINS>",
"MCP_ALLOWED_HOSTS": "<MCP_ALLOWED_HOSTS>"
}
}
}
}| Name | Required | What it is |
|---|---|---|
CCU_HOST | Yes | Hostname or IP of your HomeMatic CCU (debmatic, CCU3, or RaspberryMatic) |
CCU_PASSWORD | Yes | CCU admin password (same as the WebUI login) |
CCU_USER | No | CCU username |
CCU_HTTPS | No | Connect to the CCU via HTTPS (self-signed certificates supported) |
CCU_PORT | No | CCU API port (80 for HTTP, 443 for HTTPS) |
CACHE_DIR | No | Directory for the device type cache and session persistence |
MCP_ALLOWED_ORIGINS | No | 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… |
MCP_ALLOWED_HOSTS | No | Extra Host header values accepted by DNS-rebinding protection (comma-separated host:port); add your hostname when behind a proxy or container DNS name |