JUHE API Marketplace
tim10002 avatar
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.

3
GitHub Stars
11/22/2025
Last Updated
MCP Server Configuration
1{
2 "name": "azure-resource",
3 "command": "uv",
4 "args": [
5 "--directory",
6 "/ABSOLUTE/PATH/TO/PARENT/FOLDER",
7 "run",
8 "-m",
9 "azure_resource_mcp_server"
10 ],
11 "env": {
12 "AZURE_TENANT_ID": "your-tenant-id",
13 "AZURE_CLIENT_ID": "your-client-id",
14 "AZURE_CLIENT_SECRET": "your-client-secret",
15 "AZURE_SUBSCRIPTION_ID": "your-subscription-id"
16 }
17}
JSON17 lines
  1. Home
  2. MCP Servers
  3. mcp-azresource

README Documentation

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

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

Quick Install

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.ai
Copyright © 2025 - All rights reserved