# repomap

repomap is an MCP server for Claude Code that builds a local code graph, traces call paths, and calculates change blast radius without external API keys.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 13 repo stars
- Author: SylphxAI
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/SylphxAI/repomap
- Updated: 2026-10-22
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/repomap

## What it does

repomap creates a structural map of your codebase. A local Rust binary resolves symbol dependencies, returning `file:line` locations directly to your coding assistant.

The server handles symbol search and tracks which functions break when signatures change. Running it requires Node 18+, but external API tokens are not needed.

You can inspect the codebase visually by running `npx -y @sylphx/repomap serve`. The tool inspects your current workspace root or the path set in `REPOMAP_ROOT`.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add repomap -- npx -y @sylphx/repomap
```

### Codex

**Platform CLI**
```bash
codex mcp add repomap -- npx -y @sylphx/repomap
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "repomap": {
            "command": "npx",
            "args": [
                "-y",
                "@sylphx/repomap"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "repomap": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@sylphx/repomap"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add repomap npx -y @sylphx/repomap
```

## When to use it
- calculate change blast radius before refactoring a function
- inspect call hierarchies and symbol dependencies across files
- view repository structure in an interactive browser interface
- locate relevant source files directly from an issue description

## Example prompts
- Use repomap to check what breaks if function pagerank changes.
- Trace all callers and dependent modules for DbSchema.graph_json.
- Find the relevant source files for this bug report using repomap.

## Similar
- [arbor](https://affpapa.org/en/nevibecode/mcp/arbor.md) — MCP server · ★ 161 repo stars
- [Koragraph](https://affpapa.org/en/nevibecode/mcp/koragraph.md) — MCP server · ★ 16 repo stars
- [grepai-trace-graph](https://affpapa.org/en/nevibecode/skills/grepai-trace-graph.md) — skill · 841 installs
- [tldr-deep](https://affpapa.org/en/nevibecode/skills/tldr-deep.md) — skill · 485 installs
- [callidescope-trace](https://affpapa.org/en/nevibecode/skills/callidescope-trace.md) — skill · 361 installs
- [calm-mcp](https://affpapa.org/en/nevibecode/mcp/calm-mcp.md) — MCP server · ★ 17 repo stars

---
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
