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
- 01Primarily read-only monitoring
- 02Azure CLI authentication
- 03Read device details
Use cases
- 01Checking IoT Hub device information
- 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.
npx -y @tlaukkanen/azure-iothub-mcp-serverAZURE_SUBSCRIPTION_IDAZURE_IOTHUB_NAMELocal servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEAzure 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-iotextension 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
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.