
codedb MCP Server: Setup for Claude Code, Cursor and Other Apps
Lets Claude Code, Cursor and other assistants search a code project by symbol, caller and dependency instead of scanning raw files.
codedb is a code index written in Zig. It builds an index of your project and answers questions about definitions, callers, call paths and imports. It has no edit tool, so your assistant keeps using its own edit tools.
It runs on your computer. The npm package downloads a native program from GitHub Releases when you install it. The project calls itself alpha, and anonymous usage counts are sent unless you turn that off.
Good for
- Developers using AI coding agents on mid-size or large repos
- Teams who want fewer tokens spent on grep output
- People who want code context to stay on their own machine
Works in
12 should work
Tap an app to see how to set it up and any known problems.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Client does not support this transport.
Client does not support this transport.
Install codedb MCP
Claude Code
- 1
Copy this prompt.
Add the codedb MCP server to Claude Code. Run this command: claude mcp add codedb -- npx -y codedeebee mcp Then check that it loaded and tell me if I need to sign in or restart.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Requires Node.js, Node.js 18+, macOS or Linux.
The generated npx line has to end in mcp; the plain package name only prints the launcher. The package downloads a native program on install, so it needs internet access once. It needs a project root: if your editor starts MCP servers from a folder like /Applications, give the server your project path. The README's shell installer registers every client it finds on macOS and Linux instead. It does not support Windows via npm yet.
Built from the package data we hold. Not yet tested by us.
Tools
Shows the whole project's file tree
Lists the project's files with language, line counts and symbol counts, collapsing huge folders. Best used once to get oriented in an unfamiliar codebase.
Try: “Show me the file tree of this project.”
Files ·
codedb_treeLists the functions and types in one file
Returns the symbols in a file with line numbers, far smaller than reading the file. A skeleton option shows just each declaration.
Try: “Outline src/server.ts.”
Files ·
codedb_outlineFinds where something is defined
Looks up where a function, struct or class is defined across the project.
Try: “Where is AgentRegistry defined?”
Files ·
codedb_symbolSearches code text
Runs a ranked text search over the project index, with regex and scoping options, using far fewer tokens than raw grep output.
Try: “Search for handleAuth in this project.”
Files ·
codedb_searchLooks up one exact identifier
Returns every file and line where one exact word appears, using a prebuilt word index.
Try: “Where does the word Store appear?”
Files ·
codedb_wordLists every place a symbol is called
Finds all call sites of a function or symbol in one step.
Try: “Who calls parseConfig?”
Files ·
codedb_callersFinds the call chain between two symbols
Returns the shortest resolved chain of calls that leads from one symbol to another.
Try: “How does main reach handleRequest?”
Files ·
codedb_callpathShows a symbol and who uses it
Returns a symbol's definition body together with every call site in one answer.
Try: “Explain parseConfig and show its callers.”
Files ·
codedb_explainCollects code for a task you describe
Takes a plain-language task and returns one compact block of definitions, relevant code, related files and snippets. The README says it can use a remote embedding of your task text unless you pass semantic=local.
Try: “Gather the code I need to add rate limiting to the API.”
Files ·
codedb_contextShows recently changed files
Lists the files changed most recently, newest first, to see where work is happening.
Try: “What files changed most recently?”
Files ·
codedb_hotShows what imports what
Returns the dependency graph for a file: who imports it by default, or what it imports. Useful for checking the reach of a change.
Try: “Which files import src/store.ts?”
Files ·
codedb_depsReads a file or a line range
Returns file contents, optionally limited to a line range, with a hash so unchanged files can be skipped.
Try: “Read lines 40 to 90 of src/main.zig.”
Files ·
codedb_readLists files changed since a point
Returns the files changed since a sequence number you got from the status tool.
Try: “What changed since sequence 120?”
Files ·
codedb_changesShows the index state
Reports file count, current sequence number and scan phase of the index.
Try: “Is the index up to date?”
Read ·
codedb_statusDumps the whole index as JSON
Returns a very large JSON of the entire index, meant for caching rather than everyday exploration.
Try: “Export the full index snapshot.”
Files ·
codedb_snapshotLists indexed projects on this machine
Shows every project codedb has indexed locally, with path and whether a snapshot exists.
Try: “Which projects are indexed?”
Files ·
codedb_projectsIndexes a folder and saves a snapshot
Rebuilds the index for a local folder and writes a codedb.snapshot file there, refreshing a running daemon for that project.
Try: “Index /Users/me/myproject.”
Write ·
codedb_indexFinds files by a fuzzy name
Matches a typo-tolerant name against indexed file paths. It searches file names only, not file contents.
Try: “Find the file named routs.”
Files ·
codedb_findChains several lookups in one request
Runs a pipeline of find, search, filter, deps, outline, read, sort and limit steps, each feeding the next.
Try: “Find test files that import store.zig and outline them.”
Files ·
codedb_queryMatches file paths with a pattern
Returns indexed paths matching a glob such as src/**/*.zig, sorted alphabetically.
Try: “List all Markdown files under docs.”
Files ·
codedb_globLists a folder's contents
Shows one folder's direct children, folders first, with language and line counts.
Try: “List the src directory.”
Files ·
codedb_lsLists a folder live from disk
Lists a folder straight from the file system, honoring .gitignore, so it works without an index.
Try: “List the contents of the repo root.”
Files ·
codedb_list_dir
Read from the source code
Permissions
medium risk · 6 things to watch
Medium risk
It reads your project files and keeps an index on disk, and it sends anonymous usage counts to the project by default. Turn that off before you use it on private code.
What it can do
- Read your data
- Create and change things
- Delete things
- Read-only mode
Watch out for
Usage counts are sent by default
The README says anonymous telemetry is on by default and syncs tool-call counts, timing and startup stats to the project's endpoint, not source code or paths. Set CODEDB_NO_TELEMETRY=1 or pass --no-telemetry to turn it off. github.com
codedb_context may send your task text out
The README says it can use a remote embedding of the task text. Pass semantic=local to keep that call on your device. github.com
It downloads a program when you install
The npm package fetches a native binary from GitHub Releases on install and checks its SHA256 hash against the release's checksums file. github.com
codedb_index writes a snapshot file
It saves codedb.snapshot in the folder you index. Add it to .gitignore if you do not want to commit it. github.com
Tool descriptions push the assistant to use it first
Several tool descriptions say things like reach for this FIRST or replaces grep. That nudges the assistant away from its own search tools. github.com
The install script edits your client configs
The shell installer adds codedb, and by default the hosted DeepWiki server, to every supported client it finds. Set CODEDB_INSTALL_DEEPWIKI=0 to skip DeepWiki. github.com
Security advisories
No published security advisories as of Nov 1, 2026.
Technical details
| Talks to | codedb analytics endpoint (anonymous usage counts). remote embedding service for codedb_context unless semantic=local. mcp.deepwiki.com if you use the install script |
|---|---|
| Sign-in and keys | No credentials. |
Questions
Is the codedb MCP server official?
It is the project's own server, made by justrach. It is not tied to any other app, so there is no separate vendor server to compare it with.
Does it need an API key?
No. It runs locally and needs no account.
Which tools does my assistant see?
By default, coding-agent tools see five of the 22: codedb_context, codedb_explain, codedb_callpath, codedb_list_dir and codedb_status. Other tools stay callable but are not advertised, and chat apps with rich blocks see the full list. Set CODEDB_TOOLS_PROFILE=full to advertise all of them.
Does it send my code anywhere?
The README says telemetry covers counts, timing and startup stats only, not code, file contents, paths or queries. The codedb_context tool can use a remote embedding of the task text, which you can avoid with semantic=local.
How do I turn telemetry off?
Set CODEDB_NO_TELEMETRY=1 in the server's environment, or start it with the --no-telemetry flag.
Does the npm route work on Windows?
Not yet. The README says the published npm package predates the Windows release file, so use the PowerShell installer until the next release.
Can it edit my files?
No. The README says it has no edit tool. The only write is the snapshot file from the index tool.
Information
updated Nov 2, 2026
- Publisher
- Community
- Package
codedeebee- Registry
- npm
- Transport
- stdio
- Auth
- None
- Version
- 0.2.5843
- License
- BSD-3-Clause
- Last commit
- Oct 26, 2026
- Open issues
- 4
Sources
Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.