Azure Pricing MCP Server
The Azure Pricing MCP Server gives AI assistants real-time access to Azure retail pricing and cost management tools. Key capabilities include:
Price Search & Comparison: Query retail prices with filters (region, SKU, service, price type, currency, discounts) and compare costs across regions or SKUs.
Cost Estimation: Calculate estimated monthly/yearly costs based on usage patterns for specific services, SKUs, and regions.
SKU Discovery: Find available SKUs using exact or fuzzy/natural language matching (e.g., "web app", "vm", "storage").
Region Recommendations: Identify the cheapest Azure regions for a given service and SKU, ranked with savings percentages.
Reserved Instance Analysis: Get RI pricing for 1-year or 3-year terms with on-demand savings comparison.
Customer Discounts: Retrieve customer-specific discount information.
Spot VM Intelligence (requires Azure auth): Get eviction rate categories, view up to 90 days of price history, and simulate eviction for resilience testing.
Orphaned Resource Detection (requires Azure auth): Detect unused resources (unattached disks, NICs, public IPs, NSGs, empty App Service Plans) with real historical cost data.
PTU Sizing: Estimate Provisioned Throughput Units for Azure OpenAI/AI Foundry deployments with optional cost lookup.
Databricks DBU Pricing: Search DBU rates, estimate costs, and compare workloads.
GitHub Pricing: Access full GitHub pricing catalog (Plans, Copilot, Actions, Security) and estimate costs.
Network Cost Planning: Plan bandwidth, NAT Gateway, and Private Link costs.
Provides tools for estimating Provisioned Throughput Units (PTU) for Azure OpenAI deployments, assisting with AI infrastructure sizing and cost prediction.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Azure Pricing MCP Server compare D4s v4 VM costs between East US and West Europe"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Azure Pricing MCP Server π°
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_mcpThen 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)
π οΈ Tools
19 tools available for AI assistants:
azure_price_search- Search retail pricesazure_price_compare- Compare across regions/SKUsazure_ri_pricing- Reserved Instance pricingazure_cost_estimate- Usage-based cost estimationazure_region_recommend- Find cheapest regionsazure_discover_skus/azure_sku_discovery- SKU lookupget_customer_discount- Customer discount informationspot_eviction_rates/spot_price_history/simulate_eviction- Spot VM toolsfind_orphaned_resources- Detect orphaned resources with cost analysisazure_ptu_sizing- Estimate PTUs for Azure OpenAI deploymentsazure_network_cost_estimate- Network cost planner (bandwidth tiers, NAT Gateway, Private Link)databricks_dbu_pricing/databricks_cost_estimate/databricks_compare_workloads- Databricks DBU pricinggithub_pricing/github_cost_estimate- GitHub pricing catalog and cost estimation
π Installation
Docker (Easiest):
docker build -t azure-pricing-mcp .
docker run -i azure-pricing-mcpPython:
pip install -r requirements.txtπ Full installation guide β
π Integrations
Works with any MCP-compatible AI assistant:
VS Code with GitHub Copilot
Claude Desktop
π 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π API Reference
This server uses the Azure Retail Prices API:
https://prices.azure.com/api/retail/pricesNo 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 |
Installation guide | |
Feature details | |
Tool documentation | |
VS Code & Claude setup | |
Detailed examples | |
Orphaned resources guide | |
Version history |
π License
MIT License - see LICENSE for details.
π Acknowledgments
Original Author: @charris-msft
Current Maintainer: @msftnadavbh
Contributors: @notoriousmic, @iditbnaya, @roy2392
π¬ Support
Issues: GitHub Issues
Discussions: GitHub Discussions
Available Tools
13 toolsazure_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_price_searchC
Search Azure retail prices with various filters
Inputs: service_name, service_family, region, sku_name, +6 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
Scored across 13 tools
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.
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.
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.
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
Related MCP Connectors
Look up, compare and track AI model API prices from an AI assistant. No sign-in needed.
LLM API prices and AI agent cost estimates, verified daily. Read-only cost lookup tools.
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
Verified cloud cost forecasting for AI agents. AWS, GCP, Azure pricing matrix.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables 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-
- AlicenseAqualityDmaintenanceEnables 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.5MIT
- AlicenseNot gradedqualityBmaintenanceEnables 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 npmMIT
- AlicenseBqualityDmaintenanceProvides Oracle Cloud Infrastructure pricing data to AI assistants, enabling cost estimation, shape comparison, and real-time pricing queries.4566 npm5Apache 2.0