# stacklit MCP server

> Maps your codebase into a compact symbol graph to help AI coding agents navigate repositories without re-reading every file.

- Repository: https://github.com/glincker/stacklit
- Page: https://hostedmcp.org/servers/glincker/stacklit
- Transport: stdio
- Stars: 131
- License: MIT

## Install

### Claude Code

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

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

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

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

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

### VS Code CLI

```sh
code --add-mcp '{"name":"stacklit","type":"stdio","command":"npx","args":["-y","stacklit"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

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

### Codex

```sh
codex mcp add stacklit -- npx -y stacklit
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.stacklit]
command = "npx"
args = ["-y", "stacklit"]
```

### Gemini CLI

```sh
gemini mcp add -s user stacklit npx -- -y stacklit
```

### Gemini settings.json (`~/.gemini/settings.json`)

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

## FAQ

### How does Stacklit help AI agents?

It creates a compact map of your repository so agents can use commands like query, slice, and impact to find files instead of crawling the entire codebase.

### Does Stacklit require an internet connection or LLM?

No, it is a local, deterministic tool that uses no LLM and the CLI makes no network calls.

### What languages does Stacklit support?

It indexes 48 languages and formats, with a symbol graph and call edges available for 20 of them.

### Is Stacklit free to use?

Yes, it is free, MIT licensed, and has no paid tier.
