Azure IoT Hub MCP Server
by nagarjunrio.github.nagarjunr/azure-iot-hubv0.1.0
MCP server for Azure IoT Hub: device registry, twins, methods, jobs, messaging.
context tax
queued
security
queued
cold start
queued
freshness
Maintained2mo ago
Install Azure IoT Hub MCP server
Install in Claude Code
claude mcp add azure-iot-hub -e AZURE_IOT_HUB_CONNECTION_STRING='<azure-iot-hub-connection-string>' -- uvx azure-iot-hub-mcp-serverInstall in Cursor
{
"mcpServers": {
"azure-iot-hub": {
"command": "uvx",
"args": [
"azure-iot-hub-mcp-server"
],
"env": {
"AZURE_IOT_HUB_CONNECTION_STRING": "<azure-iot-hub-connection-string>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"azure-iot-hub": {
"command": "uvx",
"args": [
"azure-iot-hub-mcp-server"
],
"env": {
"AZURE_IOT_HUB_CONNECTION_STRING": "<azure-iot-hub-connection-string>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"azure-iot-hub": {
"type": "stdio",
"command": "uvx",
"args": [
"azure-iot-hub-mcp-server"
],
"env": {
"AZURE_IOT_HUB_CONNECTION_STRING": "<azure-iot-hub-connection-string>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"azure-iot-hub": {
"command": "uvx",
"args": [
"azure-iot-hub-mcp-server"
],
"env": {
"AZURE_IOT_HUB_CONNECTION_STRING": "<azure-iot-hub-connection-string>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| AZURE_IOT_HUB_CONNECTION_STRING | yes | yes | IoT Hub connection string with service/iothubowner rights, e.g. HostName=my-hub.azure-devices.net;SharedAccessKeyName=service;SharedAccessKey=... |
| AZURE_IOT_HUB_AMQP_PORT | — | — | AMQP port for send_c2d_message, default 5671 |
| AZURE_IOT_HUB_AMQP_USE_TLS | — | — | true/false, default true |
Freshness
Maintained — last maintenance signal 2mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-08-04 · 2mo ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-07-24 · 3mo ago · official registry · v0.1.0
FAQ
›How do I install the Azure IoT Hub MCP server in Claude Code?
Run: claude mcp add azure-iot-hub -e AZURE_IOT_HUB_CONNECTION_STRING='<azure-iot-hub-connection-string>' -- uvx azure-iot-hub-mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Azure IoT Hub require an API key?
Yes. It expects AZURE_IOT_HUB_CONNECTION_STRING, of which 1 is a secret.
›Can I use Azure IoT Hub as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Azure IoT Hub in the official MCP registry?
Yes, as io.github.nagarjunr/azure-iot-hub.
Alternatives to Azure IoT Hub
Other cloud platforms MCP servers.