PlugWiki
codedb logo

codedb MCP Server: Setup for Claude Code, Cursor and Other Apps

CommunityLocal
Getnpmcodedeebeejustrach/codedb

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.

Install codedb MCP

Claude Code

  1. 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. 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_tree

  • Lists 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_outline

  • Finds where something is defined

    Looks up where a function, struct or class is defined across the project.

    Try: “Where is AgentRegistry defined?”

    Files · codedb_symbol

  • Searches 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_search

  • Looks 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_word

  • Lists every place a symbol is called

    Finds all call sites of a function or symbol in one step.

    Try: “Who calls parseConfig?”

    Files · codedb_callers

  • Finds 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_callpath

  • Shows 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_explain

  • Collects 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_context

  • Shows 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_hot

  • Shows 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_deps

  • Reads 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_read

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 tocodedb 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 keysNo 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

WebsiteGitHubnpmChangelogIssues

Sources

Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.

Show all 3
  1. README.md · github.com
  2. mcp.zig · github.com
  3. mcp.md · github.com

Facts from the official MCP registry, GitHub, npm, PyPI and the Docker catalog. Updated Nov 2, 2026.