iohub/codexray
Free仓库感知的本地 MCP,用混合语义 + 全文检索引擎实时理解代码库,按需为 AI 提供相关代码上下文。兼容 Claude Code 与 Codex。
About iohub/codexray
CodeXray is an open-source, repository-aware local MCP (Model Context Protocol) server that understands your codebase in real time using a hybrid semantic and full-text search engine. It builds a 4D knowledge graph combining call graphs, code vectors, commit vectors, and knowledge vectors, powered by Tree-sitter AST parsing for seven programming languages. Features include real-time incremental indexing (MD5 diff-based), automatic MCP registration for Claude Code and Codex CLI, and a local-first design with zero daemon and zero configuration overhead. It supports semantic search via dense vector embeddings with fallback to graph search when an embedding API is unavailable, and fuses results using RRF and Cross-Encoder reranking for high precision.
Key Features
Pros & Cons
- Open source and free with no licensing costs
- Local-first design ensures code never leaves the machine, enhancing privacy and security
- Real-time incremental indexing minimizes overhead after initial build
- Works offline for call graph and name search; graceful fallback when embedding API is unavailable
- Seamless integration with Claude Code and Codex CLI via auto-registration
- Zero daemon and zero configuration — starts and exits with the AI coding tool
- Supports multiple languages and provides rich knowledge graph (calls, commits, knowledge)
- Requires an external embedding API for full semantic search; without it, search is limited to graph-based matching
- Initial full-index build can be time-consuming for very large repositories
- Only supports 7 languages via Tree-sitter AST; less common languages are not covered
- Documentation is limited to the GitHub README; no dedicated website or extensive guides