A sample MCP server for understanding cloud spend
@aws-samples
A sample MCP server for understanding cloud spend について
MCP for AWS Cost Explorer and CloudWatch logs
基本情報
設定
ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is A sample MCP server for understanding cloud spend?
This MCP server provides AWS cost data via Cost Explorer and Amazon Bedrock usage data from CloudWatch model invocation logs, enabling natural language queries through Claude. It is intended for users who want to analyze and visualize their AWS cloud spending interactively.
How to use A sample MCP server for understanding cloud spend?
Install Python 3.12 and uv, clone the repository, set up a virtual environment, and configure AWS credentials. Run server.py with MCP_TRANSPORT=stdio for local use, then add the configuration to Claude Desktop (either via Docker or UV). For remote deployment, set MCP_TRANSPORT=sse, run on EC2, and connect using a CLI client or a Chainlit LangGraph agent.
Key features of A sample MCP server for understanding cloud spend
- Amazon EC2 spend analysis for the last day
- Amazon Bedrock usage breakdown by region, users, and models
- Service spend reports across all AWS services for 30 days
- Detailed cost breakdown per day, region, service, and instance type
- Interactive natural‑language interface via Claude
Use cases of A sample MCP server for understanding cloud spend
- Ask “What was my EC2 spend yesterday?” and receive a structured answer
- Analyze Bedrock usage over the last few weeks by model and user
- Identify the top five AWS services by cost for the previous month
- Monitor spending patterns by region over the past 14 days
- Determine which EC2 instance types are driving the highest costs
FAQ from A sample MCP server for understanding cloud spend
What are the requirements to run this server?
Python 3.12, AWS credentials with Cost Explorer access, and Anthropic API access. Optionally, Amazon Bedrock access (for LangGraph Agent) and an EC2 instance for remote deployment.
How is data accessed and stored?
The server queries AWS Cost Explorer and CloudWatch Logs live via API calls. No data is stored locally; all information is fetched on demand.
Can I run the server remotely?
Yes. Set MCP_TRANSPORT=sse and run on EC2. Note that Claude Desktop does not support remote MCP servers; use a LangGraph agent or the provided CLI client instead.
How do I secure a remote MCP server?
Use nginx as a reverse proxy with HTTPS. Obtain an SSL certificate (e.g., from Let’s Encrypt) and configure nginx to proxy to the local MCP server on port 8000.
What tools does the server expose?
Four tools: get_ec2_spend_last_day, get_detailed_breakdown_by_day, get_bedrock_daily_usage_stats, and get_bedrock_hourly_usage_stats. Each returns spending or usage data in a readable format.
「その他」の他のコンテンツ
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
Core Philosophy: Connect, Unify, Respond
mindsdbDelegate anything. It comes back done.
MCP Go 🚀
mark3labsA Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
コメント