AWS Cost Explorer and Amazon Bedrock Model Invocation Logs MCP Server & Client
MCP server for understanding AWS spend
Overview
AWS Cost Explorer MCP is a command-line interface and API designed to help users analyze and visualize their AWS cloud spending data through Anthropic's Model Control Protocol (MCP).
To use the AWS Cost Explorer MCP, you need to install the required dependencies, set up your AWS credentials, and run the server. You can then interact with the server using natural language queries through the Claude interface.
- EC2 Spend Analysis: Detailed breakdown of EC2 spending for the last day. - Service Spend Reports: Analyze spending across all AWS services for the last 30 days. - Detailed Cost Breakdown: Granular cost data by day, region, service, and instance type. - Interactive Interface: Query cost data using natural language through Claude.
- Analyzing daily EC2 spending.
- Generating reports on AWS service costs over the past month.
- Understanding spending patterns by region and service type.
- Identifying the most expensive instance types.
Add to your AI client
Use these steps to connect AWS Cost Explorer and Amazon Bedrock Model Invocation Logs MCP Server & Client in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"aws-cost-explorer-mcp-server-aarora79": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-aws-cost-explorer-mcp-server-aarora79"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"aws-cost-explorer-mcp-server-aarora79": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-aws-cost-explorer-mcp-server-aarora79"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"aws-cost-explorer-mcp-server-aarora79": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-aws-cost-explorer-mcp-server-aarora79"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"aws-cost-explorer-mcp-server-aarora79": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-aws-cost-explorer-mcp-server-aarora79"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"aws-cost-explorer-mcp-server-aarora79": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-aws-cost-explorer-mcp-server-aarora79"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"aws-cost-explorer-mcp-server-aarora79": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-aws-cost-explorer-mcp-server-aarora79"
]
}
}
}FAQ
What are the requirements to use this tool?
You need Python 3.13+, AWS credentials with Cost Explorer access, and Anthropic API access for Claude integration.
Is there a Docker support for deployment?
Yes, a Dockerfile is included for containerized deployment.
Can I extend the functionality of this tool?
Yes, you can add new cost analysis tools by modifying the server implementation.