Aws Cost Explorer MCP Server

subgraph "Claude Desktop" Host --> MCPClient[MCP Client] end

Local serverstdioPython

What is the Aws Cost Explorer MCP server?

Aws Cost Explorer MCP server exists for a simple reason — assistants are far more useful when they can act on Aws Cost Explorer directly instead of describing what you should do. subgraph "Claude Desktop" Host --> MCPClient[MCP Client] end.

What you get

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.

  • Amazon EC2 Spend Analysis — View detailed breakdowns of EC2 spending for the last day
  • Amazon Bedrock Spend Analysis — View breakdown by region, users and models over the last 30 days
  • Service Spend Reports — Analyze spending across all AWS services for the last 30 days
  • Detailed Cost Breakdown — Get granular cost data by day, region, service, and instance type
  • Interactive Interface — Use Claude to query your cost data through natural language

What the assistant can call

Once Aws Cost Explorer is connected, these are the calls the assistant has available:

  • Prerequisites — The Prerequisites tool exposed by this server

Configuration and credentials

You will need 8 environment variables: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION, BEDROCK_LOG_GROUP_NAME, CROSS_ACCOUNT_ROLE_NAME, MCP_TRANSPORT, MCP_SERVER_URL, MCP_SERVER_PORT. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • Python 3.12 - AWS credentials with Cost Explorer access - Anthropic API access (for Claude integration) - [Optional] Amazon Bedrock access (for LangGraph Agent) - [Optional] Amazon EC2 for running a remote MCP server

Setting it up

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Choosing this one

Plenty of cloud and infrastructure servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Aws Cost Explorer's toolset — Prerequisites — is a fair guide to whether it matches your workflow. It is maintained by aarora79; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the aws cost explorer mcp server does with a few real requests.

Available tools

ToolWhat it does
PrerequisitesThe Prerequisites tool exposed by this server.

How to install the Aws Cost Explorer MCP server

{
  "mcpServers": {
    "aws-cost-explorer": {
      "command": "docker",
      "args": [ "run", "-i", "--rm", "-e", "AWS_ACCESS_KEY_ID", "-e", "AWS_SECRET_ACCESS_KEY", "-e", "AWS_REGION", "-e", "BEDROCK_LOG_GROUP_NAME", "-e", "MCP_TRANSPORT", "-e", "CROSS_ACCOUNT_ROLE_NAME", "aws-cost-explorer-mcp:latest" ],
      "env": {
        "AWS_ACCESS_KEY_ID": "YOUR_ACCESS_KEY_ID",
        "AWS_SECRET_ACCESS_KEY": "YOUR_SECRET_ACCESS_KEY",
        "AWS_REGION": "us-east-1",
        "BEDROCK_LOG_GROUP_NAME": "YOUR_CLOUDWATCH_BEDROCK_MODEL_INVOCATION_LOG_GROUP_NAME",
        "CROSS_ACCOUNT_ROLE_NAME": "ROLE_NAME_FOR_THE_ROLE_TO_ASSUME_IN_OTHER_ACCOUNTS",
        "MCP_TRANSPORT": "stdio"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Python 3.12 - AWS credentials with Cost Explorer access - Anthropic API access (for Claude integration) - [Optional] Amazon Bedrock access (for LangGraph Agent) - [Optional] Amazon EC2 for running a remote MCP server
VariableDescriptionRequired
AWS_ACCESS_KEY_IDCredential the server authenticates with.Yes
AWS_SECRET_ACCESS_KEYCredential the server authenticates with.Yes
AWS_REGIONConfiguration value read at startup.Optional
BEDROCK_LOG_GROUP_NAMEConfiguration value read at startup.Optional
CROSS_ACCOUNT_ROLE_NAMEConfiguration value read at startup.Optional
MCP_TRANSPORTConfiguration value read at startup.Optional
MCP_SERVER_URLEndpoint or connection string the server talks to.Yes
MCP_SERVER_PORTConfiguration value read at startup.Optional

Example prompts to try

  • Use Aws Cost Explorer to Prerequisites.

Frequently asked questions

It connects Aws Cost Explorer to MCP-compatible AI assistants such as Claude and Cursor, exposing 1 tool (Prerequisites) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Aws Cost Explorer directly.