home / mcp / aws pricing mcp server
An MCP server that exposes AWS EC2 pricing data with an option to search by CPU, RAM, networking
Configuration
View docs{
"mcpServers": {
"trilogy-group-aws-pricing-mcp": {
"command": "python",
"args": [
"src/server.py"
]
}
}
}You run an MCP server that serves up-to-date AWS EC2 pricing data to MCP clients, enabling you to find the cheapest instances and apply flexible filters across regions and models. This server supports both traditional persistent deployment and a serverless Lambda option, giving you choices based on your infrastructure preferences.
You connect with an MCP client to query AWS EC2 pricing data. Use the MCP protocol to request pricing categories, filter by region, platform, tenancy, vCPU, RAM, GPU, and other attributes, and compare On Demand, Reserved Instances, and CloudFix RightSpend models. The server returns structured pricing information that you can integrate into dashboards, cost analyses, or automation workflows.
Prerequisites: you need Python 3.8+ and a working environment to install dependencies.
pip install -r requirements.txt
# Run the server
python src/server.pyIf you prefer a serverless deployment, you can build and deploy a Lambda function that provides the same MCP functionality and exposes a Function URL for easy access.
# Build and deploy
sam build
sam deploy --guided
# Get the Function URL
aws cloudformation describe-stacks \
--stack-name aws-pricing-mcp \
--query 'Stacks[0].Outputs[?OutputKey==`FunctionUrl`].OutputValue' \
--output textThe MCP server provides dynamic pricing data that is continually updated from S3, ensuring you have access to current EC2 pricing information and models for informed decision-making.
Fetches and filters EC2 pricing data from AWS sources to determine the cheapest instances based on user-defined specifications.
Supports multiple pricing models such as On Demand, Reserved Instances, and CloudFix RightSpend to compare costs.
Allows filtering by region, platform, tenancy, vCPU, RAM, GPU, and other instance attributes to refine results.
Implements MCP protocol compatibility using JSON-RPC 2.0 for standardized client interactions.
Offers a Lambda-based deployment pathway that provides a Function URL for MCP access.
Keeps pricing data up-to-date by integrating with S3-based data sources for current prices.