thingwire-dev/thingwire
AI-to-hardware gateway. WoT Thing Description → MCP tools. Let AI agents safely control sensors and actuators.
Platform-specific configuration:
{
"mcpServers": {
"thingwire": {
"command": "npx",
"args": [
"-y",
"thingwire"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
WoT Thing Description → MCP tools. Point AI agents at real hardware.
[](LICENSE) [](https://python.org) [](https://www.espressif.com/) [](https://mqtt.org/) [](https://www.w3.org/TR/wot-thing-description11/) [](https://modelcontextprotocol.io/)
Your ESP32 publishes a W3C WoT Thing Description over MQTT. ThingWire reads it and auto-generates MCP tools. Claude (or any MCP client) can then call read_temperature, set_relay, etc. with no hand-written tool definitions.
A safety layer sits between the AI and the hardware: per-device action allowlists, rate limits, dangerous-action confirmation, and a full audit log.
┌─────────────────────┐
│ Claude / Cursor / │
│ Any MCP Client │
└─────────┬───────────┘
│ MCP tools (read_temperature, set_relay, ...)
▼
┌─────────────────────┐
│ ThingWire Gateway │ Python, FastMCP, paho-mqtt
│ ┌────────────────┐ │
│ │ Safety Layer │ │ allowlists, rate limits, audit log
│ └────────────────┘ │
└─────────┬───────────┘
│ MQTT
▼
┌─────────────────────┐
│ ESP32-S3 Device │ WoT Thing Description + sensors + actuators
│ DHT22 / PIR / Relay │
└─────────────────────┘Loading reviews...