Azure Resource Explorer
STDIOTools for listing and querying Azure resources directly from MCP client.
Tools for listing and querying Azure resources directly from MCP client.
This MCP server provides tools for listing and querying Azure resources directly from any MCP client, allowing you to efficiently browse your Azure infrastructure and analyze costs without leaving your workflow.
This is an example of how to query Azure resources:
This is an example of how to query Azure cost:
list_azure_resources
subscription_id
(string, optional): Specific subscription ID to query. If not provided, uses the default subscription from environment variables.resource_group_filter
(string, optional): Filter resource groups by name (case-insensitive contains match).get_azure_costs_rest
subscription_id
(string, optional): Specific subscription ID to query. If not provided, uses the default subscription from environment variables.timeframe
(string, optional): Time period for cost analysis. Default is "MonthToDate".az ad sp create-for-rbac --name {service principal name}
This server requires the following environment variables:
# Required Azure authentication AZURE_TENANT_ID=your-tenant-id AZURE_CLIENT_ID=your-client-id AZURE_CLIENT_SECRET=your-client-secret AZURE_SUBSCRIPTION_ID=your-subscription-id
If you prefer using uv:
# Setup environment with uv uv venv .venv\Scripts\activate # On Windows source .venv/bin/activate # On macOS/Linux # Install dependencies uv add mcp[cli] azure-identity python-dotenv azure-mgmt-resource aiohttp # Run server uv run -m azure_resource_mcp_server
To use with Claude Desktop, add the following to your configuration file:
{ "mcpServers": { "azure-resource": { "command": "uv", "args": [ "--directory", "/ABSOLUTE/PATH/TO/PARENT/FOLDER", "run", "-m", "azure_resource_mcp_server" ], "env": { "AZURE_TENANT_ID": "your-tenant-id", "AZURE_CLIENT_ID": "your-client-id", "AZURE_CLIENT_SECRET": "your-client-secret", "AZURE_SUBSCRIPTION_ID": "your-subscription-id" } } } }