Skip to main content

AWS Pricing MCP Server

MCP server for accessing real-time AWS pricing information and providing cost analysis capabilities

Important Note: This server provides real-time pricing data from the AWS Pricing API. We cannot guarantee that AI assistants will always construct filters correctly or identify the absolute cheapest options. All calls are free of charge.

Features

AWS Pricing Discovery & Information

  • Service catalog exploration: Discover all AWS services with available pricing information
  • Pricing attribute discovery: Identify filterable dimensions (instance types, regions, storage classes, etc.) for any AWS service
  • Real-time pricing queries: Access current pricing data with advanced filtering capabilities including multi-option comparisons and pattern matching
  • Multi-region pricing comparisons: Compare pricing across different AWS regions in a single query
  • Bulk pricing data access: Download complete pricing datasets in CSV/JSON formats for historical analysis and offline processing

Cost Analysis & Planning

  • Detailed cost report generation: Create comprehensive cost analysis reports with unit pricing, calculation breakdowns, and usage scenarios
  • Infrastructure project analysis: Scan CDK and Terraform projects to automatically identify AWS services and their configurations
  • Architecture pattern guidance: Get detailed architecture patterns and cost considerations, especially for Amazon Bedrock services
  • Cost optimization recommendations: Receive AWS Well-Architected Framework aligned suggestions for cost optimization

Query pricing data with natural language

  • Ask questions about AWS pricing in plain English, no complex query languages required
  • Get instant answers from the AWS Pricing API for any AWS service
  • Retrieve comprehensive pricing information with flexible filtering options

Prerequisites

  1. Install uv from Astral or the GitHub README
  2. Install Python using uv python install 3.10
  3. Set up AWS credentials with access to AWS services
    • You need an AWS account with appropriate permissions
    • Configure AWS credentials with aws configure or environment variables
    • Ensure your IAM role/user has pricing:* permissions to access the AWS Pricing API

Installation

Kiro Cursor VS Code
Add to Kiro Install MCP Server Install on VS Code

⚡ Using uv

Configure the MCP server in your MCP client configuration (e.g., for Kiro, edit ~/.kiro/settings/mcp.json):

For Linux/MacOS users:

{
  "mcpServers": {
    "awslabs.aws-pricing-mcp-server": {
      "command": "uvx",
      "args": [
         "awslabs.aws-pricing-mcp-server@latest"
      ],
      "env": {
        "FASTMCP_LOG_LEVEL": "ERROR",
        "AWS_PROFILE": "default",
        "AWS_REGION": "us-east-1"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

For Windows users:

{
  "mcpServers": {
    "awslabs.aws-pricing-mcp-server": {
      "command": "uvx",
      "args": [
         "--from",
         "awslabs.aws-pricing-mcp-server@latest",
         "awslabs.aws-pricing-mcp-server.exe"
      ],
      "env": {
        "FASTMCP_LOG_LEVEL": "ERROR",
        "AWS_PROFILE": "default",
        "AWS_REGION": "us-east-1"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Using Docker

or docker after a successful docker build -t awslabs/aws-pricing-mcp-server .:

# fictitious `.env` file with AWS temporary credentials
AWS_ACCESS_KEY_ID=ASIAIOSFODNN7EXAMPLE
AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
AWS_SESSION_TOKEN=AQoEXAMPLEH4aoAH0gNCAPy...truncated...zrkuWJOgQs8IZZaIv2BXIa2R4Olgk
AWS_REGION=us-east-1
  {
    "mcpServers": {
      "awslabs.aws-pricing-mcp-server": {
        "command": "docker",
        "args": [
          "run",
          "--rm",
          "--interactive",
          "--env",
          "FASTMCP_LOG_LEVEL=ERROR",
          "--env-file",
          "/full/path/to/file/above/.env",
          "awslabs/aws-pricing-mcp-server:latest"
        ],
        "env": {},
        "disabled": false,
        "autoApprove": []
      }
    }
  }

NOTE: Your credentials will need to be kept refreshed from your host

AWS Authentication

The MCP server requires specific AWS permissions and configuration:

Required Permissions

Your AWS IAM role or user must have pricing:* permissions to access the AWS Pricing API. The server only accesses generally available AWS pricing information and does not retrieve any user-specific data. All pricing API calls are free of charge and do not incur any costs.

Configuration

The server uses two key environment variables:

  • AWS_PROFILE: Specifies the AWS profile to use from your AWS configuration file. If not provided, it defaults to the "default" profile.
  • AWS_REGION: Determines the geographically closest AWS Pricing API endpoint to use. This improves performance by routing requests to the nearest regional endpoint.
"env": {
  "AWS_PROFILE": "default",
  "AWS_REGION": "us-east-1"
}

Cost report output directory

The generate_cost_report tool can save the generated report to a file via its output_file parameter. To prevent path-traversal writes outside an intended location, output_file is confined to a base directory:

  • AWS_PRICING_MCP_OUTPUT_DIR (optional): The base directory reports may be written to. Defaults to the current working directory of the server process.

Paths are resolved and must stay within this base directory. Absolute paths that fall outside it, .. traversal segments, and symlinks that escape the base are all rejected. To allow reports to be written elsewhere, set this variable to the desired directory:

"env": {
  "AWS_PROFILE": "default",
  "AWS_REGION": "us-east-1",
  "AWS_PRICING_MCP_OUTPUT_DIR": "/path/to/reports"
}

Release files for awslabs.aws-pricing-mcp-server 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for awslabs.aws-pricing-mcp-server 1.1.0
File Size Uploaded
awslabs_aws_pricing_mcp_server-1.1.0.tar.gz 165.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for awslabs.aws-pricing-mcp-server 1.1.0
File Interpreter ABI Platform
awslabs_aws_pricing_mcp_server-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 231.7 kB

Release files / awslabs_aws_pricing_mcp_server-1.1.0.tar.gz

Download URL awslabs_aws_pricing_mcp_server-1.1.0.tar.gz
Size 165.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ef6e0097268c49ffba6e4f75d27e0a28bd6671fae7a8f338297520ae9c0a58e7
BLAKE2b-256 checksum
How to use checksums
957012089a6aae7dd0d80e27504dd8fef9b000dfae81e49d6c22775a340036cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

Release files / awslabs_aws_pricing_mcp_server-1.1.0-py3-none-any.whl

Download URL awslabs_aws_pricing_mcp_server-1.1.0-py3-none-any.whl
Size 66.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22a07418e0da6863330b174a79069e3539183e44f2e3a0ccdb1af222247a5856
BLAKE2b-256 checksum
How to use checksums
6a93e044ca53cd23319b88e3dc35667e68e1c4a5b6f5bfd2d2da7f6fcab3d215
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page