Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Aider RepoMapper Server

FreeNot checked

Generates optimized repository maps and enables identifier search with graph-ranking, designed for efficient LLM context caching and codebase navigation.

GitHubEmbed

About

Generates optimized repository maps and enables identifier search with graph-ranking, designed for efficient LLM context caching and codebase navigation.

README

A standalone Model Context Protocol (MCP) server wrapping Aider's graph-ranking repository mapping engine. This server is explicitly hardened for high-efficiency LLM development workflows by optimizing text payloads for strict byte-for-byte Prompt Caching (e.g., Anthropic Prompt Caching via OpenRouter).

Key Features

  • Cache-Locked Architecture Summarization: Intercepts volatile file parsing outputs and swaps mutating line numbers for static pipe (|) tokens.
  • Rank Score Stripping: Removes fluctuating PageRank floating-point scores ((Rank value: X.XXXX)) generated dynamically in memory, preventing prefix cache invalidation loops across code changes.
  • Path Blacklisting Heuristics: Automatically intercepts and filters untracked runtime assets, database dumps, localized state subtrees (data/), and compiled frontend asset bundles (*.min.js) from corrupting the tool context window.
  • JSON-RPC Schema Compliant: Plugs natively into agent frameworks like ZooCode, RooCode, and Cursor-agent extension environments out of the box.

Server Layout & Core Modules

The repository structures the port across these primary utilities:

  • repomap_server.py: Async JSON-RPC server harness exposing tool schemas and managing filesystem parameter inputs.
  • repomap_class.py & repomap.py: Local interface adapters wrapping the core Abstract Syntax Tree (AST) tree-sitter parser hooks.
  • importance.py & scm.py: Heuristic logic for assessing file contribution ranks and structural tracking states.
  • utils.py: Local counting frameworks and atomic file reader fallbacks.
  • test_matrix.py: Regression framework validating formatting state guarantees.

Installation & Environment Configuration

Ensure the engine is running within a Python 3.10+ environment containing the core dependency stack (mcp, tiktoken, aider-chat).

Agent Settings Integration

Add the server entry point configuration to your global or project-level MCP definition matrix (e.g., .vscode/mcp.json or .roo/mcp.json):

{
  "mcpServers": {
    "repo-mapper": {
      "command": "/home/barry/tools/RepoMapper/.venv/bin/python",
      "args": ["/home/barry/tools/RepoMapper/repomap_server.py"],
      "env": {
        "PYTHONUNBUFFERED": "1"
      }
    }
  }
}

Exposed MCP Tools

repo_map

Generates an optimized, topologically sorted layout matching the internal repository architecture.

Parameters:

  • project_root (string, required): The absolute path to the targeted repository root.
  • token_limit (integer, optional): Maximum scale window for the map text block (defaults to 2000).
  • exclude_unranked (boolean, optional): Drops low-signal definitions when processing constrained tokens.
  • verbose (boolean, optional): Promotes deeper diagnostic stdout updates to log levels.

search_identifiers

Performs keyword-based target cross-referencing against structural symbol matrices.

from github.com/barrynerd/mcp-repomapper

Install Aider RepoMapper Server in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install aider-repomapper-mcp-server

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add aider-repomapper-mcp-server -- uvx --from git+https://github.com/barrynerd/mcp-repomapper repomapper

FAQ

Is Aider RepoMapper Server MCP free?

Yes, Aider RepoMapper Server MCP is free — one-click install via Unyly at no cost.

Does Aider RepoMapper Server need an API key?

No, Aider RepoMapper Server runs without API keys or environment variables.

Is Aider RepoMapper Server hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Aider RepoMapper Server in Claude Desktop, Claude Code or Cursor?

Open Aider RepoMapper Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Aider RepoMapper Server with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All ai MCPs