Returns formatted responses in Markdown, including structured lists of Azure resources and cost analysis data with details like locations, types, and tags.
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:
- 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:
Installation
Prerequisites
- Python 3.10+
- Azure subscription with appropriate permissions
- Service principal with reader access to resources
Setup
If you prefer using uv:
Usage with Claude Desktop
To use with Claude Desktop, add the following to your configuration file:
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
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.
Related MCP Servers
- AsecurityAlicenseAqualityIntegrates Cline with Azure DevOps services, enabling access to work items, repositories, and pull requests through configurable MCP tools.Last updated -1511TypeScriptMIT License
- -securityAlicense-qualityAn MCP server that provides access to Azure Data Explorer (ADX) clusters, allowing users to list tables, execute queries, and retrieve schema information.Last updated -PythonMIT License
- -securityAlicense-qualityAn 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 updated -61MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server for querying and analyzing Azure resources at scale using Azure Resource Graph, enabling AI assistants to explore and monitor Azure infrastructure.Last updated -15TypeScriptMIT License