Symcon MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Symcon MCP Server ๐
Connects AI assistants to IP-Symcon via the Model Context Protocol (MCP).
Exposes the Symcon JSON-RPC API as MCP tools so that AI assistants (Claude, Cursor, VS Code Copilot, โฆ) can read and control your smart home.
The Symcon JSON-RPC APIrequires authentication. You must provide both SYMCON_API_USER (your license email) and SYMCON_API_PASSWORD.
Overview
Mode | Transport | When to use |
Local (Node.js) | stdio | Development, no Docker |
Docker / Remote | HTTP or HTTPS | Different host on the network |
Related MCP server: debmatic-mcp
Environment Variables
Variable | Default | Description |
|
| Port the server listens on |
|
| Docker host port |
|
|
|
| (required) | Bearer token; How to create? |
|
|
|
|
| Bind address |
| (empty) | Comma-separated browser origins allowed to call |
|
| Max requests per minute per IP ( |
|
|
|
|
| Symcon JSON-RPC endpoint |
| (empty) | Symcon license username (required) |
| (empty) | Symcon password (required) |
|
| Set |
Docker Hub
The image is available on Docker Hub:
docker pull tommi2day/symcon-mcp-server:latestThe same image is also published to the GitHub Container Registry:
docker pull ghcr.io/tommi2day/symcon-mcp-server:latestQuick start from Hub (HTTP)
docker run -d --name symcon-mcp-server \
-p 4096:4096 \
-e SYMCON_API_URL=http://192.168.1.100:3777/api/ \
-e SYMCON_API_USER=your-license-email@example.com \
-e SYMCON_API_PASSWORD=your-symcon-password \
-e MCP_AUTH_TOKEN=my-secret-token \
tommi2day/symcon-mcp-server:latestIn docker-compose.yml
services:
symcon-mcp-server:
image: tommi2day/symcon-mcp-server:latest
ports:
- "4096:4096"
environment:
- SYMCON_API_URL=http://192.168.1.100:3777/api/
- SYMCON_API_USER=your-license-email@example.com
- SYMCON_API_PASSWORD=your-symcon-password
- MCP_AUTH_TOKEN=my-secret-tokenToken Authentication
When running the MCP server as an HTTP/SSE service, it's recommended to set a strong MCP_AUTH_TOKEN to prevent unauthorized access to your Symcon instance.
Automatic creation
If you use the provided ./scripts/run.sh to start the server, it will automatically generate a strong 32-byte hex token for you on the first run and save it to a file named auth_token in the project root.
Manual creation
You can generate a secure token manually using openssl (available on Linux, macOS, and Git Bash for Windows):
openssl rand -hex 32Then, set this value as the MCP_AUTH_TOKEN environment variable in your .env file or docker run command.
Usage
When authentication is enabled, all requests to the MCP server must include the following header:
Authorization: Bearer <your-mcp-auth-token>1 ยท Local (stdio)
Set MCP_TRANSPORT=stdio and run via Node.js or Docker.
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"symcon": {
"command": "docker",
"args": ["run", "-i", "--rm", "tommi2day/symcon-mcp-server"],
"env": {
"MCP_TRANSPORT": "stdio",
"SYMCON_API_URL": "http://192.168.1.100:3777/api/",
"SYMCON_API_USER": "your-license-email@example.com",
"SYMCON_API_PASSWORD": "your-symcon-password"
}
}
}
}2 ยท Docker (HTTP/SSE)
This mode runs the MCP server as a standalone container, exposing an HTTP endpoint for any compatible client.
Run with Docker
If you have a Symcon instance running elsewhere, run just the MCP server:
docker run -d --name symcon-mcp-server \
-p 4096:4096 \
-e SYMCON_API_URL=http://192.168.1.100:3777/api/ \
-e SYMCON_API_USER=your-license-email@example.com \
-e SYMCON_API_PASSWORD=your-symcon-password \
-e MCP_AUTH_TOKEN=my-secret-token \
tommi2day/symcon-mcp-server:latestAccess with mcp.json
To use the server from an MCP client (like Cursor or VS Code), add it to your mcp.json configuration:
{
"mcpServers": {
"symcon": {
"url": "http://localhost:4096/mcp",
"headers": {
"Authorization": "Bearer my-secret-token"
}
}
}
}Claude Desktop (claude_desktop_config.json) โ HTTP/Remote
Claude Desktop only supports HTTPS for non-local (remote) MCP servers.
If your server runs on plain HTTP and is not on localhost, Claude Desktop will refuse the connection.
Use one of the options below:
Option A โ Preferred: Put the server behind a reverse proxy (Traefik, nginx, Caddy) with a valid TLS certificate and use https:// in the URL.
Option B โ Quick workaround: Use mcp-remote as a local stdio bridge. It runs on your machine and forwards requests to the HTTP server, so Claude Desktop treats it like a stdio tool.
{
"mcpServers": {
"symcon": {
"command": "npx",
"args": [
"-y", "mcp-remote",
"http://192.168.1.100:4096/mcp",
"--allow-http",
"--header", "Authorization:Bearer my-secret-token"
]
}
}
}Verify the MCP endpoint
Health check:
curl http://localhost:4096/healthMCP initialize handshake (checks that the server responds to MCP requests):
curl -s -X POST http://localhost:4096/mcp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer my-secret-token" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'Interactive browser UI via MCP Inspector:
# Local server โ direct HTTP
npx @modelcontextprotocol/inspector http://localhost:4096/mcp
# Remote HTTP server โ via mcp-remote bridge
npx @modelcontextprotocol/inspector \
npx mcp-remote http://192.168.1.100:4096/mcp \
--allow-http \
--header "Authorization:Bearer my-secret-token"The inspector opens a browser UI where you can list tools, call them individually, and inspect responses.
3 ยท Docker Compose (Full Stack)
Use this if you want to run both IP-Symcon and the MCP Server together in a single stack (e.g., for testing or evaluation).
Clone and configure
git clone https://github.com/tommi2day/symcon-mcp-server.git cd symcon-mcp-server cp .env.example .envEdit
.envand setSYMCON_API_URL,SYMCON_API_USER,SYMCON_API_PASSWORD, andMCP_AUTH_TOKEN.Start
# Starts both services docker compose up -dVerify
curl http://localhost:4096/healthAccess Symcon GUI Open http://localhost:3777 in your browser to access the IP-Symcon console.
Architecture
AI Client (Claude / Cursor / โฆ)
โ HTTP POST /mcp
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ symcon-mcp-server โ :4096
โ (Docker container) โ
โ โ
โ MCP Tools โ
โ โโ get_value โ
โ โโ set_value โ
โ โโ request_action โ
โ โโ get_variable โ
โ โโ get_object โ
โ โโ get_children โ
โ โโ get_object_by_name โ
โ โโ get_variable_path โ
โ โโ snapshot_variables โ
โ โโ diff_variables โ
โ โโ run_script โ
โ โโ run_script_text โ
โ โโ run_script_text_ex โ
โ โโ get_script_content โ
โ โโ script_create โ
โ โโ script_set_content โ
โ โโ script_delete โ
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโ
โ [JSON-RPC](https://www.symcon.de/en/service/documentation/developer-area/data-exchange/)
โผ
IP-Symcon :3777/api/Available MCP Tools
Tool | Description |
| Read the current value of a variable |
| Write a value directly to a variable |
| Trigger a device action (use for real devices) |
| Get variable metadata (type, profile, timestamps) |
| Get metadata for any object (category, instance, โฆ) |
| List child object IDs (0 = root) |
| Find an object ID by name |
| Resolve a variable by slash-separated path |
| Snapshot all variable values under a root |
| Detect changes since a previous snapshot |
| Execute an existing Symcon script by ID |
| Execute arbitrary PHP code in Symcon |
| Execute PHP and return structured output, return value, and errors as separate fields; output is byte-capped |
| Read the PHP source of an existing script (read-only, no execution) |
| Create a new PHP script in Symcon |
| Update an existing script's PHP content |
| Delete a script by ID |
Device Control Tips
Switches & relays
Use symcon_request_action with value true (on) or false (off)Philips Hue brightness
Use symcon_request_action with value 0โ254 (0 = off, 254 = full brightness)Finding your variable IDs
Ask the AI assistant:
"Find the object ID of my living room light"
Snapshot & Diff (device discovery)
AI calls
symcon_snapshot_variableson the relevant roomAI asks: "Please toggle the device you want to assign, then tell me"
User toggles the device
AI calls
symcon_diff_variablesto identify which variable changed
Endpoints
Endpoint | Method | Description |
| GET | Server info and available endpoints |
| GET | Health check (Symcon status, uptime, version) |
| GET | Server configuration (allowlisted, secrets masked) and Symcon version; requires auth |
| POST/GET/DELETE | MCP Streamable HTTP transport |
| GET | MCP SSE transport (if |
| POST | SSE message handler |
Stdio | N/A | MCP Stdio transport (if |
Development & Testing
Running tests locally
# Install
npm install
# Unit tests
npm test
# Integration tests (starts a real Symcon Docker container)
npm run test:integration
# All tests
npm run test:allUsing Docker Scripts
./scripts/test.sh # unit tests via Docker
./scripts/test.sh --integration # unit + integration tests
./scripts/lint.sh # lintTest architecture
Test suite | File | Dependencies |
Unit: SymconClient |
| MockSymconServer (in-process) |
Unit: MCP tools |
| MockSymconServer + InMemoryTransport |
Unit: HTTP server |
| MockSymconServer + spawned Express |
Unit: Info endpoint |
| MockSymconServer + spawned Express (auth, masking & Symcon version) |
Integration |
| Real |
CI/CD
The repository uses two primary GitHub Actions workflows:
CI (ci.yml) โ runs on every push and pull request:
Audit:
npm audit(production and dev dependencies).Lint: ESLint checks.
Test: Unit tests on Node 24.
Coverage: Unit test coverage calculation.
Integration Tests: Runs integration tests against a real Symcon Docker service container.
Docker Image Scan: Builds the image, smoke-tests that the server is reachable inside the container and scans it with Trivy (fails on fixable HIGH/CRITICAL findings).
Report: Uploads coverage results to Codecov.
Release (release.yml) โ triggered by a semver tag or manual dispatch:
Bump version (Manual only): Updates
package.jsonandopenapi.yaml, commits and pushes tomain.Lint & Test: Runs lint, unit tests with coverage, and integration tests.
Build & Push: Builds the image, scans it with Trivy (a failing scan stops the release before anything is pushed), then pushes it to Docker Hub (
tommi2day/symcon-mcp-server) and GitHub Container Registry (ghcr.io/tommi2day/symcon-mcp-server). Afterwards it verifies with an anonymous pull that the GHCR package is public (a new GHCR package starts private and must be made public once in the package settings; the step fails until then) and writes the image digest and references to the job summary.Create Release: Creates a GitHub tag (if manual) and a GitHub Release with auto-generated notes.
Docker Hub Description (dockerhub-description.yml) โ runs when DOCKERHUB.md changes on main (or manually) and publishes it, together with the short description, as the Docker Hub overview. DOCKERHUB.md is a compact version of this README; keep it in sync when options or tools change.
Security
Authentication is mandatory. The server exits at startup if
MCP_AUTH_TOKENis empty, unlessMCP_ALLOW_NO_AUTH=trueis set (stdio transport is exempt). The tools can run arbitrary PHP in Symcon, so an open server is remote code execution on your smart-home host.Bind address:
MCP_HOSTdefaults to127.0.0.1; the Docker image sets0.0.0.0. Restrict the published port with a firewall or reverse proxy.Browser origins: requests carrying an
Originheader are rejected (403) unless listed inMCP_ALLOWED_ORIGINS(DNS-rebinding protection). Non-browser MCP clients are unaffected.Rate limit:
MCP_RATE_LIMITrequests per minute per IP (default 300,0disables). Request bodies are limited to 1 MB; at most 100 concurrent MCP sessions, idle sessions expire after 30 minutes.Symcon calls time out after 30 s and run at most 8 at a time.
/healthis public (needed for Docker health checks) but exposes no URLs or error details./inforequires the token and never returns unrelated environment variables.TLS: the default
http://Symcon URL sends credentials unencrypted; use HTTPS on untrusted networks.SYMCON_TLS_VERIFY=falsedisables certificate checks and allows man-in-the-middle attacks.
Production Checklist
Set a strong
MCP_AUTH_TOKENRestrict port 4096 via firewall or only expose via reverse proxy
Use HTTPS via a reverse proxy (Traefik, nginx, Caddy) in production
Check
/healthfrom your monitoring system
License
Apache License 2.0 โ see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP connector that lets ChatGPT list, search, and run your Apple Shortcuts via a local Mac agent
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
Control your existing Philips lights, Sonos speakers, Roborock vacuums and other supported devices through Port OS cloud. Give ChatGPT, Claude and other MCP-compatible assistants access to the devices you connect. Turn off the living room lights, play music on your speakers, adjust the thermostat, run a vacuum in a room, check a camera snapshot or find a connected tracker. Available actions depend on your linked provider accounts and each deviceโs supported capabilities. Port OS runs in the cloud; no local server is required. You choose the account, device and capability permissions each assistant receives. Device operations require user OAuth; public tool discovery does not grant device access. Port OS is in alpha. Setup: https://portoperatingsystem.com/docs/getting-started/ Support: https://portoperatingsystem.com/contact/
Automate 1,000+ services from any MCP-compatible AI agent: build Applets, run actions and queries.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control Home Assistant smart home devices via MCP, with zero external dependencies. Supports calling services, getting states, and looking up service parameters.MIT
- AlicenseAqualityAmaintenanceIntegrates HomeMatic smart home devices (via CCU3, RaspberryMatic, or debmatic) as MCP tools, enabling natural language query and control of rooms, devices, programs, and system variables.28155 npm9MIT
- AlicenseNot gradedqualityFmaintenanceEnables AI assistants to control and query smart home devices through Homey Pro via an HTTP-based MCP server.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude/agents to read, control, and develop IP-Symcon home automation systems via JSON-RPC, including object tree navigation, variable reading, device switching, and PHP script management.MIT