Skip to main content
Glama
Azure Pricing MCP Server

Azure Pricing MCP Server

by msftnadavbh

Azure Pricing MCP Server πŸ’°

Python 3.10+ MCP License: MIT Tests

A Model Context Protocol (MCP) server that provides AI assistants with real-time access to Azure retail pricing information. Query VM prices, compare costs across regions, estimate monthly bills, and discover available SKUsβ€”all through natural language.


πŸš€ Quick Start

# Clone and setup
git clone https://github.com/msftnadavbh/AzurePricingMCP.git
cd AzurePricingMCP
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install -r requirements.txt

# Test the server
python -m azure_pricing_mcp

Then configure your AI assistant. See Integrations.


Related MCP server: azure-pricing-mcp

✨ Features

  • Price Search - Query Azure prices with flexible filters

  • Price Comparison - Compare costs across regions or SKUs

  • Cost Estimation - Calculate monthly/yearly costs

  • Reserved Instances - Compare RI pricing with break-even analysis

  • Region Recommendations - Find the cheapest regions for any SKU

  • SKU Discovery - Fuzzy matching for service names

  • Retirement Warnings - Alerts for retiring VM SKUs

  • Spot VM Intelligence - Eviction rates and price history (requires Azure auth)

  • Orphaned Resources - Detect unused resources with real cost calculation (requires Azure auth)

  • PTU Sizing - Estimate Provisioned Throughput Units for Azure OpenAI deployments

  • Databricks DBU Pricing - Search DBU rates, estimate costs, compare workloads

  • GitHub Pricing - Full GitHub pricing catalog + cost estimation (Plans, Copilot, Actions, Security)

πŸ“– Full feature details β†’


πŸ› οΈ Tools

19 tools available for AI assistants:

  • azure_price_search - Search retail prices

  • azure_price_compare - Compare across regions/SKUs

  • azure_ri_pricing - Reserved Instance pricing

  • azure_cost_estimate - Usage-based cost estimation

  • azure_region_recommend - Find cheapest regions

  • azure_discover_skus / azure_sku_discovery - SKU lookup

  • get_customer_discount - Customer discount information

  • spot_eviction_rates / spot_price_history / simulate_eviction - Spot VM tools

  • find_orphaned_resources - Detect orphaned resources with cost analysis

  • azure_ptu_sizing - Estimate PTUs for Azure OpenAI deployments

  • azure_network_cost_estimate - Network cost planner (bandwidth tiers, NAT Gateway, Private Link)

  • databricks_dbu_pricing / databricks_cost_estimate / databricks_compare_workloads - Databricks DBU pricing

  • github_pricing / github_cost_estimate - GitHub pricing catalog and cost estimation

πŸ“– Tool documentation β†’


πŸ“‹ Installation

Docker (Easiest):

docker build -t azure-pricing-mcp .
docker run -i azure-pricing-mcp

Python:

pip install -r requirements.txt

πŸ“– Full installation guide β†’


πŸ”Œ Integrations

Works with any MCP-compatible AI assistant:

  • VS Code with GitHub Copilot

  • Claude Desktop

πŸ“– Integration setup β†’


πŸ“ Project Structure

AzurePricingMCP/
β”œβ”€β”€ src/azure_pricing_mcp/    # Main package
β”‚   β”œβ”€β”€ server.py             # MCP server
β”‚   β”œβ”€β”€ handlers.py           # Tool handlers
β”‚   β”œβ”€β”€ client.py             # Azure API client
β”‚   β”œβ”€β”€ config.py             # Pricing data & constants
β”‚   β”œβ”€β”€ tools.py              # Core tool definitions
β”‚   β”œβ”€β”€ formatters.py         # Response formatters
β”‚   β”œβ”€β”€ models.py             # Data models
β”‚   β”œβ”€β”€ services/             # Business logic
β”‚   β”œβ”€β”€ databricks/           # Databricks DBU tools
β”‚   └── github_pricing/       # GitHub pricing tools
β”œβ”€β”€ tests/                    # Test suite (9 files, 236+ tests)
β”œβ”€β”€ docs/                     # Documentation
└── scripts/                  # Setup & debug scripts

πŸ“– Detailed structure β†’


πŸ”Œ API Reference

This server uses the Azure Retail Prices API:

https://prices.azure.com/api/retail/prices

No authentication required - The Azure Retail Prices API is publicly accessible.


🀝 Contributing

We welcome contributions! See CONTRIBUTING.md for setup instructions, code style, and PR process.


πŸ“š Documentation

Document

Description

INSTALL.md

Installation guide

docs/FEATURES.md

Feature details

docs/TOOLS.md

Tool documentation

docs/INTEGRATIONS.md

VS Code & Claude setup

docs/USAGE_EXAMPLES.md

Detailed examples

docs/ORPHANED_RESOURCES.md

Orphaned resources guide

CHANGELOG.md

Version history


πŸ“„ License

MIT License - see LICENSE for details.


πŸ™ Acknowledgments


πŸ“¬ Support


Available Tools

13 tools
azure_cost_estimateC

Estimate Azure costs based on usage patterns

Inputs: service_name (required), sku_name (required), region (required), hours_per_month, +3 more.

azure_discover_skusC

Discover available SKUs for a specific Azure service

Inputs: service_name (required), region, price_type, limit.

azure_price_compareC

Compare Azure prices across regions or SKUs

Inputs: service_name (required), sku_name, regions, currency_code, +2 more.

azure_ptu_sizingA

Estimate required Provisioned Throughput Units (PTUs) for Azure OpenAI / AI Foundry model deployments. Calculates PTUs based on workload shape (RPM, input/output tokens, caching) with official rounding rules. Optionally estimates hourly/monthly cost via Azure Retail Prices API. Supports Global, Data Zone, and Regional Provisioned deployment types.

Inputs: model (required), deployment_type (required), rpm (required), avg_input_tokens (required), +5 more.

azure_region_recommendB

Find the cheapest Azure regions for a given service and SKU. Dynamically discovers all available regions, compares prices, and returns ranked recommendations with savings percentages.

Inputs: service_name (required), sku_name (required), top_n, currency_code, +2 more.

azure_ri_pricingC

Get Reserved Instance pricing and savings analysis

Inputs: service_name (required), sku_name, region, reservation_term, +3 more.

azure_sku_discoveryC

Discover available SKUs for Azure services with intelligent name matching

Inputs: service_hint (required), region, currency_code, limit.

find_orphaned_resourcesA

Detect orphaned Azure resources (unattached disks, NICs, public IPs, NSGs, empty App Service Plans) across subscriptions and compute their real historical cost via Azure Cost Management. Requires Azure authentication (az login or environment variables).

Inputs: days, all_subscriptions.

get_customer_discountB

Get customer discount information. Returns default 10% discount for all customers.

Inputs: customer_id.

simulate_evictionA

Simulate eviction of a Spot VM for testing application resilience. Requires Azure authentication with 'Virtual Machine Contributor' role. The VM will receive a 30-second eviction notice via Scheduled Events.

Inputs: vm_resource_id (required).

spot_eviction_ratesA

Get Spot VM eviction rates for specified SKUs and regions. Requires Azure authentication (az login or environment variables). Returns eviction rate categories: 0-5%, 5-10%, 10-15%, 15-20%, 20%+.

Inputs: skus (required), locations (required).

spot_price_historyA

Get Spot VM price history for a specific SKU and region. Requires Azure authentication (az login or environment variables). Returns up to 90 days of historical Spot pricing data.

Inputs: sku (required), location (required), os_type.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 13 tools

    Disambiguation4/5

    Most tools have distinct purposes, such as cost estimation, SKU discovery, and spot VM analysis, but there is some overlap between azure_discover_skus and azure_sku_discovery, which could cause confusion as both handle SKU discovery with similar descriptions. The other tools are well-differentiated for Azure pricing tasks.

    Naming Consistency5/5

    All tool names follow a consistent snake_case pattern with a clear 'azure_' prefix, making them predictable and easy to parse. The naming convention is uniform across all 13 tools, enhancing readability and coherence.

    Tool Count5/5

    With 13 tools, the server is well-scoped for Azure pricing and cost management, covering key areas like cost estimation, price comparison, SKU discovery, and spot VM analysis. Each tool serves a specific function without bloat, aligning well with the domain's complexity.

    Completeness4/5

    The tool set provides comprehensive coverage for Azure pricing, including cost estimation, price comparison, SKU discovery, and spot VM management. Minor gaps exist, such as lack of tools for budget alerts or detailed discount management beyond the basic get_customer_discount, but core workflows are well-supported.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • 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
      -
    • A
      license
      A
      quality
      D
      maintenance
      Enables LLMs to query Azure service pricing via the public Azure Retail Prices API, with tools for searching prices, estimating costs, comparing regions, and listing services.
      5
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to parse multi-cloud infrastructure-as-code files, query real-time pricing from AWS, Azure, and GCP, and generate cost estimates and comparison reports.
      73 npm
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Provides Oracle Cloud Infrastructure pricing data to AI assistants, enabling cost estimation, shape comparison, and real-time pricing queries.
      45
      66 npm
      5
      Apache 2.0