Skip to content
MCP server

Azure IoT Hub

MCP server for Azure IoT Hub: device registry, twins, methods, jobs, messaging.

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.1.0
Listing updated
4 days ago

About Azure IoT Hub

Azure IoT Hub is an open-source MCP server for cloud and infrastructure. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add azure-iot-hub --env AZURE_IOT_HUB_CONNECTION_STRING='<AZURE_IOT_HUB_CONNECTION_STRING>' -- uvx azure-iot-hub-mcp-server

Add to claude_desktop_config.json

{
  "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

{
  "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 .vscode/mcp.json

{
  "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 ~/.codeium/windsurf/mcp_config.json

{
  "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 your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "azure-iot-hub": {
      "command": "uvx",
      "args": [
        "azure-iot-hub-mcp-server"
      ],
      "env": {
        "AZURE_IOT_HUB_CONNECTION_STRING": "<AZURE_IOT_HUB_CONNECTION_STRING>"
      }
    }
  }
}

Configuration

  • AZURE_IOT_HUB_CONNECTION_STRINGIoT Hub connection string with service/iothubowner rights, e.g. HostName=my-hub.azure-devices.net;SharedAccessKeyName=service;SharedAccessKey=...Required
  • AZURE_IOT_HUB_AMQP_PORTAMQP port for send_c2d_message, default 5671
  • AZURE_IOT_HUB_AMQP_USE_TLStrue/false, default true

Pricing

Open source

Azure IoT Hub FAQ

Is Azure IoT Hub free?

Yes. Azure IoT Hub is open source, so you can use and self-host it for free.

How do I add Azure IoT Hub to Claude Code?

Run this command in your terminal: claude mcp add azure-iot-hub --env AZURE_IOT_HUB_CONNECTION_STRING='<AZURE_IOT_HUB_CONNECTION_STRING>' -- uvx azure-iot-hub-mcp-server

What are the best alternatives to Azure IoT Hub?

The closest alternatives to Azure IoT Hub are Agent Yurt, Proofline, filex, MagicWP MCP and Kubana Cloud Domains.

Alternatives to Azure IoT Hub

  1. Agent Yurt

    MCP server

    Back up agent memory, files and dashboards, then recover from a reviewed snapshot

    Not checked yet
    • Remote
    • Free
    • Knowledge and memory
  2. Proofline

    MCP server

    Production-aware review of changes against your AWS or Google Cloud setup, via MCP

    • Remote
    • Freemium
    • Developer tools
  3. filex

    MCP server

    Self-hosted file manager in one Go binary with a built-in MCP server for agents

    Not checked yet
    • Remote
    • Open source
    • Files and documents
  4. MagicWP MCP

    MCP server

    Run WordPress hosting from an assistant: backups, staging, updates, PHP and domains

    • Remote
    • Free trial
    • Cloud and infrastructure
  5. Search, register and renew domains and set nameservers at Kubana Cloud from an assistant

    Not checked yet
    • 3 tools
    • Remote
    • Paid
    • Cloud and infrastructure
  6. Create DNS zones, edit records and check nameserver delegation on Kubana Cloud

    Not checked yet
    • 5 tools
    • Remote
    • Free
    • Cloud and infrastructure