Uredi

Azure MCP Server tools for Azure IoT Hub

The Azure Model Context Protocol (MCP) Server lets you manage Azure IoT Hub resources with natural language prompts. You can list registered devices and get details about an IoT hub.

Azure IoT Hub enables secure, bidirectional communication between IoT devices and cloud backends. For more information, see Azure IoT Hub documentation.

Note

Tool parameters: The Azure MCP Server tools define parameters for data they need to complete tasks. Some of these parameters are specific to each tool and are documented here. Other parameters are global and shared by all tools. For more information, see Tool parameters.

Device: List

Lists device identity metadata in an Azure IoT Hub device registry without returning authentication keys. Use the max count parameter to limit results. The default and maximum value is 100; larger values return an error. If more devices exist, the response sets truncated=true. Hub names and IDs are case-sensitive and must match exactly.

Example CLI command

azmcp iothub device list \
  --hub-name <hub-name> \
  --resource-group <resource-group> \
  [--max-count <max-count>]
Parameter Type Required Description
hub-name string Yes The name of the IoT Hub.
resource-group string Yes The Azure resource group name.
max-count string No The maximum number of items to return per page. Defaults to 100 when not specified. Values greater than 100 are rejected with an error.

Tool annotation hints:

Destructive Idempotent Open World Read Only Secret Local Required

Hub: Get

Retrieves details for an Azure IoT Hub by name in a resource group and subscription. Returns the IoT hub's id, name, location, resourceGroup, subscriptionId, sku, capacity, state, and hostName.

Example CLI command

azmcp iothub hub get \
  --hub-name <hub-name> \
  --resource-group <resource-group>
Parameter Type Required Description
hub-name string Yes The name of the IoT Hub.
resource-group string Yes The Azure resource group name.

Tool annotation hints:

Destructive Idempotent Open World Read Only Secret Local Required