mcp-aws-cost-doctor
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., "@mcp-aws-cost-doctorScan us-east-1 for cost leaks."
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.
mcp-aws-cost-doctor
MCP-native AWS cost diagnostic server. Exposes a small set of read-only tools that an AI agent (Claude, etc) can call to surface common cost leaks in an AWS account: idle EC2, orphaned EBS volumes, unused Elastic IPs, oversized RDS, NAT gateways in dev VPCs.
Read-only by construction. No delete_*, no modify_*, no
terminate_*. The server can scan an account, never change it.
flowchart LR
A[Claude / MCP client] -- tool call --> S[mcp-aws-cost-doctor]
S -- boto3 describe_* --> AWS[AWS account<br/>IAM ReadOnlyAccess]
AWS --> S
S -- ranked findings + est. monthly waste --> ATools exposed (implemented)
Tool | Returns |
| Unattached EBS volumes (billed, never mounted) |
| EBS snapshots whose source volume was deleted |
| Elastic IPs allocated but not associated |
| Run all implemented scanners + return ranked summary |
Related MCP server: AWS MCP Server
Roadmap
Additional scanners planned (PRs welcome):
list_idle_ec2(region)— EC2 with avg CPU < 5% over last 14 days (needs CloudWatch)list_oversized_rds(region)— RDS with avg CPU < 20% + low connectionslist_s3_no_lifecycle()— S3 buckets with no lifecycle policy on standard storagelist_nat_in_dev_vpcs(region)— NAT gateways in VPCs taggedEnv=dev|staging
Why MCP
aws-cost-optimizer-cli (sibling repo) does the same scan as a
standalone CLI. This server wraps the same scanners as MCP tools so
they can be called by an AI agent inside a conversation:
> Can you scan us-east-1 for cost leaks?
[claude calls list_orphaned_ebs(region="us-east-1") + list_unused_eips(region="us-east-1") + ...]
I found 12 cost leaks totaling ~$340/mo:
- 3 unattached EBS volumes (~$180/mo)
- 4 unused Elastic IPs (~$15/mo)
- 1 oversized RDS db.r6g.xlarge with avg CPU 8% (~$140/mo)
...Quick start
pip install -e .
# Set AWS credentials however you normally do (profile, env, instance role)
export AWS_PROFILE=mycompany-readonly
# Run the MCP server (stdio transport — wire into Claude Desktop config)
python -m mcp_aws_cost_doctor.serverFor Claude Desktop, add to your MCP config:
{
"mcpServers": {
"aws-cost-doctor": {
"command": "python",
"args": ["-m", "mcp_aws_cost_doctor.server"],
"env": {"AWS_PROFILE": "mycompany-readonly"}
}
}
}Safety
IAM: server is meant to run with
ReadOnlyAccess(or a tighter custom policy — seeiam/policy.json). It does not attempt to write.Rate limits: each tool batches
describe_*calls and respects AWS API throttling.No mutation: tools are named
list_*/summarize_*. There is nodelete_*/terminate_*. By design.
Status
Early — basic tools land first, more arrive as the underlying
aws-cost-optimizer-cli matures. PRs welcome.
License
MIT
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.
Related MCP Servers
- Flicense-qualityDmaintenanceA comprehensive Model Context Protocol server that analyzes AWS costs and provides optimization recommendations by integrating with services like Cost Explorer, Cost Optimization Hub, and Trusted Advisor.33
- Alicense-qualityDmaintenanceA read-only Model Context Protocol server that exposes over 60 AWS tools across services like EC2, S3, and IAM for AI agent interaction. It features multi-region support, resource caching, and audit logging to provide secure, AI-ready access to AWS infrastructure data.284ISC
- Alicense-qualityAmaintenanceA read-only MCP server for safe, structured investigation of AWS serverless resources, providing curated tools for tracing dependencies, permissions, and failures without exposing raw SDK access.MIT
- AlicenseAqualityAmaintenanceLocal-first FinOps MCP server. Ask about your AWS, Azure, GCP, and SaaS costs in plain English. Anomaly detection, rightsizing, idle-resource cleanup, and Jira/Linear ticketing. Credentials never leave your machine.10015Apache 2.0
Related MCP Connectors
Hosted MCP server exposing US hospital procedure cost data to AI assistants
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/sarteta/mcp-aws-cost-doctor'
If you have feedback or need assistance with the MCP directory API, please join our Discord server