cloudcost-analyzer
v1.0.0
Published
Real-time AWS, GCP, and Azure cost monitoring and optimization MCP server. Built with AI by Craftpipe
Readme
CloudCost Analyzer
Real-time multi-cloud cost monitoring and optimization for Claude
CloudCost Analyzer is an MCP server that connects Claude directly to your AWS, GCP, and Azure billing APIs. Analyze spending patterns in real-time, detect cost anomalies, receive optimization recommendations, and generate compliance reports—all through natural conversation with Claude. Built for DevOps engineers, platform teams, and startup CTOs managing multi-cloud infrastructure costs.
Quick Start
Install and run the server:
npx -y cloudcost-analyzerAdd to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"cloudcost-analyzer": {
"command": "npx",
"args": ["-y", "cloudcost-analyzer"],
"env": {
"PRO_LICENSE": "your-license-key-here",
"NODE_ENV": "production",
"AWS_ACCESS_KEY_ID": "your-aws-key",
"AWS_SECRET_ACCESS_KEY": "your-aws-secret",
"GCP_PROJECT_ID": "your-gcp-project",
"GCP_CREDENTIALS": "path-to-service-account.json",
"AZURE_SUBSCRIPTION_ID": "your-azure-subscription",
"AZURE_CLIENT_ID": "your-azure-client-id",
"AZURE_CLIENT_SECRET": "your-azure-secret",
"AZURE_TENANT_ID": "your-azure-tenant"
}
}
}
}For Cursor or Windsurf, add the same configuration to your .cursor/mcp.json or .windsurf/mcp.json file.
Tools
| Tool | Description |
|------|-------------|
| get_spending_summary | Fetch current month spending breakdown by service, region, and resource type across all connected cloud providers |
| detect_cost_anomalies | Identify unusual spending patterns and cost spikes compared to historical baselines (Pro feature) |
| get_optimization_recommendations | Receive actionable suggestions for cost reduction including reserved instances, unused resources, and rightsizing |
| forecast_monthly_spend | Project monthly costs for the next 3-6 months based on current trends (Pro feature) |
| list_top_cost_drivers | Identify the top 10-20 resources consuming the most budget across your infrastructure |
| generate_cost_report | Create detailed cost analysis reports exportable as PDF or CSV for finance and compliance teams |
| set_budget_alert | Configure spending thresholds and receive notifications when budgets are exceeded (Pro feature) |
Free vs Pro
| Feature | Free | Pro | |---------|------|-----| | Current month spending analysis | ✓ | ✓ | | Top cost drivers identification | ✓ | ✓ | | Basic optimization recommendations | ✓ | ✓ | | Cost anomaly detection | ✗ | ✓ | | Advanced forecasting (3-6 months) | ✗ | ✓ | | Multi-account aggregation | ✗ | ✓ | | Real-time Slack alerts | ✗ | ✓ | | Automated optimization workflows | ✗ | ✓ | | Compliance report export | ✗ | ✓ | | Budget alerts | ✗ | ✓ | | Priority support | ✗ | ✓ |
Get Pro
Unlock advanced cost optimization and real-time monitoring with a Pro license. Visit craftpipe.dev/pricing to subscribe for €39/month.
After purchasing, set your license key in the PRO_LICENSE environment variable:
{
"mcpServers": {
"cloudcost-analyzer": {
"env": {
"PRO_LICENSE": "pro_xxxxxxxxxxxxx"
}
}
}
}Configuration
| Environment Variable | Description | Required | Default |
|----------------------|-------------|----------|---------|
| PRO_LICENSE | Your Pro subscription license key | No | — |
| NODE_ENV | Runtime environment | No | development |
| AWS_ACCESS_KEY_ID | AWS API access key | Conditional* | — |
| AWS_SECRET_ACCESS_KEY | AWS API secret key | Conditional* | — |
| GCP_PROJECT_ID | Google Cloud project ID | Conditional* | — |
| GCP_CREDENTIALS | Path to GCP service account JSON file | Conditional* | — |
| AZURE_SUBSCRIPTION_ID | Azure subscription ID | Conditional* | — |
| AZURE_CLIENT_ID | Azure service principal client ID | Conditional* | — |
| AZURE_CLIENT_SECRET | Azure service principal secret | Conditional* | — |
| AZURE_TENANT_ID | Azure tenant ID | Conditional* | — |
*Conditional: Required only for cloud providers you wish to monitor. At least one cloud provider must be configured.
License
MIT License. See LICENSE for details.
Built with AI by Craftpipe
⭐ Pro Features
Upgrade to Pro for additional tools:
- monitoring
- advanced queries
- data export
Get Pro → craftpipe.gumroad.com (€39/mo)
Set PRO_LICENSE=<your-key> environment variable to unlock premium tools.
