general MCP Server
MCP server for multi-cloud cost analysis of Terraform codebases — supports AWS, Azure, and GCP
Discovered via github-topic:model-context-protocol and last synced 3mo ago.
1. Install the package
npx @jadenrazo/cloudcost-mcp
2. Add to claude_desktop_config.json
{
"mcpServers": {
"-jadenrazo-cloudcost-mcp": {
"command": "npx",
"args": [
"@jadenrazo/cloudcost-mcp"
]
}
}
}Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) / %APPDATA%\Claude\claude_desktop_config.json (Windows)
`aws \
Yes
`aws \
`string[]`
`string`
$48.00
`true`
`google_api_gateway_api`
`string`
`object[]`
`string`
`number` (0–1)
`info`
`azurerm_kubernetes_cluster`
No
`string`
$314.64
`on_demand`
`azurerm_dns_zone`
### How this compares to Infracost Infracost is the mature choice for **Terraform-on-AWS cost estimation in CI** — PR-comment cost deltas, threshold gating, deep Terragrunt support. If that's your workflow, use it. CloudCostMCP targets a different surface: - **Agent-native via MCP.** Models call it as a tool *during* generation. `check_cost_budget` returns `allow` / `warn` / `block` with the specific blocking resources named, fast enough on a warm pricing cache for an agent to veto an expensive config before writing it to disk. - **Multi-IaC in one server.** Terraform, CloudFormation, Pulumi, Bicep/ARM — one tool, not four. - **Zero credentials.** All pricing comes from public endpoints. No account, no cloud IAM, no API keys. - **Optimization + what-if scenarios built in.** Right-sizing, reserved-pricing, cross-provider switching, and spot modeling are first-class tools. The two are complementary. Use Infracost in CI; use CloudCostMCP inside your agent or editor. --- ## Installation Requires **Node.js 20** or later. ### 60-second quick start (Claude Code) ```bash npm install -g @jadenrazo/cloudcost-mcp claude mcp add cloudcost -- cloudcost-mcp ``` Then, inside a project directory with Terraform files, ask Claude: > *"Use cloudcost to estimate the monthly AWS cost of this Terraform config, then check it against a $2000/month budget with check_cost_budget."* No API keys, no cloud credentials, no separate account. For other MCP clients (Claude Desktop, Cursor, any MCP-compatible agent), see the detailed setup below. ### All install options ```bash # From source git clone https://github.com/jadenrazo/CloudCostMCP.git cd CloudCostMCP npm install npm run build ``` ```bash # Global npm install npm install -g @jadenrazo/cloudcost-mcp ``` ```bash # One-shot, no install npx -y @jadenrazo/cloudcost-mcp ``` ### Claude Desktop Add to your Claude Desktop MCP configuration (`claude_desktop_config.json`): ```json { "mcpServers": { "cloudcost": { "command": "node", "args": ["/path/to/CloudCostMCP/dist/index.js"] } } } ``` If installed globally via npm: ```json { "mcpServers": { "cloudcost": { "command": "cloudcost-mcp" } } } ``` ### Claude Code ```bash claude mcp add cloudcost -- node /path/to/CloudCostMCP/dist/index.js ``` Or if installed globally via npm: ```bash claude mcp add cloudcost -- cloudcost-mcp ``` ### As a standalone MCP server (stdio) ```bash node dist/index.js ``` --- ## Tools The server exposes twelve MCP tools. Each accepts JSON input and returns structured JSON output. For agent-centric workflows, `check_cost_budget` is the headline tool: it returns an `allow` / `warn` / `block` verdict fast enough to be called between IaC generation and disk write — see [docs/guardrails.md](./docs/guardrails.md). ### `analyze_terraform` Parse Terraform files and return a resource inventory. Detects the cloud provider, resolves variables (including `tfvars`), and extracts cost-relevant attributes like instance types, storage sizes, and database engines.
`string`
Default
`0.8`
Required
`string`
`string`
`string`
`{path, content}[]`
`number`
Type
`aws \
`number`
AWS
`730`
`azurerm_container_registry`
`markdown \
$1,176.48
`false`
`azurerm_key_vault`
Extensions
No
$72.00
`80`
`azurerm_web_application_firewall_policy`
`number`
`86400`
`number`
`~/.cloudcost/cache.db`
`azurerm_virtual_machine`, `azurerm_linux_virtual_machine`
Detecting exposed AWS credentials in source code repositories, CI/CD pipelines, and configuration files using TruffleHog, git-secrets, and AWS-native detection mechanisms to prevent credential theft and unauthorized account access.
Auditing Microsoft Entra ID (Azure Active Directory) configuration to identify risky authentication policies, overly permissive role assignments, stale accounts, conditional access gaps, and guest user risks using AzureAD PowerShell, Microsoft Graph API, and ScoutSuite.
Detecting data exfiltration attempts from AWS S3 buckets by analyzing CloudTrail S3 data events, VPC Flow Logs, GuardDuty findings, Amazon Macie alerts, and S3 access patterns to identify unauthorized bulk downloads and cross-account data transfers.
Implementing AWS Security Hub to aggregate security findings across AWS accounts, enable compliance standards like CIS AWS Foundations and PCI DSS, configure automated remediation with EventBridge and Lambda, and create custom security insights for organizational risk management.
Sample code and notebooks for Generative AI on Google Cloud, with Gemini Enterprise Agent Platform
Flexible and powerful framework for managing multiple AI agents and handling complex conversations
为独立开发者准备的精选技术栈和工具仓库来了!这里有你最需要的工具,帮你提升开发效率、节约成本,最重要的是——这些工具都是市场上热门的,经过验证的。🚀A curated collection of tech stacks and tools tailored for independent developers is here! these are proven, popular tools widely used in the industry. 🚀
Labs to explore AI Models, MCP servers, and Agents with the AI Gateway powered by Azure API Management and Microsoft Foundry 🚀
Learn how to use the cloud-gcp Claude skill. Complete guide with installation instructions and examples.
Learn how to use the cloud-aws Claude skill. Complete guide with installation instructions and examples.
Learn how to use the azure-cosmos-ts-v2 Claude skill. Complete guide with installation instructions and examples.