Cloud FinOps Analyst MCP Server
Click on "Deploy 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., "@Cloud FinOps Analyst MCP Server Why did our bill spike last week?"
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.
Cloud FinOps Analyst — MCP Server
An AI-powered AWS cost analysis tool built as a Model Context Protocol (MCP) server. Connect it to Claude and ask plain-English questions about your cloud spend.
What it does
Instead of digging through AWS Cost Explorer dashboards, just ask:
"What did we spend last month and where is the money going?"
"Did we have any unexpected cost spikes this week?"
"Which resources are we paying for but not using?"
"Which instances are over-provisioned and how much could we save?"
"How bad is our tagging compliance and how much spend is unallocated?"
Claude calls the right tools, pulls the data, and gives you a clear analysis with specific recommendations.
Related MCP server: AWS FinOps MCP Server
Tools
Tool | Description |
| Cost breakdown by service and region for last 7 days, 30 days, or 3 months |
| Flags unusual spending spikes with likely root causes |
| Finds unused EC2 instances, RDS databases, and unattached EBS volumes |
| Suggests downsizing over-provisioned instances with estimated savings |
| Identifies untagged resources and unallocatable spend |
Architecture
You (chat in Claude Desktop or Claude.ai)
↓
Claude (AI reasoning — decides which tools to call)
↓
This MCP Server (fetches and returns data)
↓
AWS APIs (Cost Explorer, EC2, RDS, S3)Getting Started
Prerequisites
Node.js 18+
Claude Desktop (free) — download here
Installation
git clone https://github.com/yourusername/finops-mcp-server
cd finops-mcp-server
npm install
npm run buildConnect to Claude Desktop
Add this to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"finops-analyst": {
"command": "node",
"args": ["/absolute/path/to/finops-mcp-server/dist/index.js"]
}
}
}Restart Claude Desktop. You'll see the tools icon appear in the chat interface.
AWS Setup (for real data)
The server currently runs with mock data. To connect to a real AWS account:
Create an IAM user with read-only permissions:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ce:GetCostAndUsage",
"ce:GetCostForecast",
"ce:GetAnomalies",
"ec2:DescribeInstances",
"ec2:DescribeVolumes",
"rds:DescribeDBInstances",
"cloudwatch:GetMetricStatistics",
"tag:GetResources"
],
"Resource": "*"
}
]
}Add credentials to your environment:
export AWS_ACCESS_KEY_ID=your_key
export AWS_SECRET_ACCESS_KEY=your_secret
export AWS_DEFAULT_REGION=us-east-1Replace the mock data calls in each tool file with real AWS SDK calls.
Example Conversations
Cost overview:
"Give me a breakdown of our AWS spend last month"
Anomaly investigation:
"Why did our bill spike last week? What caused it?"
Cost optimization:
"What are the quickest wins to reduce our AWS bill right now?"
Executive report:
"Summarize our cloud cost health and give me 3 priority actions I can bring to my manager"
Project Structure
finops-mcp-server/
├── src/
│ ├── index.ts # MCP server entry point + tool registry
│ ├── tools/
│ │ ├── costSummary.ts # get_cost_summary
│ │ ├── anomalyDetection.ts # detect_cost_anomalies
│ │ ├── idleResources.ts # get_idle_resources
│ │ ├── rightsizing.ts # get_rightsizing_recommendations
│ │ └── taggingCompliance.ts # get_tagging_compliance
│ └── data/
│ └── mockData.ts # Realistic mock AWS data for demos
├── dist/ # Compiled JavaScript (generated)
├── package.json
├── tsconfig.json
└── README.mdRoadmap
Connect to real AWS Cost Explorer API
Add Reserved Instance vs On-Demand comparison tool
Add savings plan coverage analysis
Phase 2: Web app with React frontend + Express backend
Tech Stack
TypeScript — type-safe tool definitions
MCP SDK (
@modelcontextprotocol/sdk) — server protocolZod — input schema validation
Node.js — runtime
Available Tools
10 toolsdetect_azure_cost_anomaliesA
Detects daily Azure cost spikes by comparing each day's spend against the period average.
Inputs: lookback_days, min_spike_percentage.
detect_cost_anomaliesA
Detects unusual cost spikes across AWS services compared to baseline spending. Use this when asked about billing surprises, unexpected charges, or cost spikes.
Inputs: min_spike_percentage.
detect_gcp_cost_anomaliesA
Detects daily GCP cost spikes by comparing each day's spend against the period average, with a per-service breakdown for anomaly days.
Inputs: lookback_days, min_spike_percentage.
get_azure_cost_summaryA
Fetches Azure cost breakdown by service and resource group for a given time period.
Inputs: period, group_by.
get_azure_idle_resourcesA
Identifies idle/underutilized Azure VMs based on average CPU usage over a time period.
Inputs: min_idle_days, cpu_threshold_percent.
get_cost_summaryA
Fetches AWS cloud cost breakdown by service and region for a given time period. Use this to answer questions about overall spend, top spending services, or cost by region.
Inputs: period, end_date, group_by, start_date.
get_gcp_cost_summaryA
Fetches GCP cost breakdown by service and project from BigQuery billing export for a given time period. Use this to answer questions about overall GCP spend, top spending services, or cost by project.
Inputs: period, group_by.
get_gcp_idle_resourcesA
Identifies idle GCP Compute Engine VMs (low CPU) and unattached Persistent Disks that are wasting money.
Inputs: min_idle_days, resource_type, cpu_threshold_percent.
get_idle_resourcesA
Identifies idle or underutilized AWS resources including EC2 instances, RDS databases, and unattached EBS volumes that are wasting money. Use this when asked about waste, unused resources, or easy cost savings.
Inputs: min_idle_days, resource_type.
get_tagging_complianceA
Checks AWS resource tagging compliance — identifying resources missing required tags like Environment, Owner, CostCenter, and Project. Use this when asked about cost allocation, untagged resources, or tagging policies.
Inputs: resource_type, show_violations_only.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Tools are functionally distinct by cloud provider and action, but AWS tools lack a provider prefix (e.g., 'get_cost_summary' vs 'get_azure_cost_summary'), which could cause an agent to misselect if not reading descriptions carefully.
The verb_noun pattern is consistent, but cloud prefixes are applied only to Azure and GCP tools (e.g., 'get_azure_idle_resources') while AWS tools are unprefixed ('get_idle_resources'). This inconsistency makes the naming pattern less predictable.
10 tools is well within the ideal range for a FinOps server. Each tool covers a specific cloud provider and operation (cost summary, idle resources, anomaly detection), making the count appropriate for the domain.
The core FinOps surface (cost, waste, anomalies) is covered for AWS, Azure, and GCP, but tagging compliance is only available for AWS, leaving a notable gap for Azure and GCP users.
Maintenance
Related MCP Connectors
Ask about AWS, Azure, GCP, OpenAI, Anthropic and Snowflake costs, budgets, and anomalies.
FinOps assistant: query AWS, GCP and Azure cost, commitments, budgets and reports.
AWS Cost Explorer cost, forecast, and anomaly reporting through user-connected IAM credentials.
Query cloud, AI and SaaS spend across 25+ providers: costs, budgets, anomalies, unit economics.
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables analyzing AWS cloud spending and Bedrock usage through natural language queries using Claude.414MIT No Attribution
- AlicenseNot gradedqualityDmaintenanceEnables natural language analysis of AWS cloud costs, waste audits, and budget insights across multiple profiles and regions.MIT
- FlicenseNot gradedqualityAmaintenanceEnables natural-language querying and analysis of AWS spending and model-invocation usage, including detailed breakdowns by service, region, account, day, and instance type.-
- FlicenseNot gradedqualityAmaintenanceEnables natural-language querying of AWS spending and Amazon Bedrock usage data, with breakdowns by day, region, service, instance type, user, and model, including optional cross-account analysis.-