Azure Pricing MCP Server
Query Azure retail pricing information using the Azure Retail Prices API.
Azure Pricing MCP Server ๐ฐ
A Model Context Protocol (MCP) server that provides tools for querying Azure retail pricing information using the Azure Retail Prices API.
๐ Quick Start
- Clone/Download this repository
- Run setup:
setup.ps1(Windows PowerShell) orpython setup.py(Cross-platform) - Configure Claude Desktop (see QUICK_START.md)
- Ask Claude: "What's the price of a Standard_D2s_v3 VM in East US?"
โจ Features
- ๐ Azure Price Search: Search for Azure service prices with flexible filtering
- โ๏ธ Service Comparison: Compare prices across different regions and SKUs
- ๐ก Cost Estimation: Calculate estimated costs based on usage patterns
- ๐ฐ Savings Plan Information: Get Azure savings plan pricing when available
- ๐ Multi-Currency: Support for multiple currencies (USD, EUR, etc.)
- ๐ Real-time Data: Uses live Azure Retail Prices API
๐ ๏ธ Tools Available
| Tool | Description | Example Use |
|---|---|---|
azure_price_search | Search Azure retail prices with filters | Find VM prices in specific regions |
azure_price_compare | Compare prices across regions/SKUs | Compare storage costs across regions |
azure_cost_estimate | Estimate costs based on usage | Calculate monthly costs for 8hr/day usage |
azure_discover_skus | Discover available SKUs for a service | Find all VM types for a service |
azure_sku_discovery | Intelligent SKU discovery with fuzzy matching | "Find app service plans" or "web app pricing" |
๐ Installation
Automated Setup (Recommended)
# Windows PowerShell
.\setup.ps1
# Cross-platform (Python)
python setup.py
Manual Setup
# Create virtual environment
python -m venv .venv
# Activate virtual environment
.venv\Scripts\activate # Windows
source .venv/bin/activate # Linux/Mac
# Install dependencies
pip install -r requirements.txt
๐ง Configuration
Add to your Claude Desktop config file:
{
"mcpServers": {
"azure-pricing": {
"command": "python",
"args": ["-m", "azure_pricing_server"],
"cwd": "/path/to/azure_pricing"
}
}
}
๐ฌ Example Queries
Once configured with Claude, you can ask:
- Basic Pricing: "What's the price of Azure SQL Database?"
- Comparisons: "Compare VM prices between East US and West Europe"
- Cost Estimation: "Estimate costs for running a D4s_v3 VM 12 hours per day"
- Savings: "What are the reserved instance savings for virtual machines?"
- GPU Pricing: "Show me all GPU-enabled VMs with pricing"
- Service Discovery: "Find all App Service plan pricing" or "What storage options are available?"
- SKU Discovery: "Show me all web app hosting plans"
๐งช Testing
Test setup and connectivity:
# Windows PowerShell
.\test_setup.ps1
# Cross-platform test
python -m azure_pricing_server --test
๐ Documentation
- QUICK_START.md - Step-by-step setup guide
- USAGE_EXAMPLES.md - Detailed usage examples and API responses
- config_examples.json - Example configurations for Claude Desktop and VS Code
๐ API Integration
This server uses the official Azure Retail Prices API:
- Endpoint:
https://prices.azure.com/api/retail/prices - Version:
2023-01-01-preview(supports savings plans) - Authentication: None required (public API)
- Rate Limits: Generous limits for retail pricing data
๐ Key Features
Smart Filtering
- Filter by service name, family, region, SKU
- Support for partial matches and contains operations
- Case-sensitive filtering for precise results
Cost Optimization
- Automatic savings plan detection
- Reserved instance pricing comparisons
- Multi-region cost analysis
- Intelligent SKU discovery for finding the best pricing options
Developer Friendly
- Comprehensive error handling
- Detailed logging for troubleshooting
- Flexible parameter support
- Cross-platform setup scripts (PowerShell and Python)
๐ค Contributing
This project follows the Spec-Driven Development (SDD) methodology. Contributions are welcome!
- Fork the repository
- Create a feature branch
- Add tests for new functionality
- Submit a pull request
๐ License
MIT License - see LICENSE file for details
๐โโ๏ธ Support
- Check QUICK_START.md for setup issues
- Review USAGE_EXAMPLES.md for query patterns
- Open an issue for bugs or feature requests
Built with the Model Context Protocol (MCP) for seamless integration with Claude and other AI assistants.
Related Servers
Contentstack
Interact with Contentstack's Content Management API to manage your CMS content.
Kong Konnect MCP Server
Interact with Kong Konnect APIs to query and analyze Kong Gateway configurations, traffic, and analytics.
Remote MCP Server on Cloudflare
A remote MCP server running on Cloudflare Workers with OAuth login support.
Kaltura MCP Server
A server for performing secure, read-only operations on the Kaltura API.
CData SAP Concur
A read-only MCP server to query live SAP Concur data, powered by CData.
API-MARKET MCP Server
Exposes API-Market's endpoints as MCP resources, requiring an API key for access.
Shopify MCP Server
Interact with Shopify store data using the GraphQL API.
Unsplash MCP Server
An MCP server for accessing the Unsplash API to search for and retrieve photos.
AWS News
Fetches the latest announcements, blog posts, and news for specific AWS services.
MCP Server for National Park Services Data
Retrieve data from the National Park Service (NPS) API.