Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

Explore

  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Tags index
  • Submit a server
  • Pricing

Learn

  • Guides hub
  • What is MCP?
  • Install guide
  • Troubleshooting
  • Security
  • Blog
  • Blog RSS

Tools

  • All tools
  • Config generator
  • Config validator
  • MCP playground
  • OpenAPI β†’ MCP
  • Badge generator

For agents

  • API docs
  • Trust & traffic
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
  • Remote MCP β†— (opens in a new tab)

Company

  • About
  • Contact
  • X (@AllMCPs) β†— (opens in a new tab)
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on Buildlist
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ’» Developer Tools
  3. Infracost
I
Health: ActiveRecent health check succeeded.Last checked 8/10/2026, 11:57:27 PM

Infracost

Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View Repository

MCP server for Infracost CLI integration - cloud cost estimates for Infrastructure as Code

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Install Config Generator

Choose your client
claude_desktop_config.json
{
  "mcpServers": {
    "infracost": {
      "command": "npx",
      "args": [
        "-y",
        "infracost"
      ]
    }
  }
}

πŸ’‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

Install Tool Schemas (8) Directory Badge Claim listing AlternativesπŸ’» More in Developer Tools

Capabilities & Tool Schemas (8) ~106 tokensApproximate context cost of this server’s tool schemas (~4 chars/token), before any tool is called. Actual usage depends on your client and model.Self-reported Self-reportedParsed from the repository README, not verified against a live server β€” may be incomplete or out of date.

Inspect callable tools, capabilities, and parameters exposed to AI agents by Infracost.

infracost_breakdown

Monthly cost baseline for current IaC

infracost_diff

Cost delta from a planned change

infracost_output

Rendered table/JSON/HTML/comment output

infracost_comment

PR comment with estimated impact

infracost_upload

Cost report visible in Infracost Cloud

infracost_configure

Persisted CLI config update/read

Documentation Overview

Infracost MCP Server

Down At The Bottom Of The Mole Hole banner

CI/Publish Coverage npm License: MIT Node Version

Note: This is a community-maintained MCP server. It is not an official Model Context Protocol server from Infracost.

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.

Overview

This server provides eight MCP tools across estimation, reporting, collaboration, and operations workflows:

  • infracost_breakdown to generate baseline cost estimates.
  • infracost_diff to compare planned cost changes.
  • infracost_output to render existing Infracost JSON in different formats.
  • infracost_comment to post PR comments on supported SCM platforms.
  • infracost_upload to upload reports to Infracost Cloud.
  • infracost_configure to get or set CLI configuration.
  • infracost_auth to run authentication flow.
  • infracost_generate_usage to generate usage files with sensible defaults.

Platform Compatibility

This MCP server is platform-agnostic and works in local and CI environments:

  • Local development
  • GitHub Actions
  • GitLab CI/CD
  • Azure DevOps
  • CircleCI, Jenkins, and Bitbucket Pipelines
  • AI Agents and Copilot workflows

The primary requirements are Node.js and the Infracost CLI binary.

Tool Matrix

ToolCategoryTypical outcome
infracost_breakdownEstimationMonthly cost baseline for current IaC
infracost_diffComparisonCost delta from a planned change
infracost_outputReportingRendered table/JSON/HTML/comment output
infracost_commentCollaborationPR comment with estimated impact
infracost_uploadCloud SyncCost report visible in Infracost Cloud
infracost_configureConfigurationPersisted CLI config update/read
infracost_authAuthenticationLogin flow for Infracost Cloud
infracost_generate_usageUtilitiesPre-filled usage file template with defaults

Tools

infracost_breakdown

Runs infracost breakdown.

Inputs:

  • workingDirectory (string, optional): Command working directory.
  • path (string, optional): Path to Terraform/IaC directory or plan JSON.
  • configFile (string, optional): Path to Infracost config file.
  • usageFile (string, optional): Path to usage file.
  • format (string, optional): Output format. Default: table.
  • fields (string[], optional): Fields to include in output.
  • showSkus (boolean, optional): Include SKU details.
  • syncUsageFile (boolean, optional): Sync usage file with detected resources.
  • compareTo (string, optional): Baseline Infracost JSON path.
  • terraformWorkspace (string, optional): Terraform workspace.
  • terraformPlanFlags (string, optional): Flags for terraform plan.
  • timeoutSeconds (number, optional): Timeout in seconds.
  • extraArgs (string[], optional): Additional CLI arguments.

infracost_diff

Runs infracost diff.

Inputs:

  • workingDirectory (string, optional): Command working directory.
  • path (string, optional): Path to Terraform/IaC directory or plan JSON.
  • configFile (string, optional): Path to Infracost config file.
  • usageFile (string, optional): Path to usage file.
  • format (string, optional): Output format. Default: table.
  • compareTo (string, optional): Baseline Infracost JSON path.
  • showSkus (boolean, optional): Include SKU details.
  • syncUsageFile (boolean, optional): Sync usage file with detected resources.
  • terraformWorkspace (string, optional): Terraform workspace.
  • terraformPlanFlags (string, optional): Flags for terraform plan.
  • timeoutSeconds (number, optional): Timeout in seconds.
  • extraArgs (string[], optional): Additional CLI arguments.

infracost_output

Runs infracost output.

Inputs:

  • workingDirectory (string, optional): Command working directory.
  • path (string, optional): Infracost JSON file path. Auto-detected when omitted.
  • format (string, optional): Output format. Default: table.
  • fields (string[], optional): Fields to include in output.
  • showSkus (boolean, optional): Include SKU details.
  • timeoutSeconds (number, optional): Timeout in seconds.
  • extraArgs (string[], optional): Additional CLI arguments.

infracost_comment

Runs infracost comment.

Inputs:

  • workingDirectory (string, optional): Command working directory.
  • platform (string, optional): Platform (github, gitlab, azure-repos, bitbucket). Default: github.
  • path (string, optional): Infracost JSON file path. Auto-detected when omitted.
  • repo (string, optional): Repository (owner/repo).
  • pullRequest (string, optional): Pull request number.
  • commit (string, optional): Commit SHA.
  • token (string, optional): Platform token.
  • tag (string, optional): Comment tag.
  • behavior (string, optional): Comment update behavior.
  • dryRun (boolean, optional): Generate without posting.
  • timeoutSeconds (number, optional): Timeout in seconds.
  • extraArgs (string[], optional): Additional CLI arguments.

infracost_upload

Runs infracost upload.

Inputs:

  • workingDirectory (string, optional): Command working directory.
  • path (string, optional): Infracost JSON file path. Auto-detected when omitted.
  • timeoutSeconds (number, optional): Timeout in seconds.
  • extraArgs (string[], optional): Additional CLI arguments.

infracost_configure

Runs infracost configure.

Inputs:

  • workingDirectory (string, optional): Command working directory.
  • set (string, optional): Set configuration value.
  • get (string, optional): Read configuration value.
  • timeoutSeconds (number, optional): Timeout in seconds.
  • extraArgs (string[], optional): Additional CLI arguments.

infracost_auth

Runs infracost auth login.

Inputs:

  • workingDirectory (string, optional): Command working directory.
  • timeoutSeconds (number, optional): Timeout in seconds.
  • extraArgs (string[], optional): Additional CLI arguments.

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. Returns both raw JSON and formatted guidance.

Inputs:

  • resourceTypes (string[], required): Resource types to include (e.g., ["aws_lambda_function", "aws_s3_bucket"]).
  • outputFilePath (string, optional): Path where usage file should be saved (for guidance only).
  • includeGuidance (boolean, optional): Include formatted guidance. Default: true.
  • onlyJson (boolean, optional): Return only raw JSON (no guidance). Default: false.

Supported resource types: aws_lambda_function, aws_instance, aws_db_instance, aws_s3_bucket, aws_dynamodb_table, aws_ebs_volume, aws_cloudfront_distribution, aws_lb, aws_nat_gateway, google_compute_instance, google_storage_bucket, azurerm_windows_virtual_machine, azurerm_linux_virtual_machine, azurerm_storage_account, azurerm_mssql_database.

Prompt Cookbook

Use these minimal prompts in Copilot Chat with @infracost. CLI tools default to the current workspace root when no path is given. If you add a file or folder as Copilot context (#file or #folder), reference it in your prompt and the tool will target that path. The server auto-detects common report files (infracost-diff.json, infracost-base.json, infracost.json), so you usually do not need to pass path for infracost_output, infracost_comment, or infracost_upload.

Quick prompts

text
@infracost run infracost_breakdown
@infracost run infracost_diff
@infracost run infracost_output
@infracost run infracost_comment with dryRun true
@infracost run infracost_upload

Run breakdown (infracost_breakdown)

text
@infracost run infracost_breakdown

Expected output: Baseline cost estimate with command output, exit code, stdout, and stderr.

Run diff (infracost_diff)

text
@infracost run infracost_diff

Expected output: Cost delta from the planned change compared to current baseline.

Render output (infracost_output)

text
@infracost run infracost_output with format html

Expected output: Formatted output from existing Infracost JSON (auto-detected when possible).

Post PR comment (infracost_comment)

text
@infracost run infracost_comment with repo owner/repo and pullRequest 123 and dryRun true

Expected output: Generated comment payload, or posted comment when not in dry-run mode. Platform defaults to github.

Upload report (infracost_upload)

text
@infracost run infracost_upload

Expected output: Upload confirmation for Infracost Cloud ingestion.

Configure CLI (infracost_configure)

text
@infracost run infracost_configure with:
- set: currency=USD

Expected output: Configuration update confirmation from the CLI.

Authenticate (infracost_auth)

text
@infracost run infracost_auth

Expected output: Authentication flow prompt or login success details.

Generate usage file (infracost_generate_usage)

text
@infracost run infracost_generate_usage with:
- resourceTypes: ["aws_lambda_function", "aws_s3_bucket", "aws_dynamodb_table"]
- outputFilePath: ./infracost-usage.json
- includeGuidance: true

Expected output: Pre-filled usage file JSON with sensible defaults, plus guidance on customization and usage. Use onlyJson: true to return only the JSON for programmatic handling.

Dependencies

System Dependencies

  • Node.js >=24.14.0
  • npm (bundled with Node.js)
  • Infracost CLI installed and available in PATH (or via INFRACOST_BINARY_PATH)

npm Dependencies

Runtime:

  • @modelcontextprotocol/sdk (MCP server SDK)

Development:

  • typescript (build/compile)
  • tsx (development runner)
  • vitest (unit test runner)
  • @types/node (Node.js typings)

Environment Variables

  • INFRACOST_API_KEY: Infracost API key for cloud-backed features.
  • INFRACOST_BINARY_PATH: Override path to Infracost binary.

Installation

Terminal
npm install
npm run build

Configuration

Usage with VS Code Copilot Chat

This workspace is preconfigured in .vscode/mcp.json:

config.json
{
  "servers": {
    "infracost": {
      "type": "stdio",
      "command": "node",
      "args": ["./dist/index.js"]
    }
  }
}

Reload VS Code (Cmd+Shift+P -> Developer: Reload Window) after changing MCP configuration.

Then query the server from Copilot Chat with @infracost, for example:

text
@infracost run infracost_breakdown
@infracost run infracost_diff

Usage with Other MCP Clients

Use stdio transport with the built entrypoint:

config.json
{
  "name": "infracost-mcp-server",
  "type": "stdio",
  "command": "node",
  "args": ["/absolute/path/to/infracost-mcp/dist/index.js"]
}

Build first with npm run build, then start your MCP client.

Running

Terminal
npm start

Development mode:

Terminal
npm run dev

Built mode:

Terminal
npm run start

Debugging

Use .vscode/launch.json:

  • Debug MCP Server (runs npm run dev)
  • Debug MCP Server (Built) (runs dist/index.js after build)

Set breakpoints in src/index.ts, then press F5.

Testing

See docs/TESTING.md for Copilot Chat scenarios, manual JSON-RPC checks, and troubleshooting guidance.

Quick validation prompt in Copilot Chat:

text
@infracost run infracost_breakdown

Interactive VS Code Workflows

1. PR Cost Impact Review

  1. Generate a baseline:
text
@infracost run infracost_breakdown with:
- path: .
- format: json
  1. Generate a diff:
text
@infracost run infracost_diff with:
- path: .
- format: diff
  1. Draft a PR comment:
text
@infracost run infracost_comment with:
- platform: github
- path: infracost-diff.json
- repo: owner/repo
- pullRequest: 123
- dryRun: true

2. Reporting Pipeline Setup

  1. Render a report for humans:
text
@infracost run infracost_output with:
- path: infracost-diff.json
- format: html
  1. Upload for centralized tracking:
text
@infracost run infracost_upload with:
- path: infracost-diff.json

3. Environment Bootstrap

  1. Configure defaults:
text
@infracost run infracost_configure with:
- set: currency=USD
  1. Authenticate:
text
@infracost run infracost_auth

Best Practices

  • Keep workingDirectory explicit when running inside monorepos.
  • Use --format json for machine processing and --format table for human triage.
  • Keep timeoutSeconds high enough for large Terraform plans.
  • Prefer infracost_comment with dryRun=true before posting to production PR threads.
  • Use infracost_upload for historical visibility in Infracost Cloud.

Additional Use Cases

  • Pre-merge cost gates in pull requests.
  • Scheduled baseline cost snapshots in CI.
  • Cost delta reporting for release trains.
  • Team-level FinOps dashboards based on uploaded reports.

Related Projects

Infracost Resources

  • Infracost website
  • Infracost documentation
  • Infracost CLI repository

Model Context Protocol

  • MCP official documentation
  • MCP TypeScript SDK
  • MCP servers registry

Community and Contributing

  • Contributing Guide
  • Code of Conduct
  • Security Policy
  • Testing Guide
  • Maintainer Guide

Attribution and License

Maintained by Carl Dawson under the Down At The Bottom Of The Mole Hole organization.

Development

Terminal
npm run lint
npm test
npm run build

License

Licensed under the MIT License.

Related MCP Servers

View all in Developer Tools View all alternatives
  • Claude Task Master logoClaude Task Master

    AI-powered task management system for AI-driven development. Features PRD parsing, task expansion, multi-provider support (Claude, OpenAI, Gemini, Perplexity, xAI), and selective tool loading for optimized context usage.

    πŸ’» Developer Tools7 views
    Compare vs Claude Task Master β†’
  • A
    Ai Netcafe

    Compare LLM cost & latency on one prompt, translate PDF keeping layout, cited research, make PPTX

    πŸ’» Developer Tools0 views
    Compare vs Ai Netcafe β†’
  • Shadcn Ui Mcp Server logoShadcn Ui Mcp Server

    MCP server that gives AI assistants seamless access to shadcn/ui v4 components, blocks, demos, and metadata.

    πŸ’» Developer Tools2 views
    Compare vs Shadcn Ui Mcp Server β†’
  • Globalping Mcp Server logoGlobalping Mcp Server

    The Globalping MCP server provides users and LLMs access to run network tools like ping, traceroute, mtr, HTTP and DNS resolve from thousands of locations around the world.

    πŸ’» Developer Tools2 views
    Compare vs Globalping Mcp Server β†’

Frequently Asked Questions about Infracost

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "infracost": { "command": "npx", "args": ["-y", "infracost"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewInfracost AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/infracost?style=directory)](https://allmcps.com/mcp/infracost)
HTML Embed
<a href="https://allmcps.com/mcp/infracost"><img src="https://allmcps.com/api/badge/infracost?style=directory" alt="Infracost on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ’»Developer Tools
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
5/5 checks healthy over the last 6h
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars0
GitHub Star CountTotal stargazers on GitHub representing community popularity (0 stars).
Last commit2d ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Aug 8, 2026
45Quality signal: Fair Β· 45/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools20/30
Adoption & activity4/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Free dofollow backlink: after claiming, verify your product site and place a dofollow AllMCPs badge β€” we recheck it stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ’» Developer Tools β†’Best MCP servers for Developers β†’Alternatives to Infracost β†’Install in Claude DesktopInstall in CursorInstall in VS Code