An AWS Labs Model Context Protocol (MCP) server for Cost Analysis of the AWS services
Project description
Cost Analysis MCP Server
MCP server for analyzing AWS service costs and generating cost reports
Features
Analyze and visualize AWS costs
- Get detailed breakdown of your AWS costs by service, region and tier
- Understand how costs are distributed across various services
Query cost data with natural language
- Ask questions about your AWS costs in plain English, no complex query languages required
- Get instant answers fetched from pricing webpage and AWS Pricing API, for questions related to AWS services
Generate cost reports and insights
- Generate comprehensive cost reports based on your IaC implementation
- Get cost optimization recommendations
Prerequisites
- Install
uvfrom Astral or the GitHub README - Install Python using
uv python install 3.10 - Set up AWS credentials with access to AWS services
- You need an AWS account with appropriate permissions
- Configure AWS credentials with
aws configureor environment variables - Ensure your IAM role/user has permissions to access AWS Pricing API
Installation
Here are some ways you can work with MCP across AWS, and we'll be adding support to more products including Amazon Q Developer CLI soon: (e.g. for Amazon Q Developer CLI MCP, ~/.aws/amazonq/mcp.json):
{
"mcpServers": {
"awslabs.cost-analysis-mcp-server": {
"command": "uvx",
"args": ["awslabs.cost-analysis-mcp-server@latest"],
"env": {
"FASTMCP_LOG_LEVEL": "ERROR",
"AWS_PROFILE": "your-aws-profile"
},
"disabled": false,
"autoApprove": []
}
}
}
AWS Authentication
The MCP server uses the AWS profile specified in the AWS_PROFILE environment variable. If not provided, it defaults to the "default" profile in your AWS configuration file.
"env": {
"AWS_PROFILE": "your-aws-profile"
}
Make sure the AWS profile has permissions to access the AWS Pricing API. The MCP server creates a boto3 session using the specified profile to authenticate with AWS services. Your AWS IAM credentials remain on your local machine and are strictly used for accessing AWS services.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mseep_awslabs_cost_analysis_mcp_server-0.1.4.tar.gz.
File metadata
- Download URL: mseep_awslabs_cost_analysis_mcp_server-0.1.4.tar.gz
- Upload date:
- Size: 86.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a2f3e84fa66a5e44e5a41bf49b6f774a8d402ee989afd00389e05118d1fb363
|
|
| MD5 |
ee17d022c7b67a572c04c7ca83aebaa0
|
|
| BLAKE2b-256 |
4f0beac436cfc3f98d9cdee79da12410d0cd5da1cc0d41761673ec550e85ff6b
|
File details
Details for the file mseep_awslabs_cost_analysis_mcp_server-0.1.4-py3-none-any.whl.
File metadata
- Download URL: mseep_awslabs_cost_analysis_mcp_server-0.1.4-py3-none-any.whl
- Upload date:
- Size: 53.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d2042fd7e0aaa90f2e57766126f6aba5eab243b060191d3b8f9b0643a3355fe
|
|
| MD5 |
894b1f98892d9c6122978488a53539b1
|
|
| BLAKE2b-256 |
723778190b659918a750c3ece42829834d1ef998004b78ca82c58c6a352c4abc
|