LayerMap logo

LayerMap

Maps compiler-resolved code relationships from symbols to callers, callees, routes, jobs, commands, usages, and affected tests.

Install LayerMap

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "layermap": {
      "command": "npx",
      "args": [
        "-y",
        "layermap",
        "mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio layermap -- npx -y layermap mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 4 tools correctly ().

Overview

LayerMap MCP server gives coding agents read-only tools for tracing how code is connected across a local repository. It resolves calls with each language's compiler or type checker for TypeScript, JavaScript, Go, Python, and Java, then traces callers and callees through up to eight levels. Use it to inspect symbol usages, identify HTTP routes and other entry points affected by a change, or relate uncommitted edits to tests. WeChat mini-program projects also receive template, component, event, and page relationships.

Use cases

  • Trace a function to the HTTP routes that can reach it
  • Inspect callees before changing a symbol
  • Find usages across typed language relationships
  • Check which tests and entry points an uncommitted change affects

Key features

  • Compiler-resolved call graphs
  • Caller and callee tracing up to eight levels
  • HTTP route, job, and command impact analysis
  • Symbol usages, modules, and declarations
  • Uncommitted-change and related-test analysis
  • WeChat mini-program template and event mapping

Tools4

What LayerMap lets your agent do. Expand a tool for its parameters.

Verified live~3.4k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 48d

What it can do

From the 4 tools this server returned when we ran it; 4 declare their own safety hints.

Makes network requests · 2Read-only tools · 4
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age58 days
Maintainers1

Observed 2026-12-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · layermap (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars11Stargazers on the source repository.
npm downloads8.6kPackage downloads in the last 30 days.
Last commit5d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed4Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How LayerMap works

What LayerMap does

LayerMap provides a layered, read-only map of a codebase for MCP clients. Its main use is answering impact and navigation questions that otherwise require repeated searches: what calls a symbol, what that symbol calls, where it is used, and which entry points a change can reach.

The map can connect callers to HTTP routes, handlers, jobs, and commands. It also reports modules, declarations within files, symbol usages, and the routes, jobs, commands, and related existing tests reached by uncommitted changes. Traces extend up to eight levels for callers and callees.

Supported languages are TypeScript, JavaScript, Go, Python, and Java. Resolution follows the relevant compiler or type checker, allowing relationships through interfaces, base classes, templates, and decorators to be represented as resolved language relationships rather than simple name matches. WeChat mini-programs receive additional links between page or component templates, bound methods, displayed components, emitted events, and page handlers.

How it works

LayerMap builds a local code map and keeps it up to date on each call. Agents query the map through read-only MCP tools instead of reconstructing relationships through many independent searches. Results identify declarations, methods, functions, call locations, and registered routes; route output includes the HTTP method and full path when a framework route is resolved.

The system runs on the developer's machine and sends nothing. Its compiler-based approach is particularly relevant when text search could miss calls through interfaces, inheritance, templates, or decorators. It is intended for use by coding agents such as Claude Code and Codex, along with other MCP clients.

Setup and configuration

Claude Code can install LayerMap from its plugin marketplace:

text
/plugin marketplace add coffeecoproject/layermap
/plugin install layermap@layermap

Codex uses the corresponding marketplace and plugin commands:

text
codex plugin marketplace add coffeecoproject/layermap
codex plugin add layermap@layermap

After installation, the client can use LayerMap's read-only MCP tools against the repository being analyzed.

Tools and capabilities

  • Trace callers upward by as many as eight levels, including the HTTP routes, handlers, jobs, and commands that lead to a symbol.
  • Trace callees downward by as many as eight levels.
  • List modules, file declarations, and usages of a symbol.
  • Analyze uncommitted changes and identify reachable routes, jobs, commands, and related existing tests.
  • Resolve calls using TypeScript, JavaScript, Go, Python, and Java compiler or type-checker relationships.
  • Link WeChat mini-program templates, components, events, methods, and pages.

Limitations and notes

LayerMap is focused on code relationships and impact analysis rather than semantic search, refactoring, or broad multi-repository search. Tools based on tree-sitter may be a better fit when more languages are required; language servers are more suitable for renaming and refactoring; embedding search is intended for meaning-based retrieval; and Sourcegraph is suited to searching across many repositories.

Published benchmark results cover small samples of tasks written by LayerMap's authors. Results vary by agent, task, reasoning settings, and whether maps were built ahead of time. The benchmark reports stronger endpoint discovery under tight request limits, while ordinary small local tasks could take additional time and cost.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about LayerMap

LayerMap is an MCP server that connects coding agents to a local, compiler-resolved map of TypeScript, JavaScript, Go, Python, and Java code. Its read-only tools trace callers and callees, list symbol usages, connect code to HTTP routes, jobs, and commands, and analyze uncommitted changes and related tests.

Install it through the Claude Code or Codex plugin marketplace. Claude Code uses `/plugin marketplace add coffeecoproject/layermap` followed by `/plugin install layermap@layermap`; Codex uses `codex plugin marketplace add coffeecoproject/layermap` followed by `codex plugin add layermap@layermap`.

LayerMap supports TypeScript, JavaScript, Go, Python, and Java. It resolves relationships through each language's compiler or type checker, including calls involving interfaces, base classes, templates, and decorators.

Yes. LayerMap traces callers to HTTP routes and can analyze uncommitted changes to report reachable routes, jobs, commands, and related existing tests. Caller traces extend up to eight levels.

Yes. Codex has dedicated marketplace installation commands for LayerMap: `codex plugin marketplace add coffeecoproject/layermap` and `codex plugin add layermap@layermap`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLayerMap AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/layermap?style=directory)](https://allmcps.com/mcp/layermap)
HTML Embed
<a href="https://allmcps.com/mcp/layermap"><img src="https://allmcps.com/api/badge/layermap?style=directory" alt="LayerMap on AllMCPs" /></a>