repomap-mcp
Reads repository state from local git repositories: detects git-modified and untracked files to bias PageRank ranking toward active work (auto_focus_git), and stores its tag cache inside .git/repomap-mcp so it is natively ignored by git.
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-mcp
Local stdio Model Context Protocol (MCP) server for Aider's AST Tree-sitter and PageRank repository mapping.
Deterministic, offline, zero API keys. Generates concise code skeletons to orient LLMs within token budgets.
Setup
Add to your MCP client config (Claude Desktop, Cursor, Cline):
{
"mcpServers": {
"repomap": {
"command": "uv",
"args": ["run", "--directory", "/path/to/repomap-mcp", "repomap-mcp"]
}
}
}Or run directly from GitHub without cloning:
{
"mcpServers": {
"repomap": {
"command": "uv",
"args": [
"run",
"--from",
"git+https://github.com/mi7chal/repomap-mcp",
"repomap-mcp"
]
}
}
}Related MCP server: codebase-rag
Tools
get_repo_map
Returns a PageRank-ranked code skeleton fitting within max_map_tokens, prefixed with coverage telemetry.
root_path(string, default:"."): Target directory (scopes candidate files;"."maps entire repo).include_tests(bool, default:false): Include unit tests andtests/directories.types_only(bool, default:false): Filter to type definitions (structs, classes, interfaces, enums).focus_files(list[string]): Currently active/edited files to bias PageRank towards.other_files(list[string]): Explicit file list. Defaults to scoped discovered files.mentioned_idents(list[string]): Symbol names to prioritize.max_map_tokens(int, default:2048): Max token budget.force_refresh(bool, default:false): Invalidate tag cache.auto_focus_git(bool, default:true): Automatically detect and bias ranking towards git modified/untracked files.
get_tags
Extracts Tree-sitter definitions and references for a specific file.
file_path(string): Target source file.root_path(string, default:"."): Repository or target directory.
Cache
Git repos:
.git/repomap-mcp/cache(natively ignored by git, zero root pollution).Non-git / read-only:
~/.cache/repomap-mcp/tags-<hash>.Override:
REPOMAP_CACHE_DIRenvironment variable.
Development
uv run pytest
uv run prek run --all-filesAI Transparency
This project was developed with AI assistance.
License
Apache License 2.0. Derived from Aider by Paul Gauthier. See LICENSE and NOTICE.
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
Codebase intelligence for agents: 152 structured artifacts across 21 programs, one call.
Code-map tools for AI agents: see a repo's structure first, then edit only what matters.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables LLMs to efficiently navigate large codebases by providing surgical access to specific code symbols via semantic search and call-graph queries.6MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLM agents to efficiently understand and navigate a codebase by providing semantic search over symbols and a reference graph, replacing expensive grep/glob calls with structured tools like definition lookup, caller/callee queries, and change-impact analysis.4MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to explore a repository by querying a pre-built structural knowledge graph of symbols and their relationships — definitions, callers, callees, blast radius, and file-level impact — instead of grepping and reading files. This cuts the tokens spent on code exploration by roughly 96–99% while running entirely on local SQLite with tree-sitter parsing.MIT
- AlicenseNot gradedqualityFmaintenanceEnables AI agents to retrieve precise structural and semantic context from codebases using hybrid search across 166+ languages. Supports offline/local operation and automatic fallback for resilient, token-efficient code understanding.17 PyPI12Apache 2.0