# Pathmode MCP server

> Performs deterministic intent preflight checks to identify product decision gaps before a coding agent begins implementation.

- Repository: https://github.com/pathmodeio/mcp-server
- Page: https://hostedmcp.org/servers/pathmodeio/mcp-server
- Transport: stdio
- Stars: 3
- Latest version: 1.44.0

## Install

### Claude Code

```sh
claude mcp add --env 'PATHMODE_API_KEY=<YOUR_PATHMODE_API_KEY>' mcp-server -- npx -y @pathmode/mcp-server
```

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@pathmode/mcp-server"
      ],
      "env": {
        "PATHMODE_API_KEY": "<YOUR_PATHMODE_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@pathmode/mcp-server"
      ],
      "env": {
        "PATHMODE_API_KEY": "<YOUR_PATHMODE_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp-server","type":"stdio","command":"npx","args":["-y","@pathmode/mcp-server"],"env":{"PATHMODE_API_KEY":"<YOUR_PATHMODE_API_KEY>"}}'
```

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@pathmode/mcp-server"
      ],
      "env": {
        "PATHMODE_API_KEY": "<YOUR_PATHMODE_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add mcp-server --env 'PATHMODE_API_KEY=<YOUR_PATHMODE_API_KEY>' -- npx -y @pathmode/mcp-server
```

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

```toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@pathmode/mcp-server"]

[mcp_servers.mcp-server.env]
PATHMODE_API_KEY = "<YOUR_PATHMODE_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'PATHMODE_API_KEY=<YOUR_PATHMODE_API_KEY>' mcp-server npx -- -y @pathmode/mcp-server
```

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@pathmode/mcp-server"
      ],
      "env": {
        "PATHMODE_API_KEY": "<YOUR_PATHMODE_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `PATHMODE_API_KEY` | no | yes | Optional: Your Pathmode API key for team features (dependency graph, workspace context). Get one from Settings > API Keys in the Pathmode app. |

## FAQ

### Where can I find the source code?

The source code is developed in a private monorepo and published to npm; you can view it by unpacking the published tarball.
