# GraphPilot MCP server

> Provides structural memory for coding agents by indexing TypeScript/JavaScript repositories into a searchable graph of symbols, callers, and callees.

- Repository: https://github.com/graphpilot-oss/graphpilot
- Page: https://hostedmcp.org/servers/graphpilot-oss/graphpilot
- Transport: stdio
- Stars: 17
- License: Apache-2.0
- Latest version: 1.0.1

## Install

### Claude Code

```sh
claude mcp add graphpilot -- npx -y @graphpilot-oss/graphpilot
```

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

```json
{
  "mcpServers": {
    "graphpilot": {
      "command": "npx",
      "args": [
        "-y",
        "@graphpilot-oss/graphpilot"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "graphpilot": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@graphpilot-oss/graphpilot"
      ]
    }
  }
}
```

### VS Code CLI

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

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

```json
{
  "mcpServers": {
    "graphpilot": {
      "command": "npx",
      "args": [
        "-y",
        "@graphpilot-oss/graphpilot"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add graphpilot -- npx -y @graphpilot-oss/graphpilot
```

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

```toml
[mcp_servers.graphpilot]
command = "npx"
args = ["-y", "@graphpilot-oss/graphpilot"]
```

### Gemini CLI

```sh
gemini mcp add -s user graphpilot npx -- -y @graphpilot-oss/graphpilot
```

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

```json
{
  "mcpServers": {
    "graphpilot": {
      "command": "npx",
      "args": [
        "-y",
        "@graphpilot-oss/graphpilot"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `GRAPHPILOT_ROOT` | no | no | Absolute path to the repository GraphPilot should index and serve. Optional — falls back to the MCP client's workspace root or a parent-directory walk. |

## FAQ

### What does GraphPilot do for coding agents?

It provides a persistent structural memory that indexes symbols, callers, callees, and blast radius, preventing agents from having to re-grep files in every session.

### Can I use GraphPilot with my existing git workflow?

Yes, it is branch-aware and worktree-aware, allowing you to perform PR-scoped refactor analysis by passing a commit or branch to the impact tool.

### Is my code data sent to a remote server?

No, GraphPilot is local-first with no telemetry or remote calls.
