A multi-view data system for serving repository context to coding agents.
- ✓Open-source license (Apache-2.0)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Mature repo (>1y old)
- ✓Documented (README)
claude mcp add codenib -- python -m codenib{
"mcpServers": {
"codenib": {
"command": "python",
"args": ["-m", "pip"]
}
}
}MCP Servers overview
<!--
SPDX-FileCopyrightText: 2025-2026 CodeNib Contributors
SPDX-License-Identifier: Apache-2.0
-->
<!-- mcp-name: ai.codenib/codenib -->
<div align="center">
<img src="https://raw.githubusercontent.com/sysevol-ai/CodeNib/main/assets/codenib_logo.svg" alt="CodeNib" width="560">
<h1>Searchable codebase wikis and context for coding agents</h1>
<p>
Point it at any repo, get a searchable Wiki and an MCP server for your coding agent.
</p>
<p>
<a href="https://arxiv.org/abs/2607.25431"><img src="https://img.shields.io/badge/arXiv-2607.25431-b31b1b.svg?logo=arxiv&logoColor=white" alt="arXiv 2607.25431"></a>
<a href="https://huggingface.co/papers/2607.25431"><img src="https://img.shields.io/badge/Hugging_Face-%232_Paper_of_the_Day-FFD21E.svg?logo=huggingface&logoColor=black" alt="Hugging Face: #2 Paper of the Day"></a>
</p>
<p>
<a href="#quickstart">Quickstart</a>
·
<a href="https://codenib.ai">Website</a>
·
<a href="https://discord.gg/ySer6CGn4">Discord</a>
·
<a href="https://docs.codenib.ai/">Documentation</a>
·
<a href="https://docs.codenib.ai/news/">News</a>
·
<a href="https://docs.codenib.ai/codegraph/">CodeGraph</a>
·
<a href="https://docs.codenib.ai/mcp/">MCP</a>
·
<a href="https://docs.codenib.ai/agent_integrations/">Agent Integrations</a>
·
<a href="https://docs.codenib.ai/language_capabilities/">Languages</a>
</p>
<p>
<a href="https://github.com/sysevol-ai/CodeNib/actions/workflows/ci-full.yml"><img src="https://github.com/sysevol-ai/CodeNib/actions/workflows/ci-full.yml/badge.svg" alt="CI"></a>
<a href="https://pypi.org/project/codenib/"><img src="https://img.shields.io/pypi/v/codenib.svg?cacheSeconds=300" alt="PyPI version"></a>
<a href="https://docs.codenib.ai/codegraph/#one-command-setup"><img src="https://img.shields.io/badge/Claude_Code-D97757?logo=claude&logoColor=fff" alt="Claude Code supported"></a>
<a href="https://docs.codenib.ai/codegraph/#one-command-setup"><img src="https://img.shields.io/badge/Codex-000?logo=openai&logoColor=fff" alt="Codex supported"></a>
<a href="https://github.com/sysevol-ai/CodeNib/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-Apache_2.0-blue.svg" alt="License: Apache 2.0"></a>
<a href="https://github.com/sysevol-ai/CodeNib/blob/main/pyproject.toml"><img src="https://img.shields.io/badge/Python-3.10%2B-3776AB.svg" alt="Python 3.10+"></a>
</p>
</div>
```bash
python -m pip install "codenib[graph,mcp]"
codenib codegraph init /path/to/your/repo
```
That one command detects the repository languages, installs the pinned
package-level graph providers it can manage, builds BM25 plus a source-linked
symbol graph, and registers the resulting MCP server with installed Codex and
Claude Code clients. It is local, open source, requires no model or cloud, and
does not write configuration or indexes into the target repository.
## System Architecture
| Layer | Responsibility |
|---|---|
| View compiler | Chunk source and materialize BM25, dense, graph, and navigation views; reuse current artifacts and atomically rebuild affected views |
| View manifest | Record repository identity, source fingerprint, builder profile, capabilities, status, and artifact location independently for each view |
| Context serving | Execute lexical, semantic, hybrid, reranked, and structural query plans while preserving repository-relative source locations |
| Agent runtime | Expose capability-aware MCP and LSP-shaped tools, assemble bounded evidence, and return citations that agents and humans can inspect |
```text
repository change
-> reuse current views or rebuild affected views
-> publish a capability-bearing manifest
-> plan repository queries
-> deliver bounded, source-linked context
```
On a later commit, CodeNib reuses views whose source and builder identities are
still current. A requested view affected by source or policy changes currently
rebuilds in an isolated generation; file- and symbol-level delta repair remains
disabled until it can use the same pinned source authority.
## Quickstart
Requires Python 3.10+ and Git. For an agent-ready CodeGraph with no model or API
key, install the graph and MCP extras and run one command:
```bash
python -m pip install "codenib[graph,mcp]"
codenib codegraph init /path/to/repository
```
`codegraph init` detects Codex and Claude Code, installs only the detected
languages' package-managed providers, builds reusable `bm25` and
`symbol_graph` views, and asks each native client CLI to own its configuration.
Run `codenib codegraph status /path/to/repository` to diagnose the complete
path or `codenib codegraph uninstall /path/to/repository` to remove only the
managed client registrations. The index remains reusable.
Repositories can persist exact root-relative subtree exclusions when generated
or vendored content should not be indexed:
```bash
codenib codegraph init /path/to/repository \
--exclude-dir ios/Pods \
--exclude-dir generated/api
```
Paths use repository-relative POSIX spelling (`/`) and name exact subtrees,
not globs. Repeat `--exclude-dir` to replace the complete custom exclusion set. Later
`init` and `index` runs reuse that policy from the manifest; use
`--clear-exclude-dirs` to return to the default source surface. CodeNib does not
implicitly treat `.gitignore` as an indexing policy, because tracked and local
ignored source can still be intentional input.
Zoekt supports the default source policy only when its fixed commit tree
exactly matches the authenticated checkout and contains no tracked path that
the default policy excludes. It does not currently support a non-empty custom
exclusion set. A command that explicitly requests the `zoekt` view, including
`--preset full`, fails closed when either condition is unmet; use the
CodeGraph, `fast`, or semantic paths instead. Authenticated MCP serving for
Zoekt currently requires Linux `/proc`; see the
[source-surface boundaries](https://docs.codenib.ai/codegraph/#select-the-repository-source-surface).
For a browser Wiki with hybrid BM25+dense retrieval, install the semantic extra:
```bash
python -m pip install "codenib[semantic]"
codenib wiki /path/to/repository
```
Both paths keep reusable state under `~/.codenib/repositories` and leave the
target checkout unchanged. Set `CODENIB_HOME` to relocate state.
Preview the CodeGraph operations without installing, indexing, or configuring
an agent:
```bash
codenib codegraph init /path/to/repository --dry-run
```
For a structural view, CodeNib detects the repository languages and manages
only their package-level providers; operating-system and project prerequisites
remain explicit:
```bash
python -m pip install "codenib[graph]"
codenib toolchain install /path/to/repository --scope graph
codenib doctor /path/to/repository --require graph
```
Export that indexed commit as a serverless Wiki when a live Ask backend is not
needed:
```bash
codenib export /path/to/repository --output /tmp/repository-wiki
```
The export contains a versioned provenance manifest, precomputed Wiki pages,
source citations, and available page-level dependency data. It contains no
provider credential; interactive Ask and runtime graph exploration remain on
the local or MCP serving path.
For a repository-hosted Wiki, CodeNib also ships a reusable GitHub workflow
that builds or reuses the same manifest, deploys the static site to Pages,
and uploads the matching commit-addressed context artifact. Its default
`semantic` route builds BM25 and vector views with a cached local Hugging Face
model and needs no API key. An explicit `fast` route avoids the model download;
a BYO OpenAI-compatible endpoint can replace local embedding. Query-time search
remains in the local or MCP runtime. See
[GitHub Pages](https://docs.codenib.ai/github_pages/).
The published BM25/vector artifact can then be verified against an exact local
checkout and served through MCP without rebuilding the repository views.
See the
[Quickstart](https://docs.codenib.ai/quickstart/)
for ports, advanced indexing, and troubleshooting.
<p align="center">
<img src="https://raw.githubusercontent.com/sysevol-ai/CodeNib/main/assets/codenib_wiki.png" alt="CodeNib Wiki showing the source-linked reverse proxy guide for Caddy" width="100%">
</p>
## Serve An Agent
The recommended path configures installed Codex and Claude Code clients through
their native CLIs:
```bash
python -m pip install "codenib[graph,mcp]"
codenib codegraph init /path/to/repository
```
Ask the agent to start with `explore_context` for bounded, source-verified
repository context and use `dependency_subgraph` for caller impact or callee
dependencies. The MCP server also exposes ranked BM25, regex, definition,
reference, route, and bounded source-read tools. See the
[CodeGraph guide](https://docs.codenib.ai/codegraph/) for client scopes,
diagnostics, uninstall behavior, and language prerequisites, and the
[MCP Server](https://docs.codenib.ai/mcp/) for the complete tool contract.
The same planner is available directly to Python agents:
```python
from codenib.agent import RepositoryContextExplorer
with RepositoryContextExplorer.from_repository(
"/path/to/repository", policy="auto"
) as explorer:
result = explorer.explore("where is request retry behavior implemented?", top_k=10)
```
Each result includes source-validated evidence plus the selected plan,
capabilities, loaded views, fusion, graph, and reranking trace.
## What CodeNib Provides
| Surface | Purpose |
|---|---|
| View compiler | Build independently managed views, reuse current generations, and atomically rebuild changed views under one source identity |
| Agent context runtime | Plan capability-aware retrieval and navigation, then assemble bounded source-linked eviWhat people ask about CodeNib
What is sysevol-ai/CodeNib?
+
sysevol-ai/CodeNib is mcp servers for the Claude AI ecosystem. A multi-view data system for serving repository context to coding agents. It has 84 GitHub stars and its last recorded update is dated 2026-08-22.
How do I install CodeNib?
+
You can install CodeNib by cloning the repository (https://github.com/sysevol-ai/CodeNib) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is sysevol-ai/CodeNib safe to use?
+
Our security agent has analyzed sysevol-ai/CodeNib and assigned a Trust Score of 100/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains sysevol-ai/CodeNib?
+
sysevol-ai/CodeNib is maintained by sysevol-ai. The last recorded GitHub activity is dated 2026-08-22, with 9 open issues.
Are there alternatives to CodeNib?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy CodeNib to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/sysevol-ai-codenib)<a href="https://claudewave.com/repo/sysevol-ai-codenib"><img src="https://claudewave.com/api/badge/sysevol-ai-codenib" alt="Featured on ClaudeWave: sysevol-ai/CodeNib" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
The fastest path to AI-powered full stack observability, even for lean teams.
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!