azure-pricing-mcp
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 what is the price of a D2s v3 VM in East US?"
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
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-mcpOr install and run:
uv pip install azure-pricing-mcp
azure-pricing-mcpRelated MCP server: Azure Pricing MCP Server
Tools
Tool | Description |
| Search Azure retail prices by service, region, SKU, or product name |
| Estimate monthly cost for a service given quantity and usage hours |
| Compare prices for a service/SKU across Azure regions (sorted cheapest first) |
| Discover available Azure services (with optional text search) |
| 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-mcpCursor
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-mcpHow 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 toolscompare_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
Scored across 5 tools
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.
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.
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.
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
Related MCP Connectors
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.
Look up, compare and track AI model API prices from an AI assistant. No sign-in needed.
Live LLM API pricing: token prices, comparisons, cheapest-model lookups. No key required.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides 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.1356MIT
- 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-
- AlicenseAqualityBmaintenanceEnables coding agents to query AI model API prices, including historical point-in-time lookups with cited sources, using a bundled dated dataset and requiring no API keys.555 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables cost analysis, price comparison across regions, and savings plan calculations for Azure services through the Azure Retail Prices API.-