P

Pathmark

by hacksurvivor · io.github.hacksurvivor/pathmark

Local-first memory for MCP clients. It provides shared durable memory without requiring hosted accounts, vector databases, or API keys, and works with Codex, Claude Code, Cursor, and other MCP clients.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-hacksurvivor-pathmark": {
      "command": "npx",
      "args": [
        "-y",
        "pathmark"
      ],
      "env": {
        "PATHMARK_STORE_DIR": "<VALUE>",
        "PATHMARK_CODEX_MODEL": "<VALUE>",
        "PATHMARK_CHAT_COMMAND": "<VALUE>",
        "PATHMARK_OPENAI_MODEL": "<VALUE>",
        "PATHMARK_CODEX_COMMAND": "<VALUE>",
        "PATHMARK_OPENAI_API_KEY": "<VALUE>",
        "PATHMARK_CHAT_TIMEOUT_MS": "<VALUE>",
        "PATHMARK_OPENAI_BASE_URL": "<VALUE>",
        "PATHMARK_MAX_SEARCH_RESULTS": "<VALUE>",
        "PATHMARK_SYNTHESIS_PROVIDER": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-hacksurvivor-pathmark": {
      "command": "npx",
      "args": [
        "-y",
        "pathmark"
      ],
      "env": {
        "PATHMARK_STORE_DIR": "<VALUE>",
        "PATHMARK_CODEX_MODEL": "<VALUE>",
        "PATHMARK_CHAT_COMMAND": "<VALUE>",
        "PATHMARK_OPENAI_MODEL": "<VALUE>",
        "PATHMARK_CODEX_COMMAND": "<VALUE>",
        "PATHMARK_OPENAI_API_KEY": "<VALUE>",
        "PATHMARK_CHAT_TIMEOUT_MS": "<VALUE>",
        "PATHMARK_OPENAI_BASE_URL": "<VALUE>",
        "PATHMARK_MAX_SEARCH_RESULTS": "<VALUE>",
        "PATHMARK_SYNTHESIS_PROVIDER": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-hacksurvivor-pathmark": {
      "command": "npx",
      "args": [
        "-y",
        "pathmark"
      ],
      "env": {
        "PATHMARK_STORE_DIR": "<VALUE>",
        "PATHMARK_CODEX_MODEL": "<VALUE>",
        "PATHMARK_CHAT_COMMAND": "<VALUE>",
        "PATHMARK_OPENAI_MODEL": "<VALUE>",
        "PATHMARK_CODEX_COMMAND": "<VALUE>",
        "PATHMARK_OPENAI_API_KEY": "<VALUE>",
        "PATHMARK_CHAT_TIMEOUT_MS": "<VALUE>",
        "PATHMARK_OPENAI_BASE_URL": "<VALUE>",
        "PATHMARK_MAX_SEARCH_RESULTS": "<VALUE>",
        "PATHMARK_SYNTHESIS_PROVIDER": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-hacksurvivor-pathmark": {
      "command": "npx",
      "args": [
        "-y",
        "pathmark"
      ],
      "env": {
        "PATHMARK_STORE_DIR": "<VALUE>",
        "PATHMARK_CODEX_MODEL": "<VALUE>",
        "PATHMARK_CHAT_COMMAND": "<VALUE>",
        "PATHMARK_OPENAI_MODEL": "<VALUE>",
        "PATHMARK_CODEX_COMMAND": "<VALUE>",
        "PATHMARK_OPENAI_API_KEY": "<VALUE>",
        "PATHMARK_CHAT_TIMEOUT_MS": "<VALUE>",
        "PATHMARK_OPENAI_BASE_URL": "<VALUE>",
        "PATHMARK_MAX_SEARCH_RESULTS": "<VALUE>",
        "PATHMARK_SYNTHESIS_PROVIDER": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-hacksurvivor-pathmark": {
      "command": "npx",
      "args": [
        "-y",
        "pathmark"
      ],
      "env": {
        "PATHMARK_STORE_DIR": "<VALUE>",
        "PATHMARK_CODEX_MODEL": "<VALUE>",
        "PATHMARK_CHAT_COMMAND": "<VALUE>",
        "PATHMARK_OPENAI_MODEL": "<VALUE>",
        "PATHMARK_CODEX_COMMAND": "<VALUE>",
        "PATHMARK_OPENAI_API_KEY": "<VALUE>",
        "PATHMARK_CHAT_TIMEOUT_MS": "<VALUE>",
        "PATHMARK_OPENAI_BASE_URL": "<VALUE>",
        "PATHMARK_MAX_SEARCH_RESULTS": "<VALUE>",
        "PATHMARK_SYNTHESIS_PROVIDER": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-hacksurvivor-pathmark": {
      "command": "npx",
      "args": [
        "-y",
        "pathmark"
      ],
      "env": {
        "PATHMARK_STORE_DIR": "<VALUE>",
        "PATHMARK_CODEX_MODEL": "<VALUE>",
        "PATHMARK_CHAT_COMMAND": "<VALUE>",
        "PATHMARK_OPENAI_MODEL": "<VALUE>",
        "PATHMARK_CODEX_COMMAND": "<VALUE>",
        "PATHMARK_OPENAI_API_KEY": "<VALUE>",
        "PATHMARK_CHAT_TIMEOUT_MS": "<VALUE>",
        "PATHMARK_OPENAI_BASE_URL": "<VALUE>",
        "PATHMARK_MAX_SEARCH_RESULTS": "<VALUE>",
        "PATHMARK_SYNTHESIS_PROVIDER": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
PATHMARK_STORE_DIR No Directory for memory.jsonl. Default: ~/.pathmark/memory
PATHMARK_CODEX_MODEL No Optional Codex model override. Default: unset
PATHMARK_CHAT_COMMAND No Command provider: receives a synthesized prompt on stdin and writes an answer on stdout. Default: unset
PATHMARK_OPENAI_MODEL No Model id for OpenAI-compatible synthesis. Default: unset
PATHMARK_CODEX_COMMAND No Codex provider command. Default: codex
PATHMARK_OPENAI_API_KEY No OpenAI-compatible API key. Default: unset
PATHMARK_CHAT_TIMEOUT_MS No Synthesis command timeout. Default: 120000
PATHMARK_OPENAI_BASE_URL No OpenAI-compatible API base URL. Default: https://api.openai.com/v1
PATHMARK_MAX_SEARCH_RESULTS No Default search limit. Default: 12
PATHMARK_SYNTHESIS_PROVIDER No Synthesis provider: client, command, codex, or openai-compatible. Default: client

Similar servers