MCP server for Infracost CLI integration - cloud cost estimates for Infrastructure as Code
Infracost MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. MCP server for Infracost CLI integration - cloud cost estimates for Infrastructure as Code.
A Model Context Protocol (MCP) server for running the Infracost CLI to estimate, compare, and publish infrastructure cost changes from Terraform and other Infrastructure as Code projects.
This server provides eight MCP tools across estimation, reporting, collaboration, and operations workflows:
The server ships on npm as npm, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.
Once Infracost is connected, these are the calls the assistant has available:
resourceTypes — ["aws_lambda_function", "aws_s3_bucket", "aws_dynamodb_table"]outputFilePath — ./infracost-usage.jsonincludeGuidance — trueinfracost_breakdown — The infracost_breakdown tool exposed by this serverinfracost_diff — The infracost_diff tool exposed by this serverinfracost_output — The infracost_output tool exposed by this serverinfracost_comment — The infracost_comment tool exposed by this serverinfracost_upload — The infracost_upload tool exposed by this serverinfracost_configure — The infracost_configure tool exposed by this serverinfracost_auth — The infracost_auth tool exposed by this serverinfracost_generate_usage — Generates an Infracost usage file with sensible defaults for specified resource types. This is a utility tool that complements infracost_configure byYou will need 2 environment variables: INFRACOST_BINARY_PATH, INFRACOST_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Plenty of cloud and infrastructure servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Infracost's toolset — resourceTypes, outputFilePath, includeGuidance and 8 more — is a fair guide to whether it matches your workflow. It is maintained by DownAtTheBottomOfTheMoleHole; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| resourceTypes | ["aws_lambda_function", "aws_s3_bucket", "aws_dynamodb_table"] |
| outputFilePath | ./infracost-usage.json |
| includeGuidance | true |
| infracost_breakdown | The infracost_breakdown tool exposed by this server. |
| infracost_diff | The infracost_diff tool exposed by this server. |
| infracost_output | The infracost_output tool exposed by this server. |
| infracost_comment | The infracost_comment tool exposed by this server. |
| infracost_upload | The infracost_upload tool exposed by this server. |
| infracost_configure | The infracost_configure tool exposed by this server. |
| infracost_auth | The infracost_auth tool exposed by this server. |
| infracost_generate_usage | Generates an Infracost usage file with sensible defaults for specified resource types. This is a utility tool that complements infracost_configure by providing pre-filled templates you can customize for your workloads. R |
{
"mcpServers": {
"infracost": {
"command": "npx",
"args": ["-y", "npm"],
"env": {
"INFRACOST_BINARY_PATH": "your-value",
"INFRACOST_API_KEY": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| INFRACOST_BINARY_PATH | Filesystem location the server is allowed to use. | Optional |
| INFRACOST_API_KEY | Credential the server authenticates with. | Yes |
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Stop letting your assistant hallucinate n8n node parameters — this server hands it the real schemas, templates and validation.
AWS Labs' official server suite — current AWS docs, CDK guidance, cost analysis and service tools.
Cloud browsers for AI agents — automation sessions that run in Browserbase's fleet, not on your machine.
Workers, KV, R2 and D1 by conversation — Cloudflare's official remote servers for building and observability.
Dashboards, Prometheus and Loki queries, incidents and alerts — observability by conversation.