# CodeNib

CodeNib gives coding agents source-aware search and graph navigation across symbols. Use it when a repository needs traceable code exploration.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 87
- Author: sysevol-ai
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/sysevol-ai/CodeNib
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/mcp/codenib

## What it does

CodeNib adds a local source index and a typed symbol graph to an agent workflow. `explore_context` returns bounded code excerpts with file and line references. `dependency_subgraph` follows callers, callees, definitions, and references, with traversal depth capped at 8 for that request.

The server runs locally through `uvx` and can connect to Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, or Zed. The CodeGraph setup needs Python 3.10+, Git, and a clean repository. CodeNib does not need its own model, API key, or GPU because the connected agent supplies the model.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add codenib -- uvx codenib
```
uvx runs the command named after the package; if the README names another one, use uvx --from codenib <command>

### Codex

**Platform CLI**
```bash
codex mcp add codenib -- uvx codenib
```
uvx runs the command named after the package; if the README names another one, use uvx --from codenib <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "codenib": {
            "command": "uvx",
            "args": [
                "codenib"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from codenib <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "codenib": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "codenib"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from codenib <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add codenib uvx codenib
```
uvx runs the command named after the package; if the README names another one, use uvx --from codenib <command>

## When to use it
- locate an implementation in an unfamiliar repository
- retrieve source context with file and line references
- trace a call chain across several functions
- jump from a symbol to its definitions and references

## Example prompts
- Use CodeNib with `explore_context` to find where request retries are implemented and cite the files and lines.
- Run `dependency_subgraph` for the public API and trace its callers and callees to depth 4.
- Find every definition and reference for `RequestHandler` in this repository.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
