MCP.so
Sign In

Azure IoT Hub MCP Server

@tlaukkanen

Basic information

Category

Cloud & Infrastructure

License

MIT

Transports

stdio

Author

tlaukkanen

About Azure IoT Hub MCP Server

MCP Server for Azure IoT Hub mainly for read-only monitoring purposes. Uses Azure CLI for authentication.

Azure IoT Hub MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "azureIoTHub": {
      "command": "npx",
      "args": [
        "-y",
        "@tlaukkanen/azure-iothub-mcp-server"
      ],
      "env": {
        "AZURE_SUBSCRIPTION_ID": "Azure Subscription ID where you have your IoT Hub",
        "AZURE_IOTHUB_NAME": "Your Azure IoT Hub name"
      }
    }
  }
}

Azure IoT Hub MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

Fetch the live tool list by running this server in a temporary sandbox using the button above.

Overview

What is Azure IoT Hub MCP Server?

Azure IoT Hub MCP Server is a read‑only monitoring tool for Azure IoT Hub. It uses the Azure CLI and the azure-iot extension to authenticate and fetch device details, providing a simple MCP (Model Context Protocol) interface for querying IoT Hub information.

How to use Azure IoT Hub MCP Server?

Install and run the server via npx with the package @tlaukkanen/azure-iothub-mcp-server. Configure it in your mcpServers block with two environment variables: AZURE_SUBSCRIPTION_ID (your Azure subscription ID) and AZURE_IOTHUB_NAME (your IoT Hub name). Ensure Azure CLI is installed, authenticated with az login, and the azure-iot extension is added (az extension add -n azure-iot).

Key features of Azure IoT Hub MCP Server

  • Read‑only access to Azure IoT Hub device data
  • Uses Azure CLI for secure authentication
  • Lightweight, runs via npx with no separate installation
  • Relies on standard Azure CLI azure-iot extension

Use cases of Azure IoT Hub MCP Server

  • Monitoring device status and properties without write permissions
  • Retrieving device twin and connection state information
  • Integrating IoT Hub device data into AI‑assisted workflows via MCP

Frequently asked questions

1

What does this server do?

It provides read‑only monitoring of Azure IoT Hub devices by exposing device details through the MCP protocol. It cannot modify devices or hub settings.

2

What are the prerequisites?

Azure CLI must be installed, authenticated to the subscription containing your IoT Hub, and the `azure-iot` extension must be added (`az extension add -n azure-iot`).

3

How do I authenticate?

Authentication is handled by Azure CLI. Run `az login` before starting the server. The server uses the CLI credentials automatically—no separate keys or tokens are needed.

4

How do I run the server?

Run `npx -y @tlaukkanen/azure-iothub-mcp-server` with the environment variables `AZURE_SUBSCRIPTION_ID` and `AZURE_IOTHUB_NAME` set to your Azure subscription ID and IoT Hub name respectively.

5

Is there any write capability?

No. The server is explicitly designed for read‑only monitoring purposes. It does not support creating, updating, or deleting devices or hub resources.

Comments

More Cloud & Infrastructure MCP servers