# Open Codebase Index

> Index a codebase locally, search by meaning, and trace code relationships.

- **URL**: https://followmcp.com/en/servers/open-codebase-index
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 236
- **FMRS Score**: 60/100 (Grade C)
- **Source**: https://github.com/Helweg/open-codebase-index

- **Runtimes**: Node.js 22.22+
- **Auth**: Optional API key

## Overview
Open Codebase Index is a local semantic code index for OpenCode, Jcode, Pi, Codex, Claude Code, and other MCP clients. It combines embeddings, BM25 keyword search, branch filtering, symbol lookup, and a call graph to support code discovery and navigation. Its index uses SQLite, usearch vectors, and a BM25 inverted index. TypeScript handles host integration and indexing orchestration; the Rust NAPI module handles parsing, vector storage, SQLite operations, BM25 indexing, hashing, and call extraction.

## Best for
- Developers who need semantic and keyword-based retrieval over a local codebase.
- Users who want to follow search results through definitions and call-graph evidence.
- Users of OpenCode, Jcode, Pi, Codex, Claude Code, or other MCP clients listed in the README.

## Not for
- Users who need a cloud-hosted index or cloud semantic history search; the README describes GitHub history as local lexical history.
- Users seeking MCP tools for tasks unrelated to codebase search.
- Users expecting a complete semantic index without configuring an embedding provider; the README says the first indexing run creates embeddings.

## Required permissions
- Access to the codebase files being indexed is needed for discovery, parsing, and indexing.
- Embedding providers require the relevant service to be available; the README lists Ollama, OpenAI, Google, and custom OpenAI-compatible endpoints.
- Optional GitHub history sync uses existing gh authentication; the README says it requires REST/GraphQL access on the selected GitHub server.

## Risks
- Search results depend on indexed content, parser coverage, embedding-provider latency, cache reuse, and indexing limits.
- The README says ordinary status checks do not scan source files; use a freshness check when source or HEAD freshness matters.
- External reranking submits candidates after local filtering and evidence classification; consider the provider's data handling when configuring an external service.
- GitHub discussions are treated as untrusted evidence, not instructions; current code remains authoritative.
