Azure Resource MCP Server

Azure Resource 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.

Category
Visit Server

README

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: <img src="image/list_azure_resources.gif" width="800" height="450" />

This is an example of how to query Azure cost: <img src="image/get_azure_costs_rest.gif" width="800" height="450" />

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

  1. Create an Azure service principal for authentication:
   az ad sp create-for-rbac --name {service principal name}
  1. Assign appropriate reader permissions to the service principal
  2. Note your Azure subscription ID, tenant ID, client ID, and client secret
  3. 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
.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

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"
      }
    }
  }
}

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured