Azure Pricing

Provides an MCP server to query Azure Retail Prices data and calculate monthly costs.
  • python

8

GitHub Stars

python

Language

6 months ago

First Indexed

2 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs

You can query Azure resource pricing programmatically with an MCP server that exposes a simple, structured workflow to fetch data from the Azure Retail Prices API. This server lets you discover service families, drill into service names and products, and calculate monthly costs for resources you plan to use, all through MCP-compatible tooling.

How to use

Connect your MCP client to the Azure pricing server and follow the four-step workflow to access pricing data: get service families, get service names within a family, get products for a service, and calculate monthly costs for a chosen product. Use the SSE endpoint to subscribe to live results and configure your client with the server URL shown below.

How to install

# Prerequisites
- Python 3.8 or higher
- Internet access

# 1) Create and activate a virtual environment
python -m venv .venv
# Windows
.venv\Scripts\activate
# macOS/Linux
source .venv/bin/activate

# 2) Install dependencies
pip install -r requirements.txt

# 3) Start the MCP server
python azure_pricing_mcp_server.py

The server starts and listens by default on http://0.0.0.0:8080. You can access the server via the SSE endpoint at /sse and learn about available tools at /tools.

## Configuration and usage notes

To connect a client, configure your MCP client with the following endpoint for the SSE stream that serves the pricing MCP API:

"azure-pricing": { "serverUrl": "http://localhost:8080/sse" }


This tells the MCP client to connect to the local server on port 8080 using the SSE endpoint. Ensure the URL matches the address and port your server is running on.

Notes on usage and endpoints

Key endpoints expose the MCP communication surface and tooling. You can list the available tools, retrieve service families and service names, fetch products, and compute monthly costs through the server’s MCP tools. If you encounter errors, you’ll see descriptive messages that help diagnose missing resources, API rate limits, or network issues.

Available tools

list_service_families

Lists all available Azure service families that organize pricing data according to Azure pricing structure.

get_service_names

Retrieves unique service names within a specified service family, enabling you to narrow down to particular Azure services.

get_products

Fetches product names for a chosen service family and service name, with optional filters like region and price type.

get_monthly_cost

Calculates the estimated monthly cost for a specified Azure product using a given region and monthly hours.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational