Skip to content
MCP server

Kamanu

Checks whether an AI agent's spending limit really holds, and how sure it is

Runs locally

Kamanu is an open-source MCP server for agent testing. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, API, Linux
Runs
Locally
Version
0.1.1
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add kamanu -- uvx kamanu

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "kamanu": {
      "command": "uvx",
      "args": [
        "kamanu"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "kamanu": {
      "command": "uvx",
      "args": [
        "kamanu"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "kamanu": {
      "command": "uvx",
      "args": [
        "kamanu"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "kamanu": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "kamanu"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add kamanu -- uvx kamanu

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.kamanu]
command = "uvx"
args = ["kamanu"]

Codex setup guide

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

{
  "mcpServers": {
    "kamanu": {
      "command": "uvx",
      "args": [
        "kamanu"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "kamanu": {
          "command": "uvx",
          "args": [
            "kamanu"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user kamanu uvx -- kamanu

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "kamanu": {
          "command": "uvx",
          "args": [
            "kamanu"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "kamanu": {
          "command": "uvx",
          "args": [
            "kamanu"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "kamanu": {
          "command": "uvx",
          "args": [
            "kamanu"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "kamanu": {
          "command": "uvx",
          "args": [
            "kamanu"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "kamanu": {
          "command": "uvx",
          "args": [
            "kamanu"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "kamanu": {
          "command": "uvx",
          "args": [
            "kamanu"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "kamanu": {
          "command": "uvx",
          "args": [
            "kamanu"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

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

About Kamanu

Kamanu tests a spending cap, rate limit or approval gate by working out the most money that can actually be spent under it and the most budget that can be stranded when a payment that fits is refused. It replays the shortest event sequence behind each figure, so a result can be inspected rather than taken on trust.

Each verdict carries a confidence level tied to its weakest link, from a machine-checked proof of the model down to a plain test pass or an assumed constant. Results are written to a chained receipt on the user's disk, and signed records can be checked offline later.

It suits teams building payment controls for autonomous agents, card-program designers and developers who want to lint a single-threshold policy before it goes live. It runs as a Python command-line tool and as MCP servers that agents can call directly.

What it does

Maximum spendable amount
Reports the most that can really be spent under a limit, printed beside the stated cap.
Stranded budget measurement
Shows how much headroom is left unused when a payment that should fit is refused.
Replayable failure traces
Produces the shortest event sequence that reproduces each counted result.
Confidence levels on verdicts
Labels every verdict with a level set by its weakest supporting assumption.
Signed, verifiable records
Issues receipts that can be rechecked offline with the included verifier.
Single-threshold policy linting
Decides one-threshold policies quickly without installing a model checker.

Good for

  • Check whether a per-agent spending cap can be exceeded under retries and concurrent payments
  • Find cases where a correct spending limit wrongly blocks a legitimate agent payment
  • Let an agent ask whether a payment fits its remaining budget before attempting it
  • Review card-program spending limits against their issuer-style configuration
  • Gate pull requests that change payment policy files in a GitHub workflow

Pricing

Open source

Open source under Apache 2.0; paid human checks are offered separately.

Kamanu FAQ

Does Kamanu move or hold money?

No. It reports what a limit allows and does not enforce anything at runtime.

Does Kamanu need a network connection?

Scans run locally and upload nothing. Verifying the proofs and running the scan need only Python and a clone of the repository.

How is Kamanu installed?

With pip install . from a clone, or pip install kamanu. Requires Python 3.11 or later; the only dependency is PyYAML.

How are MCP servers run?

Through uvx kamanu mcp lint, uvx kamanu mcp coach or uvx kamanu mcp serve, configured in any MCP client that uses an mcpServers file.

Is Kamanu free?

Yes. Kamanu is open source, so you can use and self-host it for free.

How do I add Kamanu to Claude Code?

Run this command in your terminal: claude mcp add kamanu -- uvx kamanu

What are the best alternatives to Kamanu?

The closest alternatives to Kamanu are Kamanu lint, Kamanu coach and Knos.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers