Stacklit logo

Stacklit

Maps a repository into a committed code graph and exposes budgeted navigation tools to coding agents.

Install Stacklit

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

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for stacklit, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

stacklit MCP server builds a local, deterministic map of a repository containing modules, exports, dependencies, and code hints. It writes the map to stacklit.json and serves it to coding agents through an MCP interface with 15 tools, including query, slice, impact, path, explain, and hubs. Use it when an agent needs repository structure and targeted symbol or dependency navigation without repeatedly scanning files. The Go binary runs locally, makes no CLI network calls, and can configure several coding assistants.

Use cases

  • Give coding agents a compact map of a large repository
  • Trace symbols and dependencies within a token budget
  • Check architectural rules and index freshness in CI
  • Commit repository structure for consistent agent context

Key features

  • Tree-sitter indexing for 48 languages and formats
  • MCP service with 15 tools and a four-tool minimal profile
  • Token-budgeted graph queries and code navigation
  • Committed JSON, Mermaid, and interactive HTML outputs
  • Git post-commit refresh and optional Claude Code hook
  • Local deterministic operation with no telemetry

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.

6/6 checks healthy over the last 15d

Adoption & maintenance

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

GitHub stars132Stargazers on the source repository.
Last commit11d agoMost recent push to the default branch.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Stacklit works

What stacklit does

stacklit creates a committed representation of a codebase for AI coding agents. Its index records modules, exports, dependency edges, and hints in stacklit.json. The repository can also receive a Mermaid dependency diagram and an interactive HTML map.

The generated data is intended to give an agent a compact starting point before it opens source files. A derived prompt summary can include project metadata, module relationships, test commands, environment hints, and files marked as not to touch. The index is deterministic: unchanged repository content produces the same bytes.

Stacklit indexes 48 languages and formats. Symbol-graph and call-edge features cover 20 languages, including Go, Python, TypeScript, JavaScript, Rust, Java, C#, Kotlin, Swift, PHP, and Ruby.

How it works

The scanner parses the repository with tree-sitter and produces the index locally. Agents can consume the committed JSON file directly or connect through stacklit serve, which exposes the repository-navigation interface over MCP.

Queries are constrained by a token budget. Commands such as query, slice, and impact can return focused portions of the symbol graph, likely relevant files, and dependency or call relationships instead of requiring a full repository crawl. The command-line interface also supports derive, explain, path, and hubs operations.

A post-commit Git hook can refresh the map. An optional Claude Code hook can use a searched identifier to point toward its definition. The CLI itself does not send repository data over the network or use an LLM.

Setup and configuration

Install with one of the supported distribution methods:

  • npx stacklit init
  • brew install glincker/tap/stacklit
  • npm install -g stacklit
  • go install github.com/glincker/stacklit/cmd/stacklit@latest
  • A binary downloaded from the project releases

Run stacklit init in a repository to scan it, write the index, and open the map. Then use stacklit setup to configure detected assistants. Commit stacklit.json if the team wants the map available alongside the source code.

stacklit serve starts the MCP service. The --profile minimal option reduces the interface from 15 tools to 4 and produces a smaller tool schema. stacklit setup --list displays the available assistant targets. Set STACKLIT_MAP_ICONS=off to stop the map page from loading language icons from thesvg.org.

Tools and capabilities

The MCP service provides 15 tools in its default profile, with a four-tool minimal profile. The related CLI supports:

  • query for token-budgeted symbol-graph results
  • slice for focused graph sections
  • impact for examining affected relationships
  • path, explain, and hubs for repository navigation and analysis
  • derive for compact prompt-oriented repository context
  • export for GraphML, Cypher, DOT, Mermaid, and other output formats
  • check for architecture rules and status for freshness checks
  • merge-graphs for combining graph data

The generated outputs include stacklit.json, DEPENDENCIES.md by default, and stacklit.html. A GitHub Action is available for repository workflows.

Limitations and notes

Symbol graphs and call edges are available for 20 of the 48 indexed languages and formats. The map page may request language icons from thesvg.org unless icon loading is disabled. Stacklit is local and deterministic, but the index must be regenerated when repository changes need to be reflected; the optional post-commit hook automates that refresh.

The project is distributed under the MIT license and uses a single Go binary. Its CLI makes no network calls, and it provides no telemetry or repository upload.

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 Stacklit

stacklit is an MCP server that connects coding agents to a locally generated repository map. Its main tools support budgeted queries, slices, impact analysis, path lookup, explanations, and graph hubs, using modules, symbols, exports, and dependency relationships recorded in stacklit.json.

Install it with npx, Homebrew, npm, Go, or a release binary. Run `npx stacklit init` to scan a repository and create its index, then run `stacklit serve` for MCP access or `stacklit setup` to configure detected assistants.

Yes, Cursor is one of the assistants supported by stacklit setup. The setup command wires detected assistants to the repository map, while other tools can read stacklit.json directly.

Yes, stacklit runs locally, makes no CLI network calls, and sends no telemetry or repository upload. Its map page can load language icons from thesvg.org; set `STACKLIT_MAP_ICONS=off` to disable those requests.

stacklit indexes 48 languages and formats, while symbol-graph and call-edge features cover 20 languages. Supported graph languages include Go, Python, TypeScript, JavaScript, Rust, Java, C#, Kotlin, Swift, PHP, and Ruby.

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 PreviewStacklit AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/stacklit?style=directory)](https://allmcps.com/mcp/stacklit)
HTML Embed
<a href="https://allmcps.com/mcp/stacklit"><img src="https://allmcps.com/api/badge/stacklit?style=directory" alt="Stacklit on AllMCPs" /></a>