iotHubClient Claude Desktop Config
Add the iotHubClient MCP server to Claude Desktop with this ready-to-use configuration.
Setup Instructions
- Open Claude Desktop
- Go to Settings → Developer → Edit Config →
claude_desktop_config.json - Paste the JSON below into the file
- Set your credentials in the
envsection - Restart Claude Desktop
Configuration JSON
Copy the entire block into your claude_desktop_config.json
{
"mcpServers": {
"azure-com-iothub": {
"command": "npx",
"args": [
"-y",
"@mcp/azure-com-iothub"
],
"env": {
"IOTHUBCLIENT_API_KEY": "your_iothubclient_api_key"
}
}
}
}Environment Variables
IOTHUBCLIENT_API_KEYReplace your_iothubclient_api_key with your actual iothubclient api key
Endpoints
/subscriptions/{subscriptionId}/providers/Microsoft.Devices/IotHubsGet all the IoT hubs in a subscription.
/subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkNameAvailabilityCheck if an IoT hub name is available.
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubsGet all the IoT hubs in a resource group.
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}Get the non-security related metadata of an IoT hub.
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}Create or update the metadata of an IoT hub.
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}Delete an IoT hub.
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/IotHubKeys/{keyName}/listkeysGet a shared access policy by name from an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/IotHubStatsGet the statistics from an IoT hub.
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroupsGet a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub.
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub.