home / mcp / azure pricing mcp server

Azure Pricing MCP Server

MCP server that queries Azure Retail Prices API to search, compare, and estimate Azure pricing

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "charris-msft-azure-pricing-mcp": {
      "command": "python",
      "args": [
        "-m",
        "azure_pricing_server"
      ]
    }
  }
}

You can query Azure retail pricing data programmatically with an MCP server that exposes tools for searching, comparing, and estimating costs using the Azure Retail Prices API. This server helps you quickly find VM, storage, and service pricing across regions, and it can adapt to different currencies and savings plans.

How to use

You run this MCP server locally and connect to it through your MCP client. The server provides tools to search Azure retail prices, compare prices across regions and SKUs, estimate future costs based on usage patterns, and discover relevant SKUs and savings options. Use natural language prompts to request pricing for specific services, regions, or SKUs, and your MCP client will route those requests to the server for results.

Typical usage patterns include asking for the price of a particular VM in a region, comparing prices between regions, estimating monthly costs for a given usage schedule, and discovering available SKUs for a service. The server supports multi-currency queries and real-time data from the Azure Retail Prices API.

How to install

Prerequisites: you need Python installed on your system.

# Automated Setup (Recommended)

# Windows PowerShell
.\setup.ps1

# Cross-platform (Python)
p python setup.py

Manual Setup steps you can follow if you prefer to install dependencies yourself.

# 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

Configure your MCP client to load the Azure Pricing MCP server by adding a server entry that runs the Python module for the server.

{
  "mcpServers": {
    "azure-pricing": {
      "command": "python",
      "args": ["-m", "azure_pricing_server"],
      "cwd": "/path/to/azure_pricing"
    }
  }
}

Available tools

azure_price_search

Search Azure retail prices with filters such as service name, region, and SKU, returning pricing options that match your criteria.

azure_price_compare

Compare prices across regions or SKUs to identify the most cost-effective options for a given service.

azure_cost_estimate

Estimate monthly costs based on usage patterns and time commitments, helping you plan budgets.

azure_discover_skus

Discover available SKUs for a service to understand what pricing options exist.

azure_sku_discovery

Intelligent SKU discovery with fuzzy matching to find pricing information for related or similar services.