repomap
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
repomap
Give your AI coding agent a 3k-token map of any codebase in under a second — so it stops re-reading the entire repo every session.
repomap is an MCP server, CLI, and Claude Code plugin (skill + slash commands + optional SessionStart hook) that generates a compact, cached architectural map of any repository: module boundaries, entry points, internal dependency graph, cycle detection, key symbols per file, and "hot files" ranked by fan-in + recent git churn.
100% local. Zero network calls. Incremental SHA-256 caching.
Before vs. After (Real Benchmarks)
Measured on real open-source repositories using mcp-repomap v0.1.0 (default 3500 token budget):
Repository | Files | LOC | Raw Repo Tokens |
| Token Reduction | Cold / Warm Time |
| 114 | 39,314 | 339,885 | 3,462 | 99.0% | 2.40s / 259ms |
| 230 | 34,920 | 300,765 | 3,368 | 98.9% | 0.88s / 429ms |
Instead of burning ~300k+ tokens and minutes of grep/file-reads on every new session, your agent reads a ~3.4k-token map in <0.5s and opens only the exact files it needs.
Related MCP server: Weavatrix
Demo

You can re-record this demo GIF anytime using VHS:
vhs demo.tapeQuick Install
Option 1: Claude Code Plugin (MCP + Skill + Slash Commands + Auto-Refresh Hook)
Inside Claude Code:
/plugin marketplace add rohanpandityy35-bit/repomap
/plugin install repomap@repomapThis installs:
MCP server (
mcp-repomap)Skill (
skills/repomap/SKILL.md) teaching Claude to read the map before broad exploration or refactorsSlash commands:
/repomap:map,/repomap:impact <file>,/repomap:refreshSessionStart hook: silently refreshes
.repomap/if stale (>24h orgit HEADchanged)
Option 2: MCP Server Only
claude mcp add repomap -- npx -y mcp-repomapOption 3: CLI (No MCP Required)
npx -y --package=mcp-repomap repomap generate .
# or install globally:
npm install -g mcp-repomap
repomap overview .Usage Examples
MCP Tools
Tool | Arguments | Description |
|
| Build or incrementally refresh the map ( |
|
| Concise architecture summary, entry points, and top hot files |
|
| Search symbols (functions, classes, types) and files |
|
| Inspect incoming ( |
|
| Blast radius analysis: direct/transitive dependents, affected modules & entry points |
CLI Commands
# Generate compact Markdown map (default ~3,500 tokens) and cache in .repomap/
repomap generate . --budget 3000
# Export as Mermaid dependency graph or JSON
repomap generate . --format mermaid
repomap generate . --format json
# Quick architecture + entry points overview
repomap overview .
# Find symbols or files matching a query
repomap find Calculator .
# Inspect incoming/outgoing dependencies (depth 2)
repomap deps src/core/graph.ts . --direction both --depth 2
# Check blast radius before editing a shared file
repomap impact src/core/types.ts .Supported Languages
Language | Parser | Extracted Features |
TypeScript / TSX |
| ES imports/exports, CommonJS |
JavaScript / JSX |
| ES imports/exports, CommonJS |
Python |
|
|
Go |
|
|
Rust |
|
|
Java |
|
|
Other languages | Regex fallback | Generic |
How It Works
Scan: Walks the repo respecting
.gitignore(root and nested), skippingnode_modules,dist,build, lockfiles, binaries, and files >1MB.Parse & Cache: Computes SHA-256 per file and parses only changed files via
web-tree-sitterWASM grammars. Stores cache in.repomap/map.jsonand.repomap/REPOMAP.md.Graph & Rank: Resolves internal imports, detects dependency cycles, computes fan-in/fan-out, extracts entry points (
package.json,pyproject.toml,main.go,src/main.rs,Dockerfile, CI workflows), and ranks hot files by fan-in + 90-daygit logchurn.Budgeted Output: Emits architecture + entry points + hot files first, then fills remaining token budget with key symbols ordered by file importance.
Roadmap
Monorepo workspace awareness (pnpm/npm workspaces, Cargo workspaces, Go multi-module)
Language-specific path alias resolution (
tsconfig.jsonpaths, PythonPYTHONPATH)Tree-sitter WASM support for C/C++, Ruby, C#, and Kotlin
Watch mode (
repomap watch) for live.repomap/updates during development
FAQ
Does repomap send my code anywhere?
No. Everything runs 100% locally on your machine with zero network calls.
Should I commit .repomap/ to git?
Usually no — add .repomap/ to your .gitignore (repomap will remind you if it's not ignored).
Why is the npm package named mcp-repomap?
repomap-mcp was already taken on npm, so we published under mcp-repomap (which exposes both mcp-repomap and repomap binaries).
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Codebase intelligence for AI agents — dead code, blast radius, ownership.
Code-map tools for AI agents: see a repo's structure first, then edit only what matters.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides AI coding agents with durable architecture memory for repositories by generating structured project maps of responsibilities, relationships, and risks.615 npmMIT
- AlicenseNot gradedqualityBmaintenanceProvides a dependency graph of any local repository with tools for change impact, transitive dependents, health audits, and more, enabling AI coding agents to see structure and refactor safely.4,912 npm4MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI coding agents with persistent architectural memory of codebases, enabling impact analysis, test generation, and code generation with reduced token usage.MIT
- AlicenseAqualityCmaintenanceExtracts deterministic architecture maps from codebases for AI agents, enabling queries about blast radius, routes, security findings, and production readiness without sending code anywhere.6MIT