device-context-protocol / dcp
PublicDevice Context Protocol — bridge LLM agents to physical devices. Sub-50-byte frames, <16KB MCU footprint, capability-scoped and safe by design. Complementary to MCP.
DCP (Device Context Protocol) is an open-source project that enables AI assistants to safely control physical devices like smart lamps, motors, and sensors. It consists of a Python bridge that runs on your computer and small firmware that runs on microcontrollers. The bridge acts as a safety checkpoint—validating every command before it reaches hardware, preventing the AI from making dangerous mistakes like setting a brightness to 9999%. DCP works with AI tools that support the Model Context Protocol (like Claude Desktop), so you can control devices by simply asking in natural language. It supports multiple connection methods (USB, Bluetooth, WiFi/MQTT) and includes security features like capability tokens to ensure only authorized sessions can control your devices.
How It Works
You learn about DCP—a system that lets AI assistants safely interact with real hardware like lamps, motors, and sensors.
You download and install the Python package on your computer, which becomes the bridge between your AI assistant and your devices.
You plug in a compatible device—like a smart lamp or ESP32 board—using USB, Bluetooth, or your local network.
Before any command reaches your device, the bridge validates it: checking that values are in safe ranges and that your session is authorized.
You open Claude Desktop (or another compatible AI tool) and say something like 'set the lamp to 60% brightness'—no technical setup needed.
Your command travels through a serial connection directly to the device.
Your command is sent wirelessly to a BLE-enabled device.
Your command goes through MQTT to reach a networked device.
The lamp dims, the motor spins, or the sensor reports back—and you get confirmation that everything worked.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.