Skip to main content
Glama
msftnadavbh

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.


✨ 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)

πŸ“– Full feature details β†’


πŸ› οΈ Tools

11 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

  • spot_eviction_rates / spot_price_history / simulate_eviction - Spot VM tools

πŸ“– 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 β”‚ └── services/ # Business logic β”œβ”€β”€ tests/ # Test suite β”œβ”€β”€ docs/ # Documentation └── scripts/ # Setup 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!

Quick Start

git clone https://github.com/YOUR_USERNAME/AzurePricingMCP.git cd AzurePricingMCP python -m venv .venv && source .venv/bin/activate pip install -e ".[dev]" pytest tests/

Guidelines

  1. Fork the repository

  2. Create a feature branch (git checkout -b feature/amazing-feature)

  3. Commit changes (git commit -m 'Add amazing feature')

  4. Push to branch (git push origin feature/amazing-feature)

  5. Open a Pull Request

Code Style

  • Follow PEP 8

  • Add type hints

  • Include docstrings

  • Run black, ruff, and mypy before submitting

πŸ“– Full contribution guide β†’


πŸ“š 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

CHANGELOG.md

Version history


πŸ“„ License

MIT License - see LICENSE for details.


πŸ™ Acknowledgments


πŸ“¬ Support


-
security - not tested
A
license - permissive license
-
quality - not tested

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/msftnadavbh/AzurePricingMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server