MCP Servers

模型上下文协议服务器、框架、SDK 和模板的综合目录。

Control4 MCP driver, makes your smart home controllable with natural language by LLMs through the Model Context Protocol.

创建于 3/16/2026
更新于 about 3 hours ago
Repository documentation and setup instructions

C4MCP — Control4 MCP Server

Download c4mcp.c4z

A Control4 DriverWorks driver that exposes your smart home via the Model Context Protocol (MCP) over HTTP. Point any MCP-compatible AI client — Claude Code, Claude Desktop, OpenClaw, etc. — at your controller and control your home with natural language.

Requires: Control4 OS 2.10.5+. HTTPS requires OS 3.3.0+.

What It Does

  • Runs an MCP server directly on the Control4 controller — no external server needed
  • Exposes device state, room layout, and control via standard MCP tools
  • Supports lights, thermostats, blinds, locks, relays, sensors, experience buttons, and more
  • Bearer token authentication for LAN security
  • HTTP and HTTPS transport

Quick Start

  1. Download c4mcp.c4z (or build from source — see Building)
  2. Install c4mcp.c4z on your controller via Composer Pro (search under Controllers)
  3. Go to the driver's Actions tab and press Generate API Key. Copy the key from the Last Generated Key property (auto-clears after 30s)
  4. Configure your MCP client to connect to http://<controller-ip>:9201/mcp with the API key as a Bearer token

See the full documentation for client configuration examples, HTTPS setup, device profiles, troubleshooting, and more.

Building

Requires DriverPackager and DriverValidator (Windows/WSL) in PATH.

make build    # Build c4mcp.c4z
make clean    # Remove build artifacts

Install the resulting c4mcp/build/c4mcp.c4z on your controller via Composer Pro.

Project Structure

c4mcp/
├── driver.lua            # Entry point
├── driver.xml            # Driver manifest
├── c4mcp.c4zproj         # Build project file
├── modules/
│   ├── mcp_server.lua    # MCP JSON-RPC protocol handler
│   ├── http_server.lua   # Raw TCP → HTTP server
│   ├── server.lua        # Server lifecycle (HTTP/HTTPS)
│   ├── auth.lua          # API key authentication
│   ├── c4_home.lua       # Smart home data layer
│   ├── control.lua       # Device control dispatch
│   ├── device_config.lua # Custom device profiles
│   └── device_types.lua  # Per-type control handlers
└── www/
    └── documentation.html     # Full documentation

License

MIT

快速设置
此服务器的安装指南

安装命令 (包未发布)

git clone https://github.com/oliverpell/c4mcp
手动安装: 请查看 README 获取详细的设置说明和所需的其他依赖项。

Cursor 配置 (mcp.json)

{ "mcpServers": { "oliverpell-c4mcp": { "command": "git", "args": [ "clone", "https://github.com/oliverpell/c4mcp" ] } } }