# Code Pathfinder MCP server

> Lets AI assistants query call graphs, trace data flows, and run security rules on Python projects.

- Repository: https://github.com/shivasurya/code-pathfinder
- Page: https://hostedmcp.org/servers/shivasurya/code-pathfinder
- Transport: stdio
- Stars: 143
- License: Apache-2.0
- Latest version: 2.1.1

## Install

### Claude Code

```sh
claude mcp add code-pathfinder -- uvx codepathfinder
```

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

```json
{
  "mcpServers": {
    "code-pathfinder": {
      "command": "uvx",
      "args": [
        "codepathfinder"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "code-pathfinder": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "codepathfinder"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"code-pathfinder","type":"stdio","command":"uvx","args":["codepathfinder"]}'
```

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

```json
{
  "mcpServers": {
    "code-pathfinder": {
      "command": "uvx",
      "args": [
        "codepathfinder"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add code-pathfinder -- uvx codepathfinder
```

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

```toml
[mcp_servers.code-pathfinder]
command = "uvx"
args = ["codepathfinder"]
```

### Gemini CLI

```sh
gemini mcp add -s user code-pathfinder uvx -- codepathfinder
```

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

```json
{
  "mcpServers": {
    "code-pathfinder": {
      "command": "uvx",
      "args": [
        "codepathfinder"
      ]
    }
  }
}
```

## FAQ

### What tools does the Code Pathfinder MCP server expose?

It exposes tools for querying the code graph: finding callers and callees, tracing data flows, searching for patterns, and running security rules.

### How do I start the Code Pathfinder MCP server?

Run the pathfinder serve command with the --project flag pointing at your codebase.

### Which AI coding assistants work with Code Pathfinder?

It works with Claude Code, Cursor, Cline, and other AI assistants that support MCP.

### Which languages does Code Pathfinder support?

Python, Dockerfile, and Docker Compose are stable; Go AST analysis and call graphs are coming soon.

### Do I need an API key or cloud account to use it?

No, the scans run locally with no config files, API keys, or cloud accounts required.
