Codedb
Zig code intelligence server and MCP toolset for AI agents. Fast tree, outline, symbol, search, read, edit, deps, snapshot, and remote GitHub repo queries.
What is Codedb?
Codedb is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to zig code intelligence server and mcp toolset for ai agents. fast tree, outline, symbol, search, read, edit, deps, snapshot, and remote github repo queries.
Zig code intelligence server and MCP toolset for AI agents. Fast tree, outline, symbol, search, read, edit, deps, snapshot, and remote GitHub repo queries.
This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Zig code intelligence server and MCP toolset for AI agents.
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx codedbConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Codedb
Codedb is a native Zig-powered code intelligence server and MCP toolset that gives AI agents fast, structured access to codebases. It provides 21 MCP tools covering file trees with symbol counts, function and struct outlines, symbol definitions, trigram-accelerated full-text search, inverted index word lookup, call graph traversal, dependency analysis, and even remote GitHub repository queries — all without cloning. Benchmarked at up to 1,340x faster than CLI invocation, it makes AI-driven code exploration and refactoring significantly more efficient.
Prerequisites
- A supported OS (Linux, macOS, or Windows)
- An MCP-compatible client such as Claude Code, Cursor, Windsurf, or Devin
- curl for the automated installer (or npm/npx for zero-install usage)
- CODEDB_NO_TELEMETRY=1 set if you prefer to disable anonymous usage analytics (optional)
Install codedb via the automated installer
Run the install script to download the native binary and auto-register codedb as an MCP server across supported AI coding tools.
curl -fsSL https://codedb.codegraff.com/install.sh | bashAlternatively, use npx for zero-install
Use the npm package codedeebee for a zero-install MCP server start. Note: the npm package name is codedeebee, but the CLI command remains codedb.
npx -y codedeebee mcpStart the MCP server for your project
Point codedb at your project directory. It will index the codebase and start a JSON-RPC/MCP server that AI clients can connect to.
codedb mcp /path/to/your/projectVerify the CLI is working
Run a quick tree and symbol search to confirm codedb is indexing your project correctly.
codedb tree /path/to/your/project
codedb outline src/main.zig
codedb find MyFunctionConfigure your MCP client
Add codedb to your Claude Desktop or Cursor configuration so AI agents can use its 21 tools during conversations.
Codedb Examples
Client configuration
Claude Desktop configuration using the codedeebee npm package for zero-install MCP server startup.
{
"mcpServers": {
"codedb": {
"command": "npx",
"args": ["-y", "codedeebee", "mcp", "/path/to/your/project"],
"env": {
"CODEDB_NO_TELEMETRY": "1"
}
}
}
}Prompts to try
Example prompts that leverage codedb's code intelligence tools.
- "Show me the file tree of this project with symbol counts for each file"
- "Find all definitions of the AuthManager symbol across the codebase"
- "Search for all call sites of the handleRequest function"
- "Show the dependency graph for the payments module including transitive deps"
- "Query the public GitHub repo github.com/golang/go for all exported interfaces in the net/http package"Troubleshooting Codedb
Install script fails or binary not found after installation
Ensure curl is installed and you have write access to the install directory (usually ~/.local/bin or /usr/local/bin). Add the install directory to your PATH, then verify with 'codedb --version'.
Symbol search returns no results for a known function
Run 'codedb tree /path/to/project' to confirm the project is indexed. codedb automatically excludes .env files, credentials, and key files — ensure your function is in a non-excluded source file.
codedb_remote tool returns errors for GitHub repos
Remote GitHub queries work on publicly indexed repositories. Private repos or very new repos may not be indexed yet. For private repos, run codedb locally with 'codedb mcp /path/to/cloned/repo'.
Frequently Asked Questions about Codedb
What is Codedb?
Codedb is a Model Context Protocol (MCP) server that zig code intelligence server and mcp toolset for ai agents. fast tree, outline, symbol, search, read, edit, deps, snapshot, and remote github repo queries. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Codedb?
Follow the installation instructions on the Codedb GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Codedb?
Codedb works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Codedb free to use?
Yes, Codedb is open source and available under the BSD-3-Clause license. You can use it freely in both personal and commercial projects.
Codedb Alternatives — Similar Search & Data Extraction Servers
Looking for alternatives to Codedb? Here are other popular search & data extraction servers you can use with Claude, Cursor, and VS Code.
TrendRadar
★ 58.0kA real-time hotspot monitoring and news aggregation assistant that provides AI-powered analysis of trending topics across multiple platforms via the Model Context Protocol. It enables users to track news and receive automated notifications through va
Scrapling
★ 52.7k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
PDF Math Translate
★ 33.9k[EMNLP 2025 Demo] PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero
GPT Researcher
★ 27.2kAn autonomous agent that conducts deep research on any data using any LLM providers
Agent Reach
★ 20.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Xiaohongshu
★ 13.7kMCP for xiaohongshu.com
Browse More Search & Data Extraction MCP Servers
Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Codedb in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Codedb?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.