Skip to content
MCP server

Benzi

Compiler-built code map of calls, data flow and class hierarchy for coding agents

Runs locallyStatus and history
Pricing
Free
Platforms
CLI, vscode
Runs
Locally
Version
0.1.7
Listing updated
3 days ago

About Benzi

Benzi is a free MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Benzi parses a codebase with tree-sitter into a resolved, queryable index before any question is asked. The MCP package exposes that index as tools so an agent can ask who calls a function, where a parameter's value originates and under what condition code runs, rather than grepping files.

Every edge carries a trust label: resolved (hard compiler evidence), candidate (a bounded set of possible targets, such as dynamic dispatch), observed (confirmed by a run), external (into a library), unresolved or unindexed, each with a reason. The site says precision is preferred over recall and nothing is guessed silently.

Ten languages are indexed: Python, JavaScript, TypeScript, Java, C#, C++, C, Go, Rust and Ruby, plus HTML, CSS and DOM-JS. Python is deepest and is the only one with the runtime tracer. The runtime tracer, parse-gated edits and blast-radius checks belong to Benzi's own VS Code and terminal agent and are not available over MCP. The index is built locally, so code is not uploaded, and the agent uses your own model key. Benzi is free during beta; the 82.6% SWE-bench Verified claim comes from the vendor's site.

Install

Run in a terminal

claude mcp add benzi -- uvx benzi-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "benzi": {
      "command": "uvx",
      "args": [
        "benzi-mcp"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "benzi": {
      "command": "uvx",
      "args": [
        "benzi-mcp"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "benzi": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "benzi-mcp"
      ]
    }
  }
}

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

{
  "mcpServers": {
    "benzi": {
      "command": "uvx",
      "args": [
        "benzi-mcp"
      ]
    }
  }
}

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

{
  "mcpServers": {
    "benzi": {
      "command": "uvx",
      "args": [
        "benzi-mcp"
      ]
    }
  }
}

What it does

Call and caller tracing
Walks proven call edges forward or in reverse to find a change's reach.
Value origin tracing
Follows a parameter back through callers to the literal it comes from.
Condition outline
Shows branches, loop exits and early returns interleaved with calls.
Labelled edge trust
Each edge is tagged resolved, candidate, observed, external, unresolved or unindexed.
Ten languages
Python, JavaScript, TypeScript, Java, C#, C++, C, Go, Rust and Ruby, plus HTML, CSS and DOM-JS.
Local indexing
The compiler runs on your machine and your code is not uploaded.

Good for

  • Find all callers of a function before changing its signature
  • Trace where a bad argument value originates
  • Understand when a branch of a method executes
  • Give an existing coding agent a compiler-backed map of a repository

Pricing

Free

Free during beta

Prices change. Check varianttech.net before you buy.

Benzi FAQ

Is the whole Benzi agent available over MCP?

No. The runtime tracer and gated edits are part of the VS Code and headless agent, not MCP.

Does my code leave my machine?

The site says the compiler and index run locally and the code is never uploaded.

What does it cost?

Free to use during beta.

How is the package installed?

From PyPI as benzi-mcp over stdio.

Is Benzi free?

Yes. Benzi is free to use.

How do I add Benzi to Claude Code?

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

What are the best alternatives to Benzi?

The closest alternatives to Benzi are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to Benzi

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools