mcpField
A
Azure IoT Hub MCP Server

Azure IoT Hub MCP Server

Local
github.com/tlaukkanenCloud & Infra0Updated 82w ago

About Azure IoT Hub MCP Server

An MCP server for primarily read-only monitoring of Azure IoT Hub. It authenticates through Azure CLI and uses the Azure CLI `azure-iot` extension to read device details.

Key features

  1. 01Primarily read-only monitoring
  2. 02Azure CLI authentication
  3. 03Read device details

Use cases

  1. 01Checking IoT Hub device information
  2. 02Read-only monitoring from an MCP client

MCP support

The MCP server exposes Azure IoT Hub device-detail reading to MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"azure-iothub": {
"command": "npx",
"args": [
"-y",
"@tlaukkanen/azure-iothub-mcp-server"
],
"env": {
"AZURE_SUBSCRIPTION_ID": "<AZURE_SUBSCRIPTION_ID>",
"AZURE_IOTHUB_NAME": "<AZURE_IOTHUB_NAME>"
}
}
}
}
Run commandnpx -y @tlaukkanen/azure-iothub-mcp-server
Environment variables to set
AZURE_SUBSCRIPTION_ID
AZURE_IOTHUB_NAME

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@tlaukkanen/azure-iothub-mcp-server

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Azure IoT Hub MCP Server

MCP Server for Azure IoT Hub mainly for read-only monitoring purposes. Uses Azure CLI for authentication and uses Azure CLI azure-iot extension for reading device details.

Prerequisites

  • Azure CLI installed
  • Azure CLI authenticated to subscription where your IoT Hub is located
  • Azure CLI azure-iot extension installed (az extension add -n azure-iot)

Azure Identity Authentication

Be sure you are logged in to Azure CLI with az login then add the following to your mcpServers:

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

  }
}

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.