# LayerMap

> LayerMap is an open-source MCP server for developer tools. Compiler-resolved call graph for TS, JS, Go, Python and Java coding agents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI
- **Repository:** https://github.com/coffeecoproject/layermap
- **MCP Registry name:** io.github.coffeecoproject/layermap
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

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.

## Features

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

## Install

### Claude Code (Terminal)

```sh
claude mcp add layermap -- npx -y layermap
```

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "layermap": {
      "command": "npx",
      "args": [
        "-y",
        "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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/layermap
