IoT MCP Servers

v1.0.0โ€ขAPIsโ€ขstable

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

iot-mcp-serversmcpai-integration
Share:
12
Stars
0
Downloads
0
Weekly
0/5

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

Read sensor data from IoT devices in AI assistants.
Dispatch data collection commands to connected IoT hardware.
Duke-CEI-Center

Maintainer

LicenseNOASSERTION
Languagepython
Versionv1.0.0
UpdatedMay 17, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx iot-mcp-servers

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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-Servers
2

Connect 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.py
3

Upload 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 :
4

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]"
5

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"]
    }
  }
}
6

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.

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.

Quick Config Preview

{ "mcpServers": { "iot-mcp-servers": { "command": "npx", "args": ["-y", "iot-mcp-servers"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide โ†’

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides