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
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.
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:
awslabs.aws-iac-mcp-serverAn Infrastructure as Code MCP server that provides CloudFormation template validation, compliance checking, and deployment troubleshooting capabilities.
awslabs.billing-cost-management-mcp-serverA Model Context Protocol (MCP) server that provides tools for AWS Billing and Cost Management by wrapping boto3 SDK functions.