DDC/CI Control Bridge
Enables AI agents to control monitor settings (brightness, contrast, input source) via DDC/CI protocol, with support for MQTT integration.
README
DDC/CI Control Bridge

<img alt="Install in VS Code" src="https://img.shields.io/badge/Install%20in%20VS%20Code-0098FF?style=for-the-badge&logo=visualstudiocode&logoColor=white">
Multi-protocol server for DDC/CI monitor control with MCP and MQTT support.
Features
- DDC/CI Monitor Control: Read and write VCP codes to control monitor brightness, contrast, input source, and more
- Model Context Protocol (MCP): Server with resources and tools for AI/agent integration
- MQTT Client: Connect to any MQTT broker for IoT/automation platforms
- Home Assistant auto-discovery support
- Generic MQTT pub/sub for custom integrations
- Cross-Platform: Works on Windows, Linux, and macOS
- Dual Distribution: Available as standalone executable or npm package
Quick Start
Installation
Option 1: NPM Package (Global)
npm install -g ddc-ci-control-bridge
ddc-ci-bridge
Option 2: NPX (No Install)
npx ddc-ci-control-bridge
Option 3: Standalone Executable
Download the binary for your platform from GitHub Releases:
- Windows:
ddc-ci-bridge-win.exe - Linux:
ddc-ci-bridge-linux - macOS:
ddc-ci-bridge-macos
β οΈ Note: The executable requires DDC_API_KEY environment variable to be set, or it will exit immediately.
Windows:
# Set API key (required)
set DDC_API_KEY=your-secret-key
# Run the executable
ddc-ci-bridge-win.exe
# Or set multiple environment variables
set DDC_API_KEY=your-secret-key
set MQTT_ENABLED=true
set MQTT_HOST=192.168.1.100
ddc-ci-bridge-win.exe
Linux/macOS:
# Make executable (first time only)
chmod +x ddc-ci-bridge-linux # or ddc-ci-bridge-macos
# Run with API key (required)
DDC_API_KEY=your-secret-key ./ddc-ci-bridge-linux
# Or with multiple environment variables
DDC_API_KEY=your-secret-key MQTT_ENABLED=true MQTT_HOST=192.168.1.100 ./ddc-ci-bridge-linux
Using with MCP Clients:
Configure your MCP client to use the executable path:
{
"mcpServers": {
"ddc-ci-bridge": {
"command": "C:\\path\\to\\ddc-ci-bridge-win.exe",
"args": [],
"env": {
"MQTT_ENABLED": "false"
}
}
}
}
MCP Client Setup
Choose between Local (stdio) or Remote (HTTP) setup depending on your needs:
- Local Setup: Run MCP server on the same machine as your monitors (recommended for most users)
- Remote Setup: Run MCP server on a monitor-connected machine, access from other devices
π₯οΈ Local Setup (stdio - Same Machine)
Use this if your MCP client is on the same machine as your monitors.
<details> <summary><b>Install in Cursor (Local)</b></summary>
Go to: Settings β Cursor Settings β MCP β Add new global MCP server
Or paste the following configuration into your ~/.cursor/mcp.json file:
{
"mcpServers": {
"ddc-ci-bridge": {
"command": "npx",
"args": ["-y", "ddc-ci-control-bridge"],
"env": {
"MQTT_ENABLED": "false",
"MQTT_HOST": "localhost",
"MQTT_PORT": "1883"
}
}
}
}
Optional MQTT: Set MQTT_ENABLED=true and configure MQTT_HOST to your MQTT broker IP for automation platform integration.
</details>
<details> <summary><b>Install in VS Code (Local)</b></summary>
Add this to your VS Code MCP config file:
"mcp": {
"servers": {
"ddc-ci-bridge": {
"type": "stdio",
"command": "npx",
"args": ["-y", "ddc-ci-control-bridge"],
"env": {
"MQTT_ENABLED": "false"
}
}
}
}
</details>
<details> <summary><b>Install in Claude Desktop (Local)</b></summary>
Open Claude Desktop developer settings and edit your claude_desktop_config.json file:
{
"mcpServers": {
"ddc-ci-bridge": {
"command": "npx",
"args": ["-y", "ddc-ci-control-bridge"],
"env": {
"MQTT_ENABLED": "false"
}
}
}
}
</details>
<details> <summary><b>Install in Claude Code (Local)</b></summary>
Run this command:
claude mcp add ddc-ci-bridge -- npx -y ddc-ci-control-bridge
</details>
<details> <summary><b>Install in Windsurf (Local)</b></summary>
Add this to your Windsurf MCP config file:
{
"mcpServers": {
"ddc-ci-bridge": {
"command": "npx",
"args": ["-y", "ddc-ci-control-bridge"],
"env": {
"MQTT_ENABLED": "false"
}
}
}
}
</details>
<details> <summary><b>Install in Cline (Local)</b></summary>
Add this to your Cline MCP configuration:
{
"mcpServers": {
"ddc-ci-bridge": {
"command": "npx",
"args": ["-y", "ddc-ci-control-bridge"],
"env": {
"MQTT_ENABLED": "false"
}
}
}
}
</details>
<details> <summary><b>Install in Zed (Local)</b></summary>
Add this to your Zed settings.json:
{
"context_servers": {
"DDC/CI Bridge": {
"source": "custom",
"command": "npx",
"args": ["-y", "ddc-ci-control-bridge"],
"env": {
"MQTT_ENABLED": "false"
}
}
}
}
</details>
<details> <summary><b>Install in Roo Code (Local)</b></summary>
Add this to your Roo Code MCP configuration:
{
"mcpServers": {
"ddc-ci-bridge": {
"command": "npx",
"args": ["-y", "ddc-ci-control-bridge"],
"env": {
"MQTT_ENABLED": "false"
}
}
}
}
</details>
<details> <summary><b>Install in Augment Code (Local)</b></summary>
Option A: Using the UI
- Click the hamburger menu
- Select Settings
- Navigate to Tools section
- Click + Add MCP button
- Enter command:
npx -y ddc-ci-control-bridge - Name: DDC/CI Bridge
- Click Add
Option B: Manual Configuration
Add to settings.json:
"augment.advanced": {
"mcpServers": [
{
"name": "ddc-ci-bridge",
"command": "npx",
"args": ["-y", "ddc-ci-control-bridge"],
"env": {
"MQTT_ENABLED": "false"
}
}
]
}
</details>
<details> <summary><b>Install in JetBrains AI Assistant (Local)</b></summary>
- Go to
SettingsβToolsβAI AssistantβModel Context Protocol (MCP) - Click
+ Add - Select As JSON from the dropdown
- Add this configuration:
{
"mcpServers": {
"ddc-ci-bridge": {
"command": "npx",
"args": ["-y", "ddc-ci-control-bridge"],
"env": {
"MQTT_ENABLED": "false"
}
}
}
}
- Click
Applyto save changes
</details>
<details> <summary><b>Install in Warp (Local)</b></summary>
- Navigate
SettingsβAIβManage MCP servers - Click
+ Addbutton - Paste this configuration:
{
"DDC/CI Bridge": {
"command": "npx",
"args": ["-y", "ddc-ci-control-bridge"],
"env": {
"FASTMCP_API_KEY": "your-api-key-here",
"MQTT_ENABLED": "false"
},
"working_directory": null,
"start_on_launch": true
}
}
- Click
Save
</details>
<details> <summary><b>Install in OpenAI Codex (Local)</b></summary>
Add to your Codex MCP configuration:
[mcp_servers.ddc-ci-bridge]
command = "npx"
args = ["-y", "ddc-ci-control-bridge"]
[mcp_servers.ddc-ci-bridge.env]
MQTT_ENABLED = "false"
Windows Users: Use full paths if you encounter timeout errors:
[mcp_servers.ddc-ci-bridge]
command = "cmd"
args = ["/c", "npx", "-y", "ddc-ci-control-bridge"]
startup_timeout_ms = 20_000
[mcp_servers.ddc-ci-bridge.env]
SystemRoot = "C:\\Windows"
FASTMCP_API_KEY = "your-api-key-here"
MQTT_ENABLED = "false"
</details>
<details> <summary><b>Install in LM Studio (Local)</b></summary>
- Navigate to
Program(right side) βInstallβEdit mcp.json - Add this configuration:
{
"mcpServers": {
"DDC/CI Bridge": {
"command": "npx",
"args": ["-y", "ddc-ci-control-bridge"],
"env": {
"MQTT_ENABLED": "false"
}
}
}
}
- Click
Save - Toggle the MCP server on/off from the right side panel
</details>
<details> <summary><b>Install in Qodo Gen (Local)</b></summary>
- Open Qodo Gen chat panel in VSCode or IntelliJ
- Click Connect more tools
- Click + Add new MCP
- Add this configuration:
{
"mcpServers": {
"ddc-ci-bridge": {
"command": "npx",
"args": ["-y", "ddc-ci-control-bridge"],
"env": {
"MQTT_ENABLED": "false"
}
}
}
}
</details>
<details> <summary><b>Install in Perplexity Desktop (Local)</b></summary>
- Navigate
PerplexityβSettings - Select
Connectors - Click
Add Connector - Select
Advanced - Enter Server Name: DDC/CI Bridge
- Paste this JSON:
{
"command": "npx",
"args": ["-y", "ddc-ci-control-bridge"],
"env": {
"FASTMCP_API_KEY": "your-api-key-here",
"MQTT_ENABLED": "false"
}
}
- Click
Save
</details>
<details> <summary><b>Install in Kiro (Local)</b></summary>
- Navigate
KiroβMCP Servers - Click
+ Addbutton - Paste this configuration:
{
"mcpServers": {
"DDC/CI Bridge": {
"command": "npx",
"args": ["-y", "ddc-ci-control-bridge"],
"env": {
"MQTT_ENABLED": "false"
},
"disabled": false,
"autoApprove": []
}
}
}
- Click
Save
</details>
<details> <summary><b>Install in BoltAI (Local)</b></summary>
- Open Settings β Plugins
- Enter this JSON:
{
"mcpServers": {
"ddc-ci-bridge": {
"command": "npx",
"args": ["-y", "ddc-ci-control-bridge"],
"env": {
"MQTT_ENABLED": "false"
}
}
}
}
- Save and restart if needed
</details>
<details> <summary><b>Install in Zencoder (Local)</b></summary>
- Go to Zencoder menu (...)
- Select Agent tools
- Click Add custom MCP
- Add name and server configuration:
{
"command": "npx",
"args": ["-y", "ddc-ci-control-bridge"],
"env": {
"FASTMCP_API_KEY": "your-api-key-here",
"MQTT_ENABLED": "false"
}
}
- Click Install
</details>
<details> <summary><b>Install in Amazon Q Developer CLI (Local)</b></summary>
Add to your Amazon Q configuration:
{
"mcpServers": {
"ddc-ci-bridge": {
"command": "npx",
"args": ["-y", "ddc-ci-control-bridge"],
"env": {
"MQTT_ENABLED": "false"
}
}
}
}
</details>
<details> <summary><b>Using Bun or Deno</b></summary>
Bun:
{
"mcpServers": {
"ddc-ci-bridge": {
"command": "bunx",
"args": ["-y", "ddc-ci-control-bridge"],
"env": {
"MQTT_ENABLED": "false"
}
}
}
}
Deno:
{
"mcpServers": {
"ddc-ci-bridge": {
"command": "deno",
"args": [
"run",
"--allow-env",
"--allow-net",
"npm:ddc-ci-control-bridge"
],
"env": {
"MQTT_ENABLED": "false"
}
}
}
}
</details>
<details> <summary><b>Windows-Specific Configuration</b></summary>
On Windows, use this format (example with Cline):
{
"mcpServers": {
"ddc-ci-bridge": {
"command": "cmd",
"args": ["/c", "npx", "-y", "ddc-ci-control-bridge"],
"env": {
"MQTT_ENABLED": "false"
},
"disabled": false,
"autoApprove": []
}
}
}
</details>
π Remote Setup (HTTP - Different Machines)
Use this if you want to access monitor controls from a different machine on your network.
<details> <summary><b>Step 1: Set up the MCP Server on Monitor-Connected Machine</b></summary>
- On the machine with monitors, create a
.envfile:
DDC_API_KEY=your-secure-random-api-key-here
MCP_TRANSPORT=sse
MCP_PORT=8000
# Optional: Enable MQTT for automation platforms
MQTT_ENABLED=false
MQTT_HOST=localhost
MQTT_PORT=1883
- Start the server:
npm install -g ddc-ci-control-bridge
ddc-ci-bridge
Or using npx:
npx ddc-ci-control-bridge
- The server will display:
π MCP Server: http://192.168.1.100:8000
Transport: sse
API Key: your-api...
Note the IP address and port for client configuration.
</details>
<details> <summary><b>Step 2: Configure MCP Clients (Remote Connection)</b></summary>
Cursor:
{
"mcpServers": {
"ddc-ci-bridge": {
"url": "http://192.168.1.100:8000",
"headers": {
"Authorization": "Bearer your-secure-random-api-key-here"
}
}
}
}
VS Code:
"mcp": {
"servers": {
"ddc-ci-bridge": {
"type": "http",
"url": "http://192.168.1.100:8000",
"headers": {
"Authorization": "Bearer your-secure-random-api-key-here"
}
}
}
}
Claude Desktop:
{
"mcpServers": {
"ddc-ci-bridge": {
"url": "http://192.168.1.100:8000",
"headers": {
"Authorization": "Bearer your-secure-random-api-key-here"
}
}
}
}
Windsurf:
{
"mcpServers": {
"ddc-ci-bridge": {
"serverUrl": "http://192.168.1.100:8000",
"headers": {
"Authorization": "Bearer your-secure-random-api-key-here"
}
}
}
}
Note: Replace 192.168.1.100 with the actual IP address of your monitor-connected machine, and use the same API key you configured in the server's .env file.
</details>
Configuration
- Create a
.envfile:
cp .env.example .env
- Edit
.envand configure:
DDC_API_KEY=your-secret-api-key-here
# Enable MQTT for automation platforms (optional)
MQTT_ENABLED=false
MQTT_HOST=localhost
MQTT_PORT=1883
To enable MQTT: Set MQTT_ENABLED=true and change MQTT_HOST to your MQTT broker IP (e.g., Home Assistant IP).
- Start the server:
npm run dev
MQTT Integration
This server acts as an MQTT client and can connect to any MQTT broker.
Supported Platforms
- Home Assistant: Auto-discovery via MQTT Discovery Protocol β See Home Assistant Guide
- openHAB: MQTT binding with manual thing configuration
- Node-RED: Subscribe to topics for custom flows
- Domoticz: MQTT integration
- Generic MQTT: Any platform that supports MQTT pub/sub
MQTT Topics
ddc-monitor/{index}/brightness/set|get
ddc-monitor/{index}/contrast/set|get
ddc-monitor/{index}/vcp/{code}/set|get
ddc-monitor/{index}/power/set
ddc-monitor/{index}/state
ddc-monitor/bridge/status
MCP Resources
monitor://list- List all available monitorsmonitor://{index}/capabilities- Full VCP code scan resultsmonitor://{index}/current-values- Current values of all supported codesmonitor://{index}/info- Monitor metadata
MCP Tools
get_vcp_code- Read a specific VCP code valueset_vcp_code- Write a value to a VCP codeget_brightness- Get monitor brightness (0-100)set_brightness- Set monitor brightness (0-100)refresh_monitors- Re-scan monitors and VCP capabilities
Development
Build
npm run build
Build Executables
npm run build:executables
This creates standalone executables in dist/bin/ for Windows, Linux, and macOS.
Run in Development
npm run dev
Requirements
- DDC/CI Support: Your monitor must support DDC/CI (most modern monitors do)
- DDC/CI Enabled: Enable DDC/CI in your monitor's OSD settings
- Permissions: On Linux, you may need to add your user to the
i2cgroup
Linux Setup
sudo usermod -a -G i2c $USER
sudo modprobe i2c-dev
Log out and log back in for group changes to take effect.
Environment Variables
See .env.example for all available configuration options.
Key variables:
DDC_API_KEY- API key for server authentication (required)MCP_TRANSPORT- Transport type:sseorstdio(default:sse)MCP_PORT- HTTP port for SSE transport (default:8000)MQTT_ENABLED- Enable MQTT client (default:false)MQTT_HOST- MQTT broker IP/hostname (default:localhost)MQTT_PORT- MQTT broker port (default:1883)MQTT_USERNAME- Auto-configured asddc-mcpMQTT_PASSWORD- Auto-configured fromDDC_API_KEY
Architecture
βββββββββββββββββββββββββββββββββββββββββββ
β DDC/CI Control Bridge β
β β
β βββββββββββββββββββ ββββββββββββββββ β
β β MCP Server β β MQTT Client β β
β β - Resources β β - Pub/Sub β β
β β - Tools β β - Discovery β β
β ββββββββββ¬βββββββββ ββββββββ¬ββββββββ β
β β β β
β ββββββββββ¬ββββββββββ β
β β β
β ββββββββββΌβββββββββ β
β β DDC Controller β β
β β - VCP Scanning β β
β β - Read/Write β β
β ββββββββββ¬βββββββββ β
ββββββββββββββββββββββΌββββββββββββββββββββ
β
ββββββββββΌβββββββββ
β Physical Monitorβ
β (DDC/CI) β
βββββββββββββββββββ
External Clients:
ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ
β AI Agents β β MQTT Broker β β Automation β
β (via MCP) β β (any broker) β β Platforms β
ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ
License
MIT
Documentation
- Home Assistant Integration Guide - Complete HA setup
- Development Guide - Technical architecture and development details
Contributing
Contributions welcome! Please open an issue or PR.
Troubleshooting
No monitors found
- Ensure DDC/CI is enabled in your monitor's OSD settings
- On Linux, check if i2c devices are available:
ls -l /dev/i2c-* - Try running with elevated permissions (not recommended for production)
MQTT connection failed
- Verify MQTT broker is running
- Check credentials match the server output
- Ensure firewall allows MQTT port (1883)
Commands not working
- Check server logs for errors
- Verify monitor supports the VCP code
- Some codes may be read-only
- Try restarting both server and Home Assistant
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.