
Infracost
Let your agent estimate monthly cloud spend from Infrastructure-as-Code before you commit to an architecture or ship expensive resources.
Overview
Infracost MCP is an MCP server for the Validate phase that connects agents to Infracost CLI for Infrastructure-as-Code cloud cost estimates.
What is this MCP server?
- MCP bridge to Infracost CLI for IaC cost estimates
- stdio npm package @downatthebottomofthemolehole/infracost-mcp-server v1.0.1
- GitHub: DownAtTheBottomOfTheMoleHole/infracost-mcp
- Fits agent-driven reviews of Terraform, CloudFormation, and related IaC
- npm package version 1.0.1
- Transport: stdio
- Identifier: @downatthebottomofthemolehole/infracost-mcp-server
What problem does it solve?
You cannot sanity-check cloud bills from IaC inside the agent chat, so expensive architectures slip through until the invoice arrives.
Who is it for?
Indie builders shipping on AWS/GCP/Azure with Terraform or similar IaC who want cost feedback in the same loop as code generation.
Skip if: Pure local apps with no cloud IaC, or teams that refuse to install and maintain the Infracost CLI toolchain.
What do I get? / Deliverables
After registering the stdio server, your agent can trigger Infracost-backed estimates so pricing tradeoffs show up before you merge infra changes.
- Agent-invokable IaC cost estimates via Infracost
- Repeatable cost checks on infra changes without leaving the agent
Recommended MCP Servers
Journey fit
Cost visibility belongs in Validate when you are scoping stacks and pricing the business, though the same checks help right before launch. Pricing is the canonical shelf because Infracost answers “what will this Terraform/CDK bill?” not “deploy this” or “lint this.”
How it compares
Infracost CLI exposed via MCP, not a standalone FinOps dashboard or agent skill.
Common Questions / FAQ
Who is Infracost MCP for?
Solo builders and small teams using IaC who want cloud cost estimates callable from Claude Code, Cursor, or other MCP clients.
When should I use Infracost MCP?
While validating scope and pricing, or before shipping infra changes, whenever you need agent-readable cost diffs.
How do I add Infracost MCP to my agent?
Install and configure @downatthebottomofthemolehole/infracost-mcp-server (stdio) in your MCP settings, ensure Infracost CLI works locally, then restart the agent so it can invoke the server.