DEV.co
MCP Servers · justrach

codedb

codedb is a code intelligence server written in Zig that indexes codebases for fast structural search, symbol lookup, and dependency analysis. It operates as an MCP (Model Context Protocol) server to provide AI agents with code context without editing capabilities.

Source: GitHub — github.com/justrach/codedb
1.3k
GitHub stars
79
Forks
Zig
Primary language
BSD-3-Clause
License (OSI-approved)

Key facts

Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.

FieldValue
Repositoryjustrach/codedb
Ownerjustrach
Primary languageZig
LicenseBSD-3-Clause — OSI-approved
Stars1.3k
Forks79
Open issues9
Latest releasev0.2.5828 (2026-07-05)
Last updated2026-07-06
Sourcehttps://github.com/justrach/codedb

What codedb is

A Zig-based indexing engine using trigram-accelerated full-text search, inverted word indexes, and structural parsing for 21 languages. Exposes 21 MCP tools over JSON-RPC 2.0 stdio, with optional HTTP API on localhost:7719, file watching, and atomic line-range edits as a fallback mechanism.

Quickstart

Get the codedb source

Clone the repository and explore it locally.

terminalbash
git clone https://github.com/justrach/codedb.gitcd codedb# follow the project's README for install & configuration

Need it deployed, integrated, or customized instead? DEV.co ships production installs.

Best use cases

AI agent code navigation in polyglot teams

Rapidly surface symbol definitions, callers, and dependency graphs across Zig/C++/Python/TypeScript/Rust/Go codebases during agentic workflows without requiring editor state.

Claude/Cursor/Gemini integration for code context

Auto-registers as MCP server in multiple IDE/AI platforms; agents access 21 query tools with O(1) word lookup and 538x faster trigram search than ripgrep.

Structured outline and dependency analysis for large monorepos

Extract file outlines, reverse dependency graphs, and transitive imports in a single query for task-scoped context composition.

Implementation considerations

  • MCP registration is automated by installer for Claude, Cursor, Gemini, Codex, Windsurf, Devin; verify integration in each tool's config file after install.
  • Requires Zig 0.16 to build from source; pre-built binaries available for macOS ARM64 (codesigned), macOS x86_64, Linux ARM64, Linux x86_64.
  • No authentication on HTTP API; isolate `codedb serve` behind reverse proxy or network ACLs in shared environments.
  • File watching uses polling with filtered directory walking; may lag on high-change environments; consider manual index refreshes or increased poll intervals.
  • Sensitive files (`.env`, credentials, keys) are blocked at indexing time; verify `.codedbrc` for custom path exclusions in your team setup.

When to avoid it — and what to weigh

  • Production code editing at scale — codedb's editor fallback (`codedb_edit`) is intentionally minimal; use it only for trivial line-range changes. Complex refactoring should use native IDE tools.
  • Strict single-language ecosystems — Parser support varies: full structural parsing for Zig/C++/Python/TypeScript/Rust/Go, but lightweight regex-based outlines for Java/Kotlin/Svelte and no support for COBOL/Objective-C/Swift.
  • Remote-first or multi-tenant deployments — HTTP server binds to localhost only; no authentication layer. Not suitable for shared team servers or cloud sandboxes without reverse-proxy hardening.
  • Stable API guarantees — Project is marked alpha; snapshot format and internal API may change between releases. Requires pinning versions in production workflows.

License & commercial use

BSD 3-Clause License. Permissive OSI-approved license allowing commercial use, modification, and distribution with attribution and liability disclaimers.

BSD 3-Clause is a permissive open-source license clearly allowing commercial use without royalties or licensing restrictions. No proprietary license alternatives listed. Internal use and hosted deployment permitted under standard BSD terms.

DEV.co evaluation signals

Editorial assessment — not user reviews. Directional, with an explicit confidence level.

SignalAssessment
MaintenanceActive
DocumentationStrong
License clarityClear
Deployment complexityLow
DEV.co fitStrong
Assessment confidenceHigh
Security considerations

HTTP server binds to localhost only; no authentication layer present. Sensitive files (.env, credentials) are blocked during indexing. macOS ARM64 binary is codesigned and notarized; x86_64 slice temporarily unsigned. SHA256 checksum verification in installer. No known CVEs listed. For multi-user or remote-access scenarios, deploy behind authenticated reverse proxy and validate all file exclusion rules.

Alternatives to consider

GitHub Copilot / OpenAI Code Interpreter

Hosted code intelligence; no local deployment or control; different architectural approach (cloud-based vs. local indexing). Copilot integrates directly into IDEs; codedb is agent-first and MCP-native.

Sourcegraph / CodeSearch (self-hosted)

Enterprise-grade code search with fine-grained auth; much heavier deployment footprint; more language/platform integrations. codedb is lightweight, Zig-native, MCP-focused for AI agents.

ripgrep + tree-sitter bindings

Lower-level building blocks; requires manual composition for symbol lookup and dependency graphs. codedb pre-bundles these capabilities into MCP tools; 538x faster on pre-indexed queries.

Software development agency

Build on codedb with DEV.co software developers

Install codedb in seconds and unlock 21 MCP tools for symbol lookup, dependency analysis, and fast trigram search across polyglot codebases. Free, BSD 3-Clause license, auto-registers in Claude, Cursor, and Gemini.

Talk to DEV.co

Related open-source tools

Surfaced by semantic similarity across the DEV.co open-source index.

Related on DEV.co

Explore the category and the services that help you build with it.

codedb FAQ

Does codedb edit code files?
Minimally. `codedb_edit` is a fallback tool for atomic line-range changes (str_replace, insert, delete). The project design prioritizes read-only context (symbols, search, deps); prefer your IDE's native refactoring for complex edits.
Which languages does codedb fully support?
Full structural parsing: Zig, C/C++, Python, TypeScript/JavaScript, Rust, Go, PHP, Ruby, HCL, R, Dart/Flutter. Lightweight outline support (regex-based): Java, Kotlin, Svelte, Vue, Astro, shell, CSS/SCSS, SQL, protobuf, Fortran, LLVM IR, MLIR, TableGen. No Objective-C, Swift, COBOL.
Can I run codedb on a shared team server?
Not out-of-the-box. HTTP server binds to localhost and has no auth layer. Deploy it behind a reverse proxy with authentication (e.g., OAuth, mTLS) if multi-user access is required. For teams, recommend local per-developer installation via npm or installer script.
What is the alpha status guarantee?
MCP protocol and JSON-RPC interface are stable (JSON-RPC 2.0 over stdio). API may change; snapshot format may not be backward-compatible between releases. Suitable for production workflows but version pinning and testing on updates are recommended.

Custom software development services

From first prototype to production, DEV.co delivers software development services around tools like codedb. Our software development agency staffs experienced software developers and web developers for custom software development, web development, integrations, and ongoing support across mcp servers and beyond.

Add Code Intelligence to Your AI Workflows

Install codedb in seconds and unlock 21 MCP tools for symbol lookup, dependency analysis, and fast trigram search across polyglot codebases. Free, BSD 3-Clause license, auto-registers in Claude, Cursor, and Gemini.