AWS Cost ExplorerSAFE
MCP server for understanding AWS spend
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
An MCP server for getting AWS spend data via Cost Explorer and Amazon Bedrock usage data via `Model invocation logs` in Amazon Cloud Watch through Anthropic's MCP (Model Control Protocol). See section on "secure" remote MCP server to see how you can run your MCP server over HTTPS.
flowchart LR User([User]) --> UserApp[User Application] UserApp --> |Queries| Host[Host] subgraph "Claude Desktop" Host --> MCPClient[MCP Client] end MCPClient --> |MCP Protocol over HTTPS| MCPServer[AWS Cost Explorer MCP Server] subgraph "AWS Services" MCPServer --> |API Calls| CostExplorer[(AWS Cost Explorer)] MCPServer --> |API Calls| CloudWatchLogs[(AWS CloudWatch Logs)] end
You can run the MCP server locally and access it via the Claude Desktop or you could also run a Remote MCP server on Amazon EC2 and access it via a MCP client built into a LangGraph Agent.
🚨You can also use this MCP server to get AWS spend information from other accounts as long as the IAM role used by the MCP server can assume roles in those other accounts🚨
Demo video
[](https://youtu.be/WuVOmYLRFmI)
Overview
This tool provides a convenient way to analyze and visualize AWS cloud spending data using Anthropic's Claude model as an interactive interface. It functions as an MCP server that exposes AWS Cost Explorer API functionality to Claude Desktop, allowing you to ask questions about your AWS spend in natural language.
Features
- Amazon EC2 Spend Analysis: View detailed breakdowns of EC2 spending for the last day
- Amazon Bedrock Spend Analysis: View breakdown b
9ea1b8660cf1OBSERVED · 2026-10-07Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add aws-cost-explorer-mcp -- uvx aws-cost-explorer-mcp
{
"mcpServers": {
"aws-cost-explorer-mcp": {
"command": "uvx",
"args": [
"aws-cost-explorer-mcp"
]
}
}
}Exposed tools (3)
3 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
get_bedrock_daily_usage_stats | read | |
get_bedrock_hourly_usage_stats | read | |
get_ec2_spend_last_day | read |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (5)
TOKEN=$(curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600") && curl -H "X-aws-ec2-metadata-token: $TOKEN" -s http://169.254.169.254/latest/meta-data
TOKEN=$(curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600") && curl -H "X-aws-ec2-metadata-token: $TOKEN" -s http://169.254.169.254/latest/meta-data
proxy_pass http://127.0.0.1:8000;
img/mcp_server.png
curl -LsSf https://astral.sh/uv/install.sh | sh
Gates applied: no_behavioural_pass.
9ea1b8660cf1full audit observations/trust-audit/mcp-server/aarora79__aws-cost-explorer.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | 9ea1b8660cf1 | SAFE | B | 89 | first audit |
Questions
What is the AWS Cost Explorer MCP server?
MCP server for understanding AWS spend
What tools does AWS Cost Explorer expose?
3 in total: 3 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is AWS Cost Explorer safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does AWS Cost Explorer need?
No credential environment variables were found in its source, so it appears to need none.
How current is this page?
The grade is for one exact copy of the source (9ea1b8660cf1), read on 2026-10-07. The repository is watched and re-audited when it changes.