AWS Pricing MCP Server

io.github.awslabs/aws-pricing-mcp-server

Overview

AWS Labs MCP server for official AWS service pricing, service metadata, Bedrock cost patterns, infrastructure project analysis, and cost report generation.

Documentation

AWS Pricing MCP Server

AWS Pricing MCP Server is the runnable AWS Labs replacement for the deprecated Cost Analysis MCP Server. It exposes AWS pricing, service metadata, Bedrock architecture patterns, CDK/Terraform project analysis, and cost report generation over stdio.

Installation

The reviewed package target is PyPI awslabs.aws-pricing-mcp-server version 1.0.31. Wardn pins the default launch argument to that reviewed version so the registry entry does not drift with @latest:

{
  "mcpServers": {
    "awslabs.aws-pricing-mcp-server": {
      "command": "uvx",
      "args": ["[email protected]"],
      "env": {
        "FASTMCP_LOG_LEVEL": "ERROR",
        "AWS_PROFILE": "default",
        "AWS_REGION": "us-east-1"
      }
    }
  }
}

The upstream README documents uvx awslabs.aws-pricing-mcp-server@latest; the pinned [email protected] launch is the same uvx target constrained to the reviewed PyPI version. The README also documents a Windows uvx form and an optional locally built Docker image; those alternatives are captured in source review evidence rather than as default package launch arguments.

Configuration

FASTMCP_LOG_LEVEL controls logging. AWS_PROFILE and AWS_REGION configure boto3/AWS Pricing API access, and standard AWS credential variables such as AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_SESSION_TOKEN may be used by boto3 credential resolution. Source code also supports PRICING_ENDPOINT to override the Pricing API endpoint and AWS_PRICING_MCP_OUTPUT_DIR to constrain where generated report files may be written.

Capabilities

Implemented tools include analyze_cdk_project, analyze_terraform_project, get_pricing, get_bedrock_patterns, generate_cost_report, get_pricing_service_codes, get_pricing_service_attributes, get_pricing_attribute_values, and get_price_list_urls. The server can inspect local CDK or Terraform project directories, query the AWS Pricing API, list Pricing API service metadata, fetch public price-list URLs, return Bedrock cost patterns, and generate Markdown reports.

Limitations

The previous cost-analysis package target is deprecated and not runnable as submitted: its PyPI 1.0.5 entrypoint raises a DeprecationWarning as an error before calling mcp.run(), and its README directs users to this AWS Pricing MCP Server. The replacement server requires AWS credentials and IAM access to the AWS Pricing API. Project-analysis tools require local access to the provided CDK or Terraform project path. generate_cost_report can write files when output_file is provided; source code constrains writes to AWS_PRICING_MCP_OUTPUT_DIR or the current working directory and rejects path traversal or symlink escapes. The PyPI project metadata references a server-specific hosted docs URL that returned 404 during review, so this submission uses the PyPI metadata, source distribution, and repository source as authoritative evidence.