Skip to main content

MCP server for estimating Azure service costs using the Azure Retail Prices API

Project description

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azure_pricing_mcp-0.1.3.tar.gz (52.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

azure_pricing_mcp-0.1.3-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file azure_pricing_mcp-0.1.3.tar.gz.

File metadata

  • Download URL: azure_pricing_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 52.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for azure_pricing_mcp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f7cd3f0b9e90cd47fad02680ed88c24d32fb4205a1f58931b1b467d6cd8c1095
MD5 7721c91a0de75291dab86b4fb6c5ad68
BLAKE2b-256 b43573031e770a3cd1a871b00496e62d29ce19b0be51d8d5109b281f163934ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for azure_pricing_mcp-0.1.3.tar.gz:

Publisher: publish.yml on pimentelleo/azure-pricing-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file azure_pricing_mcp-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for azure_pricing_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 399729f44b30839dcfca14b292aedc3cfbdaf7e5a5db4ba113fe825342c823f4
MD5 2e1caca773bba38ca387e7555cb9da8b
BLAKE2b-256 fc015379b0a193aa1a5d1ca5dc8244cc8c63d1de910bfd47c25a23487134195a

See more details on using hashes here.

Provenance

The following attestation bundles were made for azure_pricing_mcp-0.1.3-py3-none-any.whl:

Publisher: publish.yml on pimentelleo/azure-pricing-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page