codedb
Active·★ 1.2k·BSD-3-Clause·Updated 2026-05-29
Zig code intelligence server and MCP toolset for AI agents. Fast tree, outline, symbol, search, read, edit, deps, snapshot, and remote GitHub repo queries.
Codedb is a high-performance code intelligence server designed for AI agents, built with Zig. It offers structural indexing, trigram and word search, dependency graph analysis, and file watching with zero external dependencies, providing sub-millisecond query latency via its MCP or HTTP interfaces.
#Code Intelligence#AI Agents#Structural Indexing#Trigram Search#Dependency Graph#File Watching#MCP Protocol#Zig Language
01
Features
01Structural Indexing & Outlines: Parses and indexes code to provide structural outlines (functions, structs, imports) for various languages.
02Ultra-fast Search: Utilizes trigram search for full-text queries and an O(1) inverted word index for identifier lookups, outperforming traditional tools like ripgrep.
03Dependency Graph & Version Tracking: Builds a reverse dependency graph and tracks atomic line-range edits with versioning for code evolution analysis.
04Model Context Protocol (MCP) & HTTP APIs: Serves code intelligence through a high-performance JSON-RPC 2.0 based MCP server or a standard HTTP API.
05Zero Dependencies & Cross-platform: Built entirely in Zig with no external dependencies, compiled into a single binary for macOS (ARM/x86) and Linux (ARM/x86).
02
Compatibility
Zig
Core Language
Verified via docs
macOS
Platform
Verified via docs
Linux
Platform
Verified via docs
Python
Parser
Verified via docs
TypeScript/JavaScript
Parser
Verified via docs
Rust
Parser
Verified via docs
03
Quick start
1
$ curl -fsSL https://codedb.codegraff.com/install.sh | bash
04
Use cases
↳Powering AI Agents: Integrates seamlessly with AI agents like Claude, Codex, Gemini, and Cursor to provide them with deep code understanding.
↳High-performance Codebase Exploration: Enables rapid navigation, symbol lookup, and structural analysis within large projects.
↳Remote Code Intelligence: Query public GitHub repositories without local cloning, accessing code intelligence via the `codedb_remote` tool.
↳Automated Code Analysis Workflows: Use CLI or API for automated tasks like finding recently modified files, checking symbol definitions, or performing regex searches.
↳Developer Tooling & Integration: Serves as a fast backend for custom developer tools or IDE integrations requiring deep code context.
05
Alternatives
Brave Search MCP★ 86.5k
Allow your AI Agent to search the real-time internet using Brave Search API. Essential for getting up-to-date information.
GitHub MCP Server★ 30.3k
GitHub's official MCP Server. Allows AI agents to interact directly with your GitHub repositories (read files, search code, issues).
CopilotKit★ 31.8k
React UI + elegant infrastructure for AI Copilots, AI chatbots, and in-app AI agents. The Agentic Frontend.
FastMCP★ 25.4k
The fast, Pythonic way to build MCP servers and clients. Designed by the Pydantic team for type safety and speed.
Related searches
Comments
Log in to leave a comment
No comments yet. Be the first!