Skip to content
MCP server

LayerMap

Compiler-resolved call graph for TS, JS, Go, Python and Java coding agents

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
CLI
Runs
Locally
Version
0.1.52
Listing updated
today

Similar MCP servers

About LayerMap

LayerMap is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Finding every HTTP route that a changed function can reach normally takes an agent dozens of searches. LayerMap builds a map of the codebase and answers that in one call, tracing callers up to 8 levels to routes, handlers, jobs and commands, and callees down to 8 levels. It also lists modules, each file's declarations and every usage of a symbol.

The distinguishing choice is how calls are linked. Instead of matching names with tree-sitter, it uses each language's own compiler or type checker, so calls through interfaces, base classes, templates and decorators resolve as the compiler resolves them. A change check maps uncommitted edits to the routes, jobs and commands they reach and the related existing tests. For WeChat mini-programs it also links page and component templates to the methods they bind.

The README's benchmark, written by the authors on small samples, reports 99.9 percent of affected endpoints found within 15 requests versus 76.0 percent without, and lower Claude Code cost with no request limit. It runs locally, keeps the map current on each call and says it sends nothing. Clients named include Claude Code, Codex, CodeBuddy Code and Pi.

Install

Run in a terminal

claude mcp add layermap -- npx -y layermap

Add to claude_desktop_config.json

{
  "mcpServers": {
    "layermap": {
      "command": "npx",
      "args": [
        "-y",
        "layermap"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "layermap": {
      "command": "npx",
      "args": [
        "-y",
        "layermap"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "layermap": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "layermap"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "layermap": {
      "command": "npx",
      "args": [
        "-y",
        "layermap"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "layermap": {
      "command": "npx",
      "args": [
        "-y",
        "layermap"
      ]
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

What it does

Callers up to routes
Traces callers up to 8 levels to HTTP routes, handlers, jobs and commands.
Callees down the chain
Lists what a function calls, down to 8 levels.
Compiler-resolved links
Uses each language's compiler or type checker rather than name matching.
Change check
Maps uncommitted edits to affected routes, jobs, commands and related tests.
Five languages
Covers TypeScript, JavaScript, Go, Python and Java.
Mini-program templates
Links WeChat .wxml templates to the methods and components they use.
Local map
Runs on your machine, refreshes on every call and sends nothing.

Good for

  • Find which endpoints a refactor of a service method affects
  • Check which tests relate to your uncommitted changes
  • Locate every usage of a symbol across a project
  • Understand how a request reaches a storage function

Pricing

Open source

LayerMap FAQ

Which languages are supported?

TypeScript, JavaScript, Go, Python and Java.

Does it send code anywhere?

The README says it runs on your machine and sends nothing.

Which clients can use it?

Claude Code, Codex, CodeBuddy Code, Pi, DeepSeek Harness and other MCP clients.

How reliable are the benchmark numbers?

The README says they come from small samples on tasks written by its authors.

Is LayerMap free?

Yes. LayerMap is open source, so you can use and self-host it for free.

How do I add LayerMap to Claude Code?

Run this command in your terminal: claude mcp add layermap -- npx -y layermap

What are the best alternatives to LayerMap?

The closest alternatives to LayerMap are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers