azure-latency-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@azure-latency-mcpTest latency to westeurope, northeurope, uksouth, germanywestcentral, and polandcentral"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Azure Region Advisor
An AI-powered toolkit for making informed Azure region selection decisions by combining network latency testing and pricing analysis. Designed to work with GitHub Copilot (with Claude) and Claude Desktop through MCP (Model Context Protocol) and Claude Skills.
Overview
Choosing the right Azure region involves balancing two key factors:
Factor | Tool | Purpose |
Latency | MCP Server | Measures actual TCP connection latency from your location to Azure regions |
Cost | Claude Skill | Queries Azure Retail Prices API for VM pricing across regions |
When used together with an AI assistant, these tools provide comprehensive region recommendations that consider both performance and cost implications.

Related MCP server: YellowMCP
Features
π Latency Testing (MCP Server)
Tests TCP connection latency to Azure blob storage endpoints
Creates temporary storage accounts for regions without public endpoints
Parallel execution for speed
Automatic cleanup of temporary resources
Supports cancellation with graceful resource cleanup
π° Pricing Analysis (Claude Skill)
Queries Azure Retail Prices API for any VM SKU
Compares pricing across all Azure regions
Shows consumption, spot, and reserved instance pricing
Calculates annual costs and potential savings
Supports multiple currencies (USD, EUR, GBP, TRY, etc.)
Installation
Prerequisites
Python 3.10+ Download & Install Python
Azure CLI - For authentication Download and Installation Instructions
VS Code Insider with GitHub Copilot - For the integrated experience Download here.
IMPORTANT NOTE: Please use only VS Code Insider as of January 2026 as the Agent Skills is only supported on Insiders edition as of Jan 2026.
Quick Start
# Clone the repository
git clone https://github.com/yourusername/azure-region-advisor.git
cd azure-region-advisor
# Install dependencies
pip install -r requirements.txt
# Authenticate with Azure
az login
# You are done! start the VSCODE insider, enable Github Copilot agent and start chatting:)Usage
Everything is preconfigured once you installed requirements and enabled copilot for VSCode Insider you are good to go!
Recommended: AI-Assisted Region Selection
Ask your AI assistant questions like:
"Help me choose an Azure region for deploying a Standard_D8as_v6 VM. I need good latency from Turkey and want to optimize costs."
The assistant will:
Discuss your requirements and confirm the VM SKU
Run latency tests to candidate regions using the MCP server
Query pricing data using the Claude skill
Combine results into a comprehensive recommendation
Example Conversation
You: I need to deploy an 8-core VM with 32GB RAM for a web application serving users in Turkey. Help me choose the best region.
Assistant: For your requirements, I recommend the Standard_D8as_v6 SKU (AMD-based, 8 vCPU, 32GB RAM). Let me analyze the best regions...
[Runs latency tests and pricing queries]
Output:
BΓΆlge | Linux/Saat | YΔ±llΔ±k Maliyet | Latency |
uksouth π | $0.0506 | ~$443/yΔ±l | 52.4 ms |
swedencentral | $0.0717 | ~$628/yΔ±l | 57.4 ms |
germanywestcentral | $0.0811 | ~$710/yΔ±l | 39.6 ms β‘ |
polandcentral | $0.0813 | ~$712/yΔ±l | 45.2 ms |
π― Recommendations:
Option 1: Lowest Cost - UK South ($1,918/yr total)
Option 2: Lowest Latency - Germany West Central (39.6ms)
Option 3: Balanced - Poland Central (good price/performance)
Direct Tool Usage
Query VM Pricing
# Basic pricing query
python .claude/skills/azure-pricing/scripts/query_vm_pricing.py --sku Standard_D8as_v6
# With specific currency
python .claude/skills/azure-pricing/scripts/query_vm_pricing.py --sku Standard_D48as_v6 --currency EUR
# Filter to specific regions
python .claude/skills/azure-pricing/scripts/query_vm_pricing.py --sku Standard_D8as_v6 \
--regions westeurope,northeurope,uksouth,germanywestcentralTest Latency via MCP
Ask your AI assistant:
"Test latency to westeurope, northeurope, uksouth, germanywestcentral, and polandcentral"
Or use the MCP Inspector:
npx @modelcontextprotocol/inspector python -m azure_latency_mcp.serverConfiguration
VS Code + GitHub Copilot
The repository includes pre-configured VS Code settings. After cloning:
Open the repository folder in VS Code
The MCP server configuration is in
.vscode/mcp.jsonCopilot instructions are in
.github/copilot-instructions.mdThe Claude skill is automatically available in
.claude/skills/azure-pricing/
MCP Server Configuration (.vscode/mcp.json):
{
"servers": {
"azure-latency": {
"type": "stdio",
"command": "python",
"args": ["-m", "azure_latency_mcp.server"]
}
}
}Claude Desktop
Add to your Claude Desktop configuration:
Linux/Mac: ~/.config/claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"azure-latency": {
"command": "uv",
"args": ["run", "--with", "azure-latency-mcp", "azure-latency-mcp"]
}
}
}MCP Tools Reference
azure_list_subscriptions
Lists all available Azure subscriptions accessible with current credentials.
Parameters: None
Returns:
{
"subscriptions": [
{"id": "xxxx-xxxx-xxxx", "name": "My Subscription", "state": "Enabled"}
],
"current": "xxxx-xxxx-xxxx"
}azure_test_latency
Tests network latency to specified Azure regions.
Parameter | Type | Required | Default | Description |
|
| Yes | - | Azure region names (e.g., |
|
| No |
| TCP connection attempts per region (3-20) |
|
| No | First available | Azure subscription ID to use |
|
| No |
| Path to log file |
Returns:
{
"success": true,
"latency_results": {
"best_region": "germanywestcentral",
"best_latency_ms": 39.6,
"regions_tested": 5,
"results": [
{"region": "germanywestcentral", "avg_ms": 39.6, "min_ms": 38.2, "max_ms": 42.1},
{"region": "polandcentral", "avg_ms": 45.2, "min_ms": 43.1, "max_ms": 48.3}
]
},
"infrastructure": {
"status": "All resources cleaned up successfully",
"created_accounts": [],
"deleted_accounts": []
}
}Claude Skill Reference
Azure Pricing Skill
Location: .claude/skills/azure-pricing/
Purpose: Query Azure retail prices for VM SKUs across all regions.
Script: scripts/query_vm_pricing.py
Option | Description |
| VM SKU name (required, e.g., |
| Currency code (default: USD) |
| Comma-separated list of regions (optional) |
Output Sections:
Summary Table - All regions sorted by Linux hourly price
Cost Analysis - Cheapest vs most expensive with annual savings
Supported Price Types:
Linux consumption (pay-as-you-go)
Windows consumption
Windows with Azure Hybrid Benefit (same as Linux)
Spot instances
1-year reserved instances
3-year reserved instances
Project Structure
azure-region-advisor/
βββ .claude/
β βββ skills/
β βββ azure-pricing/ # Claude skill for pricing
β βββ SKILL.md # Skill instructions
β βββ scripts/
β β βββ query_vm_pricing.py # Pricing query script
β βββ references/
β βββ service-mapping.md # Service name mappings
βββ .github/
β βββ copilot-instructions.md # GitHub Copilot instructions
βββ .vscode/
β βββ mcp.json # MCP server configuration
β βββ settings.json # VS Code settings
βββ src/
β βββ azure_latency_mcp/ # MCP server package
β βββ __init__.py
β βββ server.py # MCP server and tools
β βββ latency_tester.py # Core latency testing
β βββ models.py # Data models
βββ pyproject.toml # Package configuration
βββ requirements.txt # Python dependencies
βββ LICENSE # MIT License
βββ README.md # This fileHow It Works
Latency Testing Flow
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β Phase 1: DNS ββββββΆβ Phase 2: Create ββββββΆβ Phase 3: Test β
β Resolution β β Storage Accountsβ β TCP Latency β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β
βΌ
βββββββββββββββββββ
β Phase 4: Cleanupβ
β Resources β
βββββββββββββββββββDNS Check - Checks if
{region}.blob.core.windows.netresolvesStorage Creation - Creates temporary accounts for unresolved regions
Latency Test - TCP connections to port 443, measures connection time
Cleanup - Deletes temporary storage accounts and resource groups
Pricing Query Flow
Parse SKU - Normalizes name (e.g.,
D8as_v6βStandard_D8as_v6)API Query - Fetches from Azure Retail Prices API with pagination
Organize - Groups by region and price type
Output - Summary table + cost analysis
Regional Recommendations by Location
Users in Turkey / Middle East
germanywestcentral, polandcentral, swedencentral,
northeurope, westeurope, uksouth, francecentral, italynorthUsers in Western Europe
westeurope, northeurope, uksouth, francecentral,
germanywestcentral, swedencentralUsers in North America
eastus, eastus2, centralus, westus2, westus3, canadacentralUsers in Asia Pacific
southeastasia, eastasia, japaneast, australiaeast, koreacentralTroubleshooting
"No Azure subscriptions found"
az login"Failed to create resource group"
Ensure your Azure account has permissions to create:
Resource groups
Storage accounts (Standard_LRS)
Cleanup Failed
Check the response for infrastructure.action_message. Manual cleanup:
az group delete --name latency-test-mcp-YYYYMMDDHHMMSS --yesPricing Script Returns No Data
Verify the SKU name is correct (use
Standard_prefix)Check if the SKU is available in Azure (newer SKUs may have limited regions)
Slow Latency Tests
Reduce
request_countto 3-5 for faster testsTest fewer regions at once
Check your network connection
Contributing
Contributions welcome! Please open an issue or submit a pull request.
License
MIT License - Copyright (c) 2026 Emre Guclu
See LICENSE for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/emrgcl/Azure-Region-Advisor'
If you have feedback or need assistance with the MCP directory API, please join our Discord server