Skip to main content
Glama
azure-pricing-mcp

azure-pricing-mcp

by pimentelleo

azure-pricing-mcp

An MCP (Model Context Protocol) server that lets LLMs query Azure service pricing using the public Azure Retail Prices API.

No Azure credentials required — the API is free and public.

Quick Start

Run directly with uvx:

uvx azure-pricing-mcp

Or install and run:

uv pip install azure-pricing-mcp
azure-pricing-mcp

Related MCP server: Azure Pricing MCP Server

Tools

Tool

Description

search_prices

Search Azure retail prices by service, region, SKU, or product name

estimate_cost

Estimate monthly cost for a service given quantity and usage hours

compare_regions

Compare prices for a service/SKU across Azure regions (sorted cheapest first)

list_services

Discover available Azure services (with optional text search)

list_regions

List Azure regions (optionally filtered by service)

All tools support a currency_code parameter (default: USD). Examples: EUR, BRL, GBP, JPY.

Usage Examples

Once connected to an MCP client (Claude Desktop, Cursor, Claude Code, etc.), you can ask:

  • "What's the price of a D2 v3 VM in East US?"

  • "Estimate the monthly cost for 5 Standard_LRS storage accounts in West Europe"

  • "Compare Virtual Machines D4 v3 pricing across all regions"

  • "List all Azure services related to 'database'"

  • "What regions offer Azure Cosmos DB?"

Configuration

Using mcp.json (VS Code / GitHub Copilot)

Create an mcp.json file in your project's .vscode folder (.vscode/mcp.json) to share the server with your team:

{
  "servers": {
    "azure-pricing": {
      "command": "uvx",
      "args": ["azure-pricing-mcp"]
    }
  }
}

Or add it at the user level (~/.vscode/mcp.json) to make it available across all projects.

Tip: When opening a project with an mcp.json, VS Code will prompt you to start the MCP server automatically.

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "azure-pricing": {
      "command": "uvx",
      "args": ["azure-pricing-mcp"]
    }
  }
}

Claude Code

claude mcp add azure-pricing -- uvx azure-pricing-mcp

Cursor

Add to your Cursor MCP settings (.cursor/mcp.json):

{
  "mcpServers": {
    "azure-pricing": {
      "command": "uvx",
      "args": ["azure-pricing-mcp"]
    }
  }
}

Windsurf

Add to your Windsurf MCP config (~/.windsurf/mcp.json):

{
  "mcpServers": {
    "azure-pricing": {
      "command": "uvx",
      "args": ["azure-pricing-mcp"]
    }
  }
}

Development

# Clone and install
git clone https://github.com/pimentelleo/azure-pricing-mcp.git
cd azure-pricing-mcp
uv sync

# Run locally
uv run azure-pricing-mcp

# Test with MCP Inspector
npx -y @modelcontextprotocol/inspector uv run azure-pricing-mcp

How It Works

This server uses the Azure Retail Prices REST API to fetch real-time public pricing data for Azure services. Key characteristics:

  • No authentication required — the API is publicly accessible

  • Real-time data — prices are updated regularly by Microsoft

  • Public retail prices only — does not include enterprise agreements or negotiated rates

  • Supports all Azure services — VMs, Storage, Databases, Networking, AI/ML, and more

License

MIT

Available Tools

5 tools
compare_regionsA

Compare prices for an Azure service/SKU across multiple regions.

Results are sorted by price (cheapest first).

Args: service_name: Azure service name (e.g. "Virtual Machines") arm_sku_name: ARM SKU name for exact match (e.g. "Standard_D8s_v5") sku_name: SKU display name (e.g. "D2 v3") product_name: Product name for more specific filtering regions: List of region names to compare. If omitted, shows all available regions. currency_code: Currency code (default: USD)

Inputs: service_name (required), regions, sku_name, arm_sku_name, +2 more. Returns: result

estimate_costA

Estimate monthly cost for an Azure service based on quantity and usage hours.

The estimation multiplies the unit retail price by the quantity and hours. For storage or data services priced per GB/month, set hours_per_month to 1.

Args: service_name: Azure service name (e.g. "Virtual Machines") arm_sku_name: ARM SKU name for exact match (e.g. "Standard_D8s_v5") sku_name: SKU display name to narrow down (e.g. "D2 v3") arm_region_name: Azure region (e.g. "eastus") quantity: Number of units (e.g. VM instances, GB of storage). Default: 1 hours_per_month: Usage hours per month (default: 730 = 24/7). Set to 1 for flat monthly rates. currency_code: Currency code (default: USD)

Inputs: service_name (required), quantity, sku_name, arm_sku_name, +3 more. Returns: result

list_regionsA

List available Azure regions.

Args: service_name: If provided, only show regions where this service is available

Inputs: service_name. Returns: result

list_servicesA

List available Azure services in the pricing API.

Args: search: Optional text to filter service names (case-insensitive substring match)

Inputs: search. Returns: result

search_pricesA

Search Azure retail prices by service, region, SKU, or product name.

Args: service_name: Azure service name (e.g. "Virtual Machines", "Storage") arm_region_name: Azure region (e.g. "eastus", "westeurope", "brazilsouth") arm_sku_name: ARM SKU name for exact match (e.g. "Standard_D8s_v5", "Standard_B2s") sku_name: SKU display name (e.g. "D2 v3", "Standard_LRS"). Use arm_sku_name for exact VM matching. product_name: Product name (e.g. "Virtual Machines Dv3 Series") price_type: Price type filter: "Consumption" (pay-as-you-go), "Reservation" (reserved instances), or "DevTestConsumption" currency_code: Currency code (default: USD). Examples: USD, EUR, BRL, GBP max_results: Maximum number of results to return (default: 10, max: 50)

Inputs: sku_name, price_type, max_results, arm_sku_name, +4 more. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clear, distinct purpose: searching prices, estimating costs, listing services, listing regions, and comparing regional prices. No two tools overlap in a way that would cause an agent to pick the wrong one.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with lowercase and underscores (search_prices, estimate_cost, list_services, list_regions, compare_regions). This makes the API predictable and easy to navigate.

    Tool Count5/5

    With 5 tools, the server is well-scoped for its purpose. Each tool addresses a core aspect of Azure pricing: discovery, search, estimation, and regional comparison, without unnecessary redundancy.

    Completeness5/5

    The tool surface covers the main pricing workflow: discovering services and regions, searching for price data, comparing prices across regions, and estimating costs. No significant gaps are apparent for a read-only pricing API.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides AI assistants with real-time access to Azure retail pricing information, enabling price searches, regional cost comparisons, monthly bill estimates, and SKU discovery through natural language queries.
      13
      56
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables querying Azure retail pricing information, comparing costs across regions and SKUs, estimating usage-based expenses, and discovering Azure services with savings plan information through the Azure Retail Prices API.
      16
      -