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
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-id
Installation
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
.venvScriptsactivate # 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
Usage 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"
}
}
}
}
Azure Resource Server
Project Details
- tim10002/mcp-azresource
- Last Updated: 3/25/2025
Recomended MCP Servers
A MCP server for Home Assistant
Model Context Protocol (MCP) Server for dify workflows
A book series on JavaScript. @YDKJS on twitter.
server that shows trending tokens and integrates Grok, xAI image understanding and vision (interpreted as a vision-capable AI),...
A self-evolving Cursor MCP with comprehensive tools and analytics
kom 是一个用于 Kubernetes 操作的工具,SDK级的kubectl、client-go的使用封装。并且支持作为管理k8s 的 MCP server。 它提供了一系列功能来管理 Kubernetes 资源,包括创建、更新、删除和获取资源,甚至使用SQL查询k8s资源。这个项目支持多种 Kubernetes 资源类型的操作,并能够处理自定义资源定义(CRD)。 通过使用 kom,你可以轻松地进行资源的增删改查和日志获取以及操作POD内文件等动作。
An MCP server implementation that integrates with SearXNG, providing privacy-focused meta search capabilities.
MCP server for dynamic graphql





