Azure Resource MCP Server
Returns formatted responses in Markdown, including structured lists of Azure resources and cost analysis data with details like locations, types, and tags.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Azure Resource MCP Serverlist my Azure resources in the production resource group"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Azure Resource MCP Server
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:
Features
📊 Resource Discovery - List all resources across your Azure subscriptions
🔍 Filtering - Filter resources by resource group name
💰 Cost Analysis - Retrieve cost information for your Azure subscriptions
🔐 Secure - Uses your Azure service principal credentials
🏷️ Detailed View - See locations, types, and tags for all your resources
Related MCP server: Azure Pricing MCP Server
Tools
list_azure_resources
List Azure resource groups and resources using service principal authentication
Inputs:
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).
Returns: Formatted markdown list of resource groups and their resources with details such as location, type, and tags.
get_azure_costs_rest
Get cost analysis data for an Azure subscription using the REST API
Inputs:
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".
Returns: Formatted markdown with cost analysis data, including daily costs and totals.
Configuration
Setting up Azure
Create an Azure service principal for authentication:
az ad sp create-for-rbac --name {service principal name}Assign appropriate reader permissions to the service principal
Note your Azure subscription ID, tenant ID, client ID, and client secret
Set up the required environment variables
Environment Variables
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-idInstallation
Prerequisites
Python 3.10+
Azure subscription with appropriate permissions
Service principal with reader access to resources
Setup
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_serverUsage with Claude Desktop
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"
}
}
}
}This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -license-quality-maintenanceAn MCP server that wraps the Azure CLI. As LLMs are very good at generating Azure CLI commands, this server allows your LLM to list resources, update/create/delete them, fix errors (by looking at the logs), fix security issues...Last updated81
- Flicense-qualityDmaintenanceThis MCP server enables querying Azure resource pricing programmatically through a structured workflow, including listing service families, service names, products, and calculating monthly costs.Last updated
- Alicense-qualityDmaintenanceAnalyzes Azure cloud costs, audits for waste, and provides budget insights via natural language through a secure local MCP server.Last updated2MIT
- Alicense-qualityCmaintenanceAn MCP server that exposes core Azure services as read-mostly tools any MCP client can call, including Blob Storage, Key Vault, Service Bus, and Resource Manager.Last updated1MIT
Related MCP Connectors
Official Microsoft MCP Server to query Microsoft Entra data using natural language
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tim10002/mcp-azresource'
If you have feedback or need assistance with the MCP directory API, please join our Discord server