AWS EC2 Pricing MCP Server
@trilogy-group
An MCP server that exposes AWS EC2 pricing data with an option to search by CPU, RAM, networking
Overview
What is AWS EC2 Pricing MCP Server?
An MCP (Model Context Protocol) server that provides AWS EC2 instance pricing data. It supports both a traditional server deployment and a serverless Lambda function, enabling LLMs to query current EC2 prices based on specifications.
How to use AWS EC2 Pricing MCP Server?
Deploy the serverless Lambda using SAM (sam build && sam deploy --guided) and retrieve the Function URL, or run the traditional server by installing dependencies (pip install -r requirements.txt) and executing python src/server.py. Once deployed, the MCP server handles JSON‑RPC 2.0 requests for EC2 pricing lookups.
Key features of AWS EC2 Pricing MCP Server
- Find cheapest EC2 instances based on specifications
- Supports On‑Demand, Reserved, and CloudFix RightSpend pricing
- Filter by region, platform, tenancy, vCPU, RAM, GPU, and more
- Full JSON‑RPC 2.0 MCP protocol compliance
- Serverless option via Lambda with Function URL
- Always up‑to‑date pricing data sourced from S3
Use cases of AWS EC2 Pricing MCP Server
- Automatically compare EC2 instance costs during infrastructure planning
- Integrate real‑time pricing into AI assistants for cost‑sensitive recommendations
- Query cheapest instances for batch jobs or spot workloads
- Validate pricing assumptions in CI/CD pipelines for cloud cost governance
FAQ from AWS EC2 Pricing MCP Server
What pricing models are available?
On‑Demand, Reserved Instances, and CloudFix RightSpend.
How do I deploy the serverless version?
Use the AWS SAM CLI: run sam build followed by sam deploy --guided. The Function URL is returned as a stack output.
What transports does the server support?
It uses JSON‑RPC 2.0 over HTTP for the Lambda function (via Function URL) and the MCP protocol for the traditional server.
Where does pricing data come from?
Pricing data is pulled dynamically from an S3 source, ensuring it is always current.
What are the runtime dependencies?
Python 3.x and the packages listed in requirements.txt. For Lambda deployment, the AWS SAM CLI is also required.