Description

An MCP server that analyzes the cost of LLM API calls by tracking tokens used and calculating costs based on model pricing. It provides detailed cost breakdowns and usage statistics for better budget management and optimization of AI applications.

Installation

npx -y awslabs.cost-analysis-mcp-server
npm install awslabs.cost-analysis-mcp-server
git clone https://github.com/awslabs/mcp/tree/HEAD/src/cost-analysis-mcp-server

Claude Desktop Configuration

Add this configuration to your Claude Desktop config file to enable this MCP server:

Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json

Config file location: %APPDATA%\Claude\claude_desktop_config.json

Config file location: ~/.config/Claude/claude_desktop_config.json

claude_desktop_config.json
{
  "mcpServers": {
    "aws-cost-analysis": {
      "command": "npx",
      "args": [
        "-y",
        "awslabs.cost-analysis-mcp-server"
      ]
    }
  }
}