IoT MCP Servers
A comprehensive Model Context Protocol (MCP) server that provides Internet of Things (IoT) device integration for AI assistants like Claude Desktop and Cursor IDE. This server enables AI to read sensor data from IoT devices and dispatch data collecti
What is IoT MCP Servers?
IoT MCP Servers is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to comprehensive model context protocol (mcp) server that provides internet of things (iot) device integration for ai assistants like claude desktop and cursor ide. this server enables ai to read sensor ...
A comprehensive Model Context Protocol (MCP) server that provides Internet of Things (IoT) device integration for AI assistants like Claude Desktop and Cursor IDE. This server enables AI to read sensor data from IoT devices and dispatch data collecti
This server falls under the APIs and Monitoring & Observability categories on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- A comprehensive Model Context Protocol (MCP) server that pro
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx iot-mcp-serversConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use IoT MCP Servers
IoT MCP Servers is a Python-based MCP server framework that connects AI assistants like Claude Desktop and Cursor IDE to physical IoT devices and sensors, enabling natural language reading of sensor data (temperature, humidity, pressure, motion) and dispatch of data-collection tasks to microcontrollers over MQTT, HTTP REST, CoAP, and custom protocols. It supports device discovery, real-time monitoring, threshold-based alerting, and data filtering, and is designed for use with microcontrollers like ESP32, ESP8266, and Raspberry Pi Pico running MicroPython. Researchers and embedded developers use it to build AI-driven IoT dashboards and automated sensing pipelines without writing custom integration code.
Prerequisites
- Python 3.8 or later installed
- uv package manager (curl -LsSf https://astral.sh/uv/install.sh | sh)
- A microcontroller (ESP32, ESP8266, Raspberry Pi Pico) with sensors connected and flashed with the provided main.py
- mpremote installed (pip install mpremote) for uploading scripts to the MCU
- An MCP-compatible client such as Claude Desktop or Cursor IDE
Clone the repository
Clone the IoT MCP Servers repository to your local machine.
git clone https://github.com/Duke-CEI-Center/IoT-MCP-Servers.git
cd IoT-MCP-ServersConnect and configure your sensor hardware
Wire your MCU to the target sensors according to the sensor's datasheet. Ensure the MCU and your computer are on the same network (for MQTT/HTTP) or connected via USB (for serial). Navigate to the sensor subdirectory and run config.py to generate the configuration.
# Example for MPU6050 sensor
cd sensors/MPU6050
python config.pyUpload the main script to your MCU
Use mpremote to transfer the main.py script to your microcontroller. Replace /dev/ttyUSB0 with your MCU's actual serial port.
mpremote connect /dev/ttyUSB0 cp main.py :Initialize the MCP server dependencies
Back in the project root, initialize the uv project and add the MCP CLI dependency.
cd ../..
uv init .
uv add "mcp[cli]"Configure your MCP client
Add the IoT MCP server to your MCP client configuration. Use the absolute path to the server entry point.
{
"mcpServers": {
"iot-mcp": {
"command": "uv",
"args": ["run", "/absolute/path/to/IoT-MCP-Servers/server.py"]
}
}
}Ask Claude to read sensor data
With the MCU online and the MCP server running, ask Claude to read sensor values or set up monitoring tasks.
IoT MCP Servers Examples
Client configuration (Claude Desktop)
Claude Desktop config that launches the IoT MCP server using uv run.
{
"mcpServers": {
"iot-mcp": {
"command": "uv",
"args": ["run", "/absolute/path/to/IoT-MCP-Servers/server.py"]
}
}
}Prompts to try
Example prompts for reading sensors, dispatching tasks, and setting up monitoring.
- "Read the current temperature and humidity from all sensors in the living room"
- "Set up a task to collect temperature data every 5 minutes from sensor_001 for the next 2 hours"
- "Start monitoring all motion sensors and alert me if any detect movement"
- "Show me the current status of all connected IoT devices"
- "List all discovered devices on the network"Troubleshooting IoT MCP Servers
MCP server not detected by Claude Desktop
Verify the absolute path in your MCP config is correct and points to the server entry file. Restart Claude Desktop after any config change. Check that 'uv run' can execute the server successfully from the terminal before connecting a client.
Device connection failure / MQTT errors
Test the MQTT broker independently: mosquitto_pub -h localhost -t test/topic -m 'test'. Verify the device's IP address, that both the MCU and your computer are on the same network, and that authentication credentials in the sensor config match the broker settings.
mpremote cannot find the MCU serial port
On Linux the port is usually /dev/ttyUSB0 or /dev/ttyACM0; on macOS it appears as /dev/tty.usbserial-* or /dev/tty.usbmodem*. Run 'ls /dev/tty.*' (macOS) or 'ls /dev/tty{USB,ACM}*' (Linux) to find the correct port. On Linux you may also need: sudo usermod -aG dialout $USER
Frequently Asked Questions about IoT MCP Servers
What is IoT MCP Servers?
IoT MCP Servers is a Model Context Protocol (MCP) server that comprehensive model context protocol (mcp) server that provides internet of things (iot) device integration for ai assistants like claude desktop and cursor ide. this server enables ai to read sensor data from iot devices and dispatch data collecti It connects AI assistants to external tools and data sources through a standardized interface.
How do I install IoT MCP Servers?
Follow the installation instructions on the IoT MCP Servers GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with IoT MCP Servers?
IoT MCP Servers works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is IoT MCP Servers free to use?
Yes, IoT MCP Servers is open source and available under the NOASSERTION license. You can use it freely in both personal and commercial projects.
IoT MCP Servers Alternatives โ Similar APIs Servers
Looking for alternatives to IoT MCP Servers? Here are other popular apis servers you can use with Claude, Cursor, and VS Code.
Kong
โ 43.4k๐ฆ The API and AI Gateway
API Mega List
โ 5.4kThis GitHub repo is a powerhouse collection of APIs you can start using immediately to build everything from simple automations to full-scale applications. One of the most valuable API lists on GitHubโperiod. ๐ช
Fetch
โ 5.4kFetch web content and convert to markdown for AI consumption
Fusio
โ 2.1kSelf-Hosted API Management for Builders
Korean Law
โ 1.8k๊ตญ๊ฐ๋ฒ๋ น์ ๋ณดMCP v4.0 | ๋ฒ์ ์ฒ 41๊ฐ API โ 17๊ฐ MCP ๋๊ตฌ. ๋ฒ๋ นยทํ๋กยท์กฐ๋ก ๊ฒ์ + LLM ํ๊ฐ ๋ฐฉ์ง ์ธ์ฉ๊ฒ์ฆ + ์กฐ๋ฌธ ์ํฅ ๊ทธ๋ํ(impact_map) + ์์ ๋น๊ต ์๋ diff(time_travel) + ์๋ฏผ 5๋จ๊ณ ์คํ ๊ฐ์ด๋(action_plan) | 41 Korean legal APIs โ 17 MCP tools
RuleGo
โ 1.5kโ๏ธRuleGo is a lightweight, high-performance, embedded, next-generation component orchestration rule engine framework for Go.
Browse More APIs MCP Servers
Explore all apis servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up IoT MCP Servers in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use IoT MCP Servers?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.