# GhostPaw Codex MCP server

> Provides a local, evidence-backed memory engine for AI agents using claims with sources, certainty levels, and revision histories.

- Repository: https://github.com/GhostPawJS/codex
- Page: https://hostedmcp.org/servers/ghostpawjs/codex
- Transport: stdio
- Stars: 3
- License: MIT
- Latest version: 0.6.5

## Install

### Claude Code

```sh
claude mcp add codex -- npx -y @ghostpaw/codex
```

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

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

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

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

### VS Code CLI

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

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

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

### Codex

```sh
codex mcp add codex -- npx -y @ghostpaw/codex
```

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

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

### Gemini CLI

```sh
gemini mcp add -s user codex npx -- -y @ghostpaw/codex
```

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

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

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `GHOSTPAW_CODEX_DB` | no | no | SQLite database path (default: ~/.ghostpaw/codex.db) |
| `GHOSTPAW_CODEX_DB` | no | no | SQLite database path (default: ~/.ghostpaw/codex.db) |

## Tools (7)

- `search_codex`
- `review_codex`
- `inspect_codex_item`
- `remember_belief`
- `revise_belief`
- `retire_belief`
- `dismiss_proximity`

## FAQ

### What is GhostPaw Codex?

It is a local, evidence-backed memory engine for agents that stores beliefs as claims with sources, certainty, and revision history.

### How do I install the release binary?

You can install it via a curl script for Linux and macOS, or a PowerShell script for Windows, which downloads the asset and installs it into ~/.local/bin.

### What happens if I use the 'belief retire' command?

The 'belief retire' command performs a hard-delete of the entire lineage, including the belief and all its predecessors and successors, and it cannot be undone.
