This is a Model Context Protocol (MCP) server for analyzing Azure usage data from CSV files. It provides insights, summaries, and visualizations of Azure cost and usage patterns.
- Analyze Azure usage data from CSV files
- Generate cost summaries and visualizations
- Identify top services and regions by cost
- Respond to natural language queries about Azure usage
- Fully compatible with the Model Context Protocol (MCP)
-
Install the required dependencies:
pip install -r requirements.txt -
Place your Azure usage CSV file in the
datadirectory (the default file isBCAzureUsage 1.csv). -
Run the server:
python claude_mcp.py
You can configure this MCP server in your AI assistant configuration using the following format:
{
"mcpServers": {
"azure-usage-analyzer": {
"command": "python",
"args": ["claude_mcp.py"],
"cwd": "path/to/mcp-server",
"env": {}
}
}
}This server implements the Model Context Protocol (MCP) version 2024-11-05. It supports the following MCP methods:
initialize: Establishes a connection with the MCP clientsearch: Processes natural language queries about Azure usage data
Returns basic server information and available endpoints.
Processes Azure usage data and provides insights based on a specific query.
Request format:
{
"query": "Show me Azure usage by region",
"params": {
"dataset": "BCAzureUsage 1.csv"
}
}General-purpose search endpoint for querying Azure usage data.
Request format:
{
"query": "What are my top costs by region?"
}- "Show me Azure usage by region"
- "What are my top costs?"
- "Analyze service type usage"
- "Which services cost the most?"