Skip to content
MCP server

costwright — agent budget analysis

Static worst-case token-budget analysis for LLM-agent workflows + signed budget…

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.1.1
Listing updated
5 days ago

About costwright — agent budget analysis

costwright — agent budget analysis is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Static worst-case token-budget analysis for LLM-agent workflows + signed budget certificates.

Install

Run in a terminal

claude mcp add costwright-mcp --env COSTWRIGHT_API_KEY='<COSTWRIGHT_API_KEY>' -- npx -y costwright-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "costwright-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "costwright-mcp"
      ],
      "env": {
        "COSTWRIGHT_API_KEY": "<COSTWRIGHT_API_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "costwright-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "costwright-mcp"
      ],
      "env": {
        "COSTWRIGHT_API_KEY": "<COSTWRIGHT_API_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "costwright-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "costwright-mcp"
      ],
      "env": {
        "COSTWRIGHT_API_KEY": "<COSTWRIGHT_API_KEY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "costwright-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "costwright-mcp"
      ],
      "env": {
        "COSTWRIGHT_API_KEY": "<COSTWRIGHT_API_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "costwright-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "costwright-mcp"
      ],
      "env": {
        "COSTWRIGHT_API_KEY": "<COSTWRIGHT_API_KEY>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • COSTWRIGHT_API_KEYAPI key for costwright (RapidAPI key or direct Bearer). Only needed for check/certify; verify/pubkey are public.

Pricing

Open source

costwright — agent budget analysis FAQ

Is costwright — agent budget analysis free?

Yes. costwright — agent budget analysis is open source, so you can use and self-host it for free.

How do I add costwright — agent budget analysis to Claude Code?

Run this command in your terminal: claude mcp add costwright-mcp --env COSTWRIGHT_API_KEY='<COSTWRIGHT_API_KEY>' -- npx -y costwright-mcp

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers