- Home
- MCP servers
- AWS Pricing
AWS Pricing
- python
20
GitHub Stars
python
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
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.
How to use
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.
How to install
Prerequisites: you need Python 3.8+ and a working environment to install dependencies.
pip install -r requirements.txt
# Run the server
python src/server.py
Serverless deployment (Lambda)
If 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 text
Notes and data sources
The 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.
Available tools
EC2PricingData
Fetches and filters EC2 pricing data from AWS sources to determine the cheapest instances based on user-defined specifications.
PricingModels
Supports multiple pricing models such as On Demand, Reserved Instances, and CloudFix RightSpend to compare costs.
FlexibleFiltering
Allows filtering by region, platform, tenancy, vCPU, RAM, GPU, and other instance attributes to refine results.
JsonRpcMCP
Implements MCP protocol compatibility using JSON-RPC 2.0 for standardized client interactions.
ServerlessOption
Offers a Lambda-based deployment pathway that provides a Function URL for MCP access.
DynamicData
Keeps pricing data up-to-date by integrating with S3-based data sources for current prices.