# io.github.DownAtTheBottomOfTheMoleHole/infracost (npm · @downatthebottomofthemolehole/infracost-mcp-server)

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

- Trust score: 76/100 (medium)
- Change this week: +32
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-03

## Components

- npm · `@downatthebottomofthemolehole/infracost-mcp-server`: 76/100 (this document), [markdown](https://verifymcp.io/servers/downatthebottomofthemolehole-infracost/downatthebottomofthemolehole-infracost-mcp-server.md), [page](https://verifymcp.io/servers/downatthebottomofthemolehole-infracost/downatthebottomofthemolehole-infracost-mcp-server)

## Channel facts

- Registry: `npm`
- Package: `@downatthebottomofthemolehole/infracost-mcp-server`
- Version: `1.0.1`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-03.

- **Supply Chain Security**: 83/100
  - No malware found by supply-chain analysis.
  - CVE check failed: a known medium-severity CVE affects @hono/node-server 1.19.17, reached via @modelcontextprotocol/sdk > @hono/node-server. A fixed version is available.
  - No install/post-install scripts declared.
  - Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree.
- **Provenance & Transparency**: 97/100
  - Source repository is publicly reachable at the declared URL.
  - Cryptographically verified build provenance (signed, bound to DownAtTheBottomOfTheMoleHole/infracost-mcp).
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 147 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 62/100
  - AI-judged instruction clarity (good).
  - Context-footprint check failed: tool/resource definitions use about 1320 tokens (~165/item across 8 items; 8 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 27/100
  - Stability observed for 8 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### Claude

```bash
claude mcp add downatthebottomofthemolehole-infracost -- npx -y @downatthebottomofthemolehole/infracost-mcp-server
```

### Codex

```bash
codex mcp add downatthebottomofthemolehole-infracost -- npx -y @downatthebottomofthemolehole/infracost-mcp-server
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "downatthebottomofthemolehole-infracost": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@downatthebottomofthemolehole/infracost-mcp-server"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add downatthebottomofthemolehole-infracost --command npx --arg -y --arg @downatthebottomofthemolehole/infracost-mcp-server
```

### Hermes

```yaml
mcp_servers:
  downatthebottomofthemolehole-infracost:
    command: "npx"
    args: ["-y", "@downatthebottomofthemolehole/infracost-mcp-server"]
```

### Other

```json
{
  "mcpServers": {
    "downatthebottomofthemolehole-infracost": {
      "command": "npx",
      "args": [
        "-y",
        "@downatthebottomofthemolehole/infracost-mcp-server"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-03 (score 76, +4)

- [functional improvement] Stability: unverified → 0.27

### 2026-08-02 (score 72, +52)

- [security regression] GHSA-frvp-7c67-39w9 affects this package: medium
- [security regression] Known CVEs: unverified → fail
- [security improvement] Provenance: unverified → pass
- [security improvement] Install scripts: unverified → pass
- [security] Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window).
- [security] The attested source repository moved: DownAtTheBottomOfTheMoleHole/infracost-mcp
- [functional improvement] Tool coverage: unverified → 100
- [functional improvement] License: unverified → pass
- [functional improvement] Dependency health: unverified → partial
- [functional improvement] Maintenance: unverified → pass
- [functional improvement] MCP protocol: unverified → pass
- [functional improvement] Schema quality: unverified → good
- [functional] Licence: MIT

### 2026-08-01 (score 20, +1)

- [security improvement] Malware scan: unverified → pass
- [functional regression] Tool coverage: 100 → unverified

### 2026-07-31 (score 19, −5)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-28 (score 24, −20)

- [functional regression] Tool coverage: 100 → unverified
- [functional] First check of Schema quality: unverified

### 2026-07-27 (score 44)

First indexed and scored.

## MCP tools (8)

### `infracost_breakdown` (~289 tokens)

Generate cost breakdown for Infrastructure as Code (Terraform, CloudFormation, etc.). Shows cost estimates for cloud resources.

Input parameters:

- `apiKey` (string): Infracost API key (can also use INFRACOST_API_KEY env var).
- `compareTo` (string): Path to baseline Infracost JSON for comparison.
- `configFile` (string): Path to Infracost config file.
- `extraArgs` (array): Additional CLI arguments.
- `fields` (array): Fields to include in output (all, price, monthlyQuantity, unit, hourlyCost, monthlyCost).
- `format` (string): Output format: table, json, html, diff, github-comment, gitlab-comment, azure-repos-comment, slack-message, etc.
- `path` (string): Path to the Terraform/IaC directory or plan JSON file.
- `showSkus` (boolean): Show SKU details in the output.
- `syncUsageFile` (boolean): Sync usage file with missing resources.
- `terraformPlanFlags` (string): Flags to pass to 'terraform plan'.
- `terraformWorkspace` (string): Terraform workspace to use.
- `timeoutSeconds` (number): Command timeout in seconds.
- `usageFile` (string): Path to Infracost usage file for resource usage estimates.
- `workingDirectory` (string): Directory where the command is executed. Defaults to current directory.

### `infracost_diff` (~229 tokens)

Show cost diff between current IaC and planned changes. Useful for pull request reviews to understand cost impact.

Input parameters:

- `apiKey` (string): Infracost API key.
- `compareTo` (string): Path to baseline Infracost JSON for comparison.
- `configFile` (string): Path to Infracost config file.
- `extraArgs` (array): Additional CLI arguments.
- `format` (string): Output format: table, json, html, diff, github-comment, etc.
- `path` (string): Path to the Terraform/IaC directory or plan JSON file.
- `showSkus` (boolean): Show SKU details.
- `syncUsageFile` (boolean): Sync usage file with missing resources.
- `terraformPlanFlags` (string): Flags to pass to 'terraform plan'.
- `terraformWorkspace` (string): Terraform workspace to use.
- `timeoutSeconds` (number): Command timeout in seconds.
- `usageFile` (string): Path to Infracost usage file.
- `workingDirectory` (string): Directory where the command is executed. Defaults to current directory.

### `infracost_output` (~141 tokens)

Format Infracost JSON output to different formats (table, html, github-comment, etc.).

Input parameters:

- `apiKey` (string): Infracost API key.
- `extraArgs` (array): Additional CLI arguments.
- `fields` (array): Fields to include in output.
- `format` (string): Output format: table, json, html, diff, github-comment, etc.
- `path` (string, required): Path to Infracost JSON file (required).
- `showSkus` (boolean): Show SKU details.
- `timeoutSeconds` (number): Command timeout in seconds.
- `workingDirectory` (string): Directory where the command is executed.

### `infracost_comment` (~221 tokens)

Post cost estimate comments to pull requests on GitHub, GitLab, Azure Repos, or Bitbucket.

Input parameters:

- `apiKey` (string): Infracost API key.
- `behavior` (string): Behavior: update (default), new, or delete-and-new.
- `commit` (string): Commit SHA.
- `dryRun` (boolean): Dry run mode - generate comment without posting.
- `extraArgs` (array): Additional CLI arguments.
- `path` (string, required): Path to Infracost JSON file (required).
- `platform` (string): Platform: github, gitlab, azure-repos, or bitbucket.
- `pullRequest` (string): Pull request number.
- `repo` (string): Repository in format owner/repo.
- `tag` (string): Customize comment tag to support multiple scenarios.
- `timeoutSeconds` (number): Command timeout in seconds.
- `token` (string): GitHub/GitLab/Azure DevOps/Bitbucket token.
- `workingDirectory` (string): Directory where the command is executed.

### `infracost_upload` (~96 tokens)

Upload Infracost JSON output to Infracost Cloud for centralized cost visibility and reporting.

Input parameters:

- `apiKey` (string): Infracost API key.
- `extraArgs` (array): Additional CLI arguments.
- `path` (string, required): Path to Infracost JSON file to upload (required).
- `timeoutSeconds` (number): Command timeout in seconds.
- `workingDirectory` (string): Directory where the command is executed.

### `infracost_configure` (~127 tokens)

Get or set Infracost configuration options (API key, currency, etc.).

Input parameters:

- `apiKey` (string): Infracost API key.
- `extraArgs` (array): Additional CLI arguments.
- `get` (string): Get configuration value for a key (e.g., 'api_key', 'currency').
- `set` (string): Set configuration key-value (e.g., 'api_key=YOUR_KEY' or 'currency=EUR').
- `timeoutSeconds` (number): Command timeout in seconds.
- `workingDirectory` (string): Directory where the command is executed.

### `infracost_auth` (~78 tokens)

Authenticate with Infracost Cloud. Opens browser for login flow.

Input parameters:

- `apiKey` (string): Infracost API key (alternative to browser login).
- `extraArgs` (array): Additional CLI arguments.
- `timeoutSeconds` (number): Command timeout in seconds.
- `workingDirectory` (string): Directory where the command is executed.

### `infracost_generate_usage` (~139 tokens)

Generate Infracost usage file with sensible defaults for specified resource types. Complements infracost_configure by providing pre-filled templates.

Input parameters:

- `includeGuidance` (boolean): Include formatted guidance on how to use the generated file. Default: true.
- `onlyJson` (boolean): Return only the raw JSON (no guidance). Overrides includeGuidance. Default: false.
- `outputFilePath` (string): Optional path where the usage file should be saved (for guidance only).
- `resourceTypes` (array, required): Resource types to include in usage file (e.g., ["aws_lambda_function", "aws_s3_bucket"]). Required.

## Diagnostics

Captured diagnostic sections: Provenance, Vulnerabilities, Dependencies. The full working is on the page: https://verifymcp.io/servers/downatthebottomofthemolehole-infracost/downatthebottomofthemolehole-infracost-mcp-server#diagnostics

## Score history

- 2026-08-03: 76
- 2026-08-02: 72
- 2026-08-01: 20
- 2026-07-31: 19
- 2026-07-30: 24
- 2026-07-28: 24
- 2026-07-27: 44

## Links

- npm package: https://www.npmjs.com/package/@downatthebottomofthemolehole/infracost-mcp-server
- Socket report: https://socket.dev/npm/package/@downatthebottomofthemolehole/infracost-mcp-server
- Repository: https://github.com/DownAtTheBottomOfTheMoleHole/infracost-mcp
- Changelog RSS feed: https://verifymcp.io/servers/downatthebottomofthemolehole-infracost/downatthebottomofthemolehole-infracost-mcp-server/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/downatthebottomofthemolehole-infracost/downatthebottomofthemolehole-infracost-mcp-server/changelog.json
- HTML version of this page: https://verifymcp.io/servers/downatthebottomofthemolehole-infracost/downatthebottomofthemolehole-infracost-mcp-server
