设备上下文协议网关 是 AI Skill Hub 本期精选MCP工具之一。综合评分 7.2 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
设备上下文协议网关 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
设备上下文协议网关 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/device-context-protocol/dcp
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"---------": {
"command": "npx",
"args": ["-y", "dcp"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 设备上下文协议网关 执行以下任务... Claude: [自动调用 设备上下文协议网关 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"_________": {
"command": "npx",
"args": ["-y", "dcp"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
Status: Draft v0.3 — May 2026 · Hardware-validated on ESP32-WROOM-32
A protocol that lets LLM agents safely control physical devices, down to dollar-class microcontrollers. Intent-level, transport-agnostic, capability-scoped. Compact wire format (sub-50-byte frames). Self-contained firmware: under 1 KB of RAM, ~28 KB of flash. Complementary to MCP — a reference Bridge translates DCP ↔ MCP so any MCP host (Claude Desktop, Claude Code, IDE assistants) works zero-config.
See docs/ADDING_FEATURES.md for the full 5-step loop with a worked blink(times, period) example. The short version: edit the manifest, add a C++ handler + binding, recompile, flash, restart the MCP server — the LLM picks up the new tool automatically. The Bridge needs no code change.
- Multi-device atomic transactions - Firmware OTA - Mesh routing (use Thread / Zigbee underneath if you need it) - LLM-side authentication (delegated to the MCP host's session model) - Native CAN FD frames (ESP32-S3 TWAI is classic CAN; v0.4 ESP32-P4 port enables true CAN FD)
The reference firmware is portable by design (Arduino Stream + a software SHA-256, no SoC-specific code paths in DCP.{h,cpp}). It cross-compiles for every current ESP32 variant and for ESP8266; two of those targets are also runtime-validated on real boards, the rest are build-validated pending hardware on the bench:
| Target | ISA | Flash (lamp+blink) | Globals | Status |
|---|---|---|---|---|
| ESP32-WROOM-32 | Xtensa LX6 (baseline) | 294 KB | 22.7 KB | runtime ✓ |
| ESP32-S3 (T-Panel) | Xtensa LX7 | 322 KB | 22.7 KB | runtime ✓ (native USB) |
| ESP32-C3 | RV32IMC | 289 KB | 13.4 KB | builds ✓ |
| ESP32-C6 | RV32IMAC + HW-crypto | 266 KB | 14.0 KB | builds ✓ |
| ESP32-H2 | RV32IMAC + 802.15.4 | 292 KB | 14.0 KB | builds ✓ |
| ESP32-P4 | RV32IMAFC dual-core | 326 KB | 22.0 KB | builds ✓ |
| ESP8266 NodeMCU | Xtensa LX106 (legacy) | 242 KB | 28.9 KB | builds ✓ |
All builds use Arduino-ESP32 core 3.3.8 / Arduino-ESP8266 core 3.x + the same firmware/esp32/ library. The sketch picks PWM API at compile time (ledcAttach/ledcWrite on ESP32, analogWrite on ESP8266); the protocol layer itself has no #ifdef. Reproduce with:
arduino-cli compile --clean --fqbn esp32:esp32:esp32c3 \
--library firmware/esp32 firmware/esp32/examples/lamp
arduino-cli compile --clean --fqbn esp8266:esp8266:nodemcuv2 \
--library firmware/esp32 firmware/esp32/examples/lamp
pip install "pydcp[mcp,serial]" # or [mcp,serial,mqtt,ble] for all transports dcp inspect examples/lamp_manifest.yaml # parsed manifest summary dcp serve examples/lamp_manifest.yaml --simulator
bash
git clone https://github.com/device-context-protocol/dcp.git cd dcp pip install -e ".[mcp,serial,mqtt,ble,dev]" pytest # all 88 tests python examples/lamp_demo.py # in-process bridge ↔ fake lamp ```
The PyPI package is named pydcp (the bare dcp is squatted by an unrelated package). The import name is dcp. The protocol name is DCP.
```bash
创新的MCP设备桥接方案,超小帧结构设计精巧。但项目初期、文档和生态有限,适合技术探索而非大规模部署。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,设备上下文协议网关 在MCP工具赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | dcp |
| 原始描述 | 开源MCP工具:Device Context Protocol — bridge LLM agents to physical devices. Sub-50-byte fra。⭐25 · Python |
| Topics | 设备控制MCP协议Arduino智能体物联网CBOR编码 |
| GitHub | https://github.com/device-context-protocol/dcp |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-23 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端