Cloud FinOps Analyst MCP Server
Enables analyzing AWS cloud costs through natural language queries, providing cost summaries, anomaly detection, idle resource identification, rightsizing recommendations, and tagging compliance via Claude.
README
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.
Tools
| Tool | Description |
|---|---|
get_cost_summary |
Cost breakdown by service and region for last 7 days, 30 days, or 3 months |
detect_cost_anomalies |
Flags unusual spending spikes with likely root causes |
get_idle_resources |
Finds unused EC2 instances, RDS databases, and unattached EBS volumes |
get_rightsizing_recommendations |
Suggests downsizing over-provisioned instances with estimated savings |
get_tagging_compliance |
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 build
Connect 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-1
- Replace 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.md
Roadmap
- [ ] 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 protocol - Zod — input schema validation
- Node.js — runtime
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。