Skip to content
MCP-Bridge
Cloud Infrastructure

iotHubClient MCP Config

Use this API to manage the IoT hubs in your Azure subscription.

Config URL

Use this URL in any MCP-compatible client to fetch the config automatically.

https://mcp-bridge.pages.dev/config/azure-com-iothub.json

Configuration JSON

Use curl https://mcp-bridge.pages.dev/config/azure-com-iothub.json to fetch programmatically.

{
  "mcpServers": {
    "azure-com-iothub": {
      "command": "npx",
      "args": ["-y","@mcp/azure-com-iothub"],
      "env": {
      "IOTHUBCLIENT_API_KEY": "your_iothubclient_api_key"
}
    }
  }
}

How to Use

Claude Desktop

Paste the config JSON into your claude_desktop_config.json.

Full instructions →

Cursor

Go to Cursor Settings → MCP Servers → Add with the JSON above.

CLI / curl

Fetch the config programmatically:

curl https://mcp-bridge.pages.dev/config/azure-com-iothub.json

Environment Variables

IOTHUBCLIENT_API_KEY

Replace your_iothubclient_api_key with your actual iothubclient api key

Endpoints

GET/subscriptions/{subscriptionId}/providers/Microsoft.Devices/IotHubs

Get all the IoT hubs in a subscription.

POST/subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkNameAvailability

Check if an IoT hub name is available.

GET/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs

Get all the IoT hubs in a resource group.

GET/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}

Get the non-security related metadata of an IoT hub.

PUT/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}

Create or update the metadata of an IoT hub.

DELETE/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}

Delete an IoT hub.

POST/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/IotHubKeys/{keyName}/listkeys

Get 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.

GET/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/IotHubStats

Get the statistics from an IoT hub.

GET/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups

Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub.

GET/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.