
DDC/CI Control Bridge
io.github.Defozo由 GitHub 账号 Defozo 发布v1.0.5更新于 Oct 24, 2026
Control monitor brightness, contrast, power and input via DDC/CI with MCP and MQTT support.
概览
一个本地 MCP 服务器,让助手通过 DDC/CI 读取并调整实体显示器的亮度、对比度、输入源和电源等设置。
- 可以做什么
- 读取和写入显示器的 VCP 代码,包括亮度、对比度数值以及其他受支持的代码,并在显示器允许时设置输入源或电源状态。列出已连接的显示器,并重新扫描显示器及其支持的 VCP 能力。以 MCP 资源形式读取显示器元数据和所有受支持代码的当前值。可选通过 MQTT 发布和订阅,支持 Home Assistant 自动发现,使同一套控制也能由自动化平台驱动。
- 适用场景
- 当你希望助手调整或查看连接在本机上的实体显示屏时使用,例如调暗显示器、切换输入源,或查看某台显示器支持哪些 VCP 代码。若想把显示器控制接入 Home Assistant 或其他 MQTT 自动化平台,它同样适用。
- 运行要求
- 作为本地进程运行在连接显示器的机器上,可通过 npm、npx 或独立可执行文件安装;npm 方式需要 Node.js。显示器必须支持 DDC/CI,并在其屏幕菜单中启用。Linux 上可能需要将用户加入 i2c 组并加载 i2c-dev 模块。独立可执行文件要求设置 DDC_API_KEY 环境变量。可选的 MQTT 设置包括 MQTT_ENABLED、MQTT_HOST 和 MQTT_PORT。
安装
在 SourceWeft 中
- 打开 控制台中的 DDC/CI Control Bridge,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
DDC/CI Control Bridge
[NPM Version] [MIT licensed] [GitHub Release]
[Install MCP Server] [Install in VS Code]
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)
Option 2: NPX (No Install)
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:
Linux/macOS:
Using with MCP Clients:
Configure your MCP client to use the executable path:
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.
Install in Cursor (Local)
Go to: Settings → Cursor Settings → MCP → Add new global MCP server
Or paste the following configuration into your ~/.cursor/mcp.json file:
Optional MQTT: Set MQTT_ENABLED=true and configure MQTT_HOST to your MQTT broker IP for automation platform integration.
Install in Claude Desktop (Local)
Open Claude Desktop developer settings and edit your claude_desktop_config.json file:
Install in Claude Code (Local)
Run this command:
Install in Windsurf (Local)
Add this to your Windsurf MCP config file:
Install in Cline (Local)
Add this to your Cline MCP configuration:
Install in Zed (Local)
Add this to your Zed settings.json:
Install in Roo Code (Local)
Add this to your Roo Code MCP configuration:
Install in Augment Code (Local)
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:
Install in JetBrains AI Assistant (Local)
- Go to
Settings→Tools→AI Assistant→Model Context Protocol (MCP) - Click
+ Add - Select As JSON from the dropdown
- Add this configuration:
- Click
Applyto save changes
Install in Warp (Local)
- Navigate
Settings→AI→Manage MCP servers - Click
+ Addbutton - Paste this configuration:
- Click
Save
Install in OpenAI Codex (Local)
Add to your Codex MCP configuration:
Windows Users: Use full paths if you encounter timeout errors:
Install in LM Studio (Local)
- Navigate to
Program(right side) →Install→Edit mcp.json - Add this configuration:
- Click
Save - Toggle the MCP server on/off from the right side panel
Install in Qodo Gen (Local)
- Open Qodo Gen chat panel in VSCode or IntelliJ
- Click Connect more tools
- Click + Add new MCP
- Add this configuration:
Install in Perplexity Desktop (Local)
- Navigate
Perplexity→Settings - Select
Connectors - Click
Add Connector - Select
Advanced - Enter Server Name: DDC/CI Bridge
- Paste this JSON:
- Click
Save
Install in Kiro (Local)
- Navigate
Kiro→MCP Servers - Click
+ Addbutton - Paste this configuration:
- Click
Save
Install in BoltAI (Local)
- Open Settings → Plugins
- Enter this JSON:
- Save and restart if needed
Install in Zencoder (Local)
- Go to Zencoder menu (...)
- Select Agent tools
- Click Add custom MCP
- Add name and server configuration:
- Click Install
Install in Amazon Q Developer CLI (Local)
Add to your Amazon Q configuration:
Using Bun or Deno
Bun:
Deno:
Windows-Specific Configuration
On Windows, use this format (example with Cline):
🌐 Remote Setup (HTTP - Different Machines)
Use this if you want to access monitor controls from a different machine on your network.
Step 1: Set up the MCP Server on Monitor-Connected Machine
- On the machine with monitors, create a
.envfile:
- Start the server:
Or using npx:
- The server will display:
Note the IP address and port for client configuration.
Step 2: Configure MCP Clients (Remote Connection)
Cursor:
VS Code:
Claude Desktop:
Windsurf:
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.
Configuration
- Create a
.envfile:
- Edit
.envand configure:
To enable MQTT: Set MQTT_ENABLED=true and change MQTT_HOST to your MQTT broker IP (e.g., Home Assistant IP).
- Start the server:
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
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
Build Executables
This creates standalone executables in dist/bin/ for Windows, Linux, and macOS.
Run in Development
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
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
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
来源:README.md,提交 23a3e00
工具
0版本历史
1- v1.0.5最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分