Structural code intelligence over MCP: symbols, callers, imports and blast radius, 40+ languages.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A structural code intelligence engine that runs as an MCP server for AI coding agents.
It indexes your codebase with tree-sitter (40+ languages), builds a trigram full-text index, an inverted word index, and a dependency graph β then exposes them through 16 MCP tools.
Every session on a repository speaks plain stdio MCP, as before. Behind that, they share one index: the tree is parsed once, watched once and written once, however many agents are attached. Eight sessions on one repository used to be eight copies of the same index, eight file watchers and eight writers of the same snapshot; measured on a 720-file project, each session went from 87 MB to 7 MB, against one shared 77 MB daemon.
AI coding agents spend tokens reading entire files. codeindex answers structural questions β symbol outlines, definitions, callers, blast radius, dependency chains β in a few hundred tokens instead of thousands.
One plan_change call returns: where a symbol is defined, every call site, the file's architectural role (god module / stable core / island / driver), hardcoded literals to check, and the full transitive blast radius if the file changes.
The shortest path, if you have Node 18+. Nothing else to install, no key, no config β the package is a 4 KB wrapper that fetches the binary for your platform and verifies it against the published checksums:
No Node, or you want the skill and the hook as well:
Docker, for hosts that install MCP servers as images. The workspace is bind-mounted read-only; codeindex never writes to it:
Register with your AI agent:
Every listing points at the same server: npm @munhq/codeindex, the official MCP
registry as io.github.munhq/codeindex, and Smithery as munhq/codeindex.
The next time your agent starts, codeindex indexes your project in the background and serves structural queries.
| Tool | What it does |
|---|---|
status | Index stats: file count, symbol count, indexing state, token savings %, the indexed workspace and whether a watcher is live |
search | Trigram-accelerated full-text search across all indexed files |
find_symbol | Find symbol definitions (functions, structs, classesβ¦) by name |
find_word | Exact word/identifier lookup in the inverted word index |
find_callers | Approximate callers of a symbol (heuristic, no full name resolution) |
get_outline | Structural outline of a file (symbols, line counts) |
get_tree | Directory tree with file metadata |
get_imports | What files does a given file import/depend on |
get_imported_by | Reverse dependencies β who imports this file |
get_change_impact | Transitive blast radius: what breaks if a file changes |
plan_change | Full refactor plan for a symbol or file β definitions, callers, file role, literals, blast radius |
get_hot_files | Recently changed files sorted by recency |
read_file | Read file contents with optional line range |
read_symbol | Read just a symbol's source code (with optional context lines) |
index_workspace | Index or re-index a workspace directory |
analyze | Run one of 16 code analyses (see below) |
analyze tool)| Analysis | What it finds |
|---|---|
security | Hardcoded secrets, SQL injection patterns, unsafe blocks, eval usage |
dead_code | Unreferenced files and symbols |
unwrap_audit | .unwrap() / panic-prone error handling (Rust) |
test_coverage | Files without test coverage |
architecture | Architectural smells β god modules, circular deps, islands |
crossref | Cross-file symbol references |
type_drift | Type signature mismatches across modules |
db_schema | Database schema drift between migrations and code |
migration_parity | Missing migrations for schema changes |
manifest_compliance | package.json / Cargo.toml / go.mod compliance issues |
literal_scan | Hardcoded URLs, IPs, ports, absolute paths, TODOs |
coupling | Module coupling metrics |
cycles | Circular dependency detection |
duplication | Reinvented free functions β the same job written twice |
clones | Copy-pasted function bodies, ignoring names and whitespace |
health | Roll-up of the analyses above into one index-health report |
40+ languages via tree-sitter: Rust, Python, TypeScript/TSX, Go, Zig, C, C++, Java, Ruby, Bash, C#, Kotlin, Lua, Scala, Elixir, R, Swift, Dart, Haskell, TOML, JSON, YAML, HTML, CSS, SCSS, SQL, HCL, Dockerfile, Markdown, Nix, Make, and more.
A server that registers without telling an agent when to reach for it stays idle, and an idle index saves nothing however cheap its calls are. The plugin ships three things for that, in the order they act:
Bash as well as
Read/Grep/Glob, because a permission mode that routes file work through
the shell is where most scans actually happen.Advice loses to habit, so the narrow case where the index is strictly better is
refused rather than argued with: an identifier search that is the whole command
line, in a project that has been indexed before. It never refuses a file read β
the bytes are required before an Edit β never refuses a line that also builds
or tests, and stops refusing after three times in a session, so it can never be
the reason a session cannot proceed.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/codeindex)<a href="https://allmcps.com/mcp/codeindex"><img src="https://allmcps.com/api/badge/codeindex?style=directory" alt="Codeindex on AllMCPs" /></a>