Benzi
Lets your AI agent query a compiled map of your code: callers, data flow, references and class hierarchy.
175 stars on GitHubby Variant TechLicense NOASSERTIONUpdated 23 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add benzi -- uvx benzi-mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Who calls parse_config and what would break if I change its signature?
Trace where the bad value in total comes from.
What it is
Benzi parses your whole codebase with tree-sitter into a resolved, queryable map of symbols, calls, data flow and class hierarchy. Used as an MCP server, it serves that map as tools to the agent you already use. It supports Python, JavaScript, TypeScript, Java, C#, C++, C, Go, Rust and Ruby.
What it can do
get_callers: every call site that reaches a functioncall_treeandtrace_path: call chains between functionsbackflowandforwardflow: where a value came from or goesprofile: full view of one symbolget_definition,search_symbols,get_hierarchyskim_source: outline of a function bodyexternal_calls: which libraries a scope uses
When to use
- βΊWhen you want the agent to know who calls a function before it changes it
- βΊWhen you trace where a wrong value came from without opening every caller
- βΊWhen you explore an unfamiliar codebase through symbols and class hierarchy
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
smart-exploreSearches code intelligently and efficiently. It helps understand code structure, find functions, and explore projects without reading everything.gitnexus-debuggingHelps your agent trace a bug through a codebase, finding where an error starts and which code calls the failing part.codebase-memory-mcpHelps your agent explore unknown code, map architectures, and understand relationships between system parts. Useful for analyzing complexity and the impact of changes.Frequently asked questions
Is it free?
The readme says it is completely free to use during beta.
How do I add it?
Run pip install benzi, benzi-login, then claude mcp add --scope user benzi -- benzi-mcp.
What is the difference from the Benzi agent?
The agent adds a runtime tracer, gated edits and rollback. The MCP server serves only the map to your own agent.
Which languages are covered?
Ten, with Python the deepest and the only one with the runtime tracer.
Do I need a model key?
Not for the MCP server, since your own agent does the model calls.
Can I pin it to one repo?
Yes. Add the repo path after benzi-mcp in the command.
If it does not work
- βΊRun benzi-login --login with your email and type in the one-time code if tools fail to load.
- βΊStart your agent in the repo folder, or pass the repo path to benzi-mcp.
- βΊCheck that Python is 3.11 to 3.14.
5 new skills a week. 1 minute to read.