codebase-visualizer
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@codebase-visualizertrace the call path of handle_request"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
codebase-visualizer
Bridge the gap between AI-generated code and the engineer who has to own it. Turn any codebase into a queryable, visualizable code graph — then review what the AI built with a guided walkthrough, a persistent understanding ledger, and a comprehension heatmap that makes never-reviewed code visibly warm until a human owns it.
codegraph review --base main # walk what the AI just built, stop by stopEach stop: the plain-language WHAT, the agent's recorded WHY, the actual code and diff, callers/callees — highlighted live in the 3D city. "Got it" marks are hash-bound: if the code changes again, your understanding expires with it. The header tracks % understood; the heatmap shows exactly where comprehension debt lives.
Ships three surfaces over one graph:
CLI —
codegraph index | trace | query | diff | describe | why | export | ui | doctorMCP server —
search_graph,trace_path,query_graph,get_architecture,diff_overlay,describe_component,set_description,record_reason,why_trace(names mirror the codebase-memory-mcp vocabulary)3D code city (default) — a single self-contained WebGL scene: orbit/pan/zoom around LOC-scaled buildings zoned by role, click any component to expand it in place into its files, click a file to expand its functions (complexity-tinted), animated data-flow dots, shareable hash state (
#inside=a,b&file=comp:path&trace=N&focus=symbol), and a PR diff mode with +N/−M badges2D isometric map (
--format isometric/ui --flat) — the lightweight no-WebGL fallback with the same zones, flow dots, and trace stepping
Indexing is powered by CodeGraphContext (tree-sitter, 26 languages, embedded FalkorDB) behind an adapter seam, so the engine is swappable.
Install
pip install codegraphcontext # engine
pip install codebase-visualizer # this package (or: pip install -e . from a clone)Related MCP server: code-context-mcp
Quick start
cd your-repo
codegraph index # build the graph
codegraph trace handle_request # who calls it, what it calls
codegraph diff main # line-level ± per symbol vs main
codegraph ui # open the 3D code city
codegraph ui --base main # city with PR diff badges
codegraph ui --flat # 2D isometric map (no WebGL)MCP (Claude Code)
claude mcp add code-graph -- codegraph mcp-serve --root /path/to/repoOverlay data (committable)
your-repo/.codegraph/
├── descriptions/<symbol>.md # plain-language component descriptions, cross-linked
└── reasons.jsonl # why symbols exist / changed, per traceDescriptions carry a content hash; codegraph index flags them stale when the underlying symbol changes. codegraph describe --list-missing + --list-stale drive an agent loop that keeps the whole codebase described.
Share safety
codegraph export --format isometric --scrub scrubs sensitive strings (secrets, cloud identifiers) from the exported map before you share it.
Vendored dependencies
The 3D city embeds a prebuilt three.js + OrbitControls bundle (viz/vendor/three-bundle.min.js, MIT). Regenerate it with cd scripts && npm install && node build-vendor.mjs — node is needed only for that.
License
MIT (three.js is also MIT; its notice ships in the vendored bundle banner)
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityFmaintenanceAn MCP server that transforms codebases into intelligent, queryable knowledge bases, enabling AI assistants to perform semantic search, explore architecture, and analyze code relationships.166
- Alicense-qualityCmaintenanceMCP server for semantic code search and dependency graph analysis. Indexes codebases into a knowledge graph with vector embeddings for AI-powered code understanding.9MIT
- Flicense-qualityBmaintenanceMCP server for indexing source code from repositories into a Neo4j graph database and enabling Graph RAG-based search and traversal of functions via natural language queries.
- Alicense-qualityBmaintenancePrivate, local-first code intelligence MCP server that builds a static graph of repositories and exposes search, architecture, impact analysis, and review tools via MCP.MIT
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
A MCP server built for developers enabling Git based project management with project and personal…
MCP server for generating rough-draft project plans from natural-language prompts.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/NicoV7/codebase-visualizer'
If you have feedback or need assistance with the MCP directory API, please join our Discord server