U

Unix Pass MCP

by Neanderthal · io.github.Neanderthal/unix-pass-mcp

Connects an existing Unix pass/GPG password store to AI tools through a typed MCP interface, exposing read-only listing, decryption, field lookup, and TOTP generation by default. Write, key-administration, and git operations remain behind explicit environment opt-ins, with strict input validation and path scoping.

pypi 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-neanderthal-unix-pass-mcp": {
      "command": "uvx",
      "args": [
        "unix-pass-mcp"
      ],
      "env": {
        "PASS_MCP_ALLOWED_PATHS": "web/*",
        "PASSWORD_STORE_DIR": "<VALUE>",
        "PASSWORD_STORE_KEY": "<VALUE>",
        "PASS_MCP_AUDIT_LOG": "~/.local/state/unix-pass-mcp/audit.log",
        "PASSWORD_STORE_UMASK": "<VALUE>",
        "PASS_MCP_ALLOW_UNSAFE": "<VALUE>",
        "PASS_MCP_ALLOW_WRITES": "<VALUE>",
        "PASS_MCP_ALLOW_NETWORK": "<VALUE>",
        "PASS_MCP_REQUIRE_AGENT": "1",
        "PASS_MCP_TIMEOUT_SECONDS": "15",
        "PASS_MCP_ALLOW_DESTRUCTIVE": "<VALUE>",
        "PASS_MCP_GREP_TIMEOUT_SECONDS": "120"
      }
    }
  }
}

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-neanderthal-unix-pass-mcp": {
      "command": "uvx",
      "args": [
        "unix-pass-mcp"
      ],
      "env": {
        "PASS_MCP_ALLOWED_PATHS": "web/*",
        "PASSWORD_STORE_DIR": "<VALUE>",
        "PASSWORD_STORE_KEY": "<VALUE>",
        "PASS_MCP_AUDIT_LOG": "~/.local/state/unix-pass-mcp/audit.log",
        "PASSWORD_STORE_UMASK": "<VALUE>",
        "PASS_MCP_ALLOW_UNSAFE": "<VALUE>",
        "PASS_MCP_ALLOW_WRITES": "<VALUE>",
        "PASS_MCP_ALLOW_NETWORK": "<VALUE>",
        "PASS_MCP_REQUIRE_AGENT": "1",
        "PASS_MCP_TIMEOUT_SECONDS": "15",
        "PASS_MCP_ALLOW_DESTRUCTIVE": "<VALUE>",
        "PASS_MCP_GREP_TIMEOUT_SECONDS": "120"
      }
    }
  }
}

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-neanderthal-unix-pass-mcp": {
      "command": "uvx",
      "args": [
        "unix-pass-mcp"
      ],
      "env": {
        "PASS_MCP_ALLOWED_PATHS": "web/*",
        "PASSWORD_STORE_DIR": "<VALUE>",
        "PASSWORD_STORE_KEY": "<VALUE>",
        "PASS_MCP_AUDIT_LOG": "~/.local/state/unix-pass-mcp/audit.log",
        "PASSWORD_STORE_UMASK": "<VALUE>",
        "PASS_MCP_ALLOW_UNSAFE": "<VALUE>",
        "PASS_MCP_ALLOW_WRITES": "<VALUE>",
        "PASS_MCP_ALLOW_NETWORK": "<VALUE>",
        "PASS_MCP_REQUIRE_AGENT": "1",
        "PASS_MCP_TIMEOUT_SECONDS": "15",
        "PASS_MCP_ALLOW_DESTRUCTIVE": "<VALUE>",
        "PASS_MCP_GREP_TIMEOUT_SECONDS": "120"
      }
    }
  }
}

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-neanderthal-unix-pass-mcp": {
      "command": "uvx",
      "args": [
        "unix-pass-mcp"
      ],
      "env": {
        "PASS_MCP_ALLOWED_PATHS": "web/*",
        "PASSWORD_STORE_DIR": "<VALUE>",
        "PASSWORD_STORE_KEY": "<VALUE>",
        "PASS_MCP_AUDIT_LOG": "~/.local/state/unix-pass-mcp/audit.log",
        "PASSWORD_STORE_UMASK": "<VALUE>",
        "PASS_MCP_ALLOW_UNSAFE": "<VALUE>",
        "PASS_MCP_ALLOW_WRITES": "<VALUE>",
        "PASS_MCP_ALLOW_NETWORK": "<VALUE>",
        "PASS_MCP_REQUIRE_AGENT": "1",
        "PASS_MCP_TIMEOUT_SECONDS": "15",
        "PASS_MCP_ALLOW_DESTRUCTIVE": "<VALUE>",
        "PASS_MCP_GREP_TIMEOUT_SECONDS": "120"
      }
    }
  }
}

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-neanderthal-unix-pass-mcp": {
      "command": "uvx",
      "args": [
        "unix-pass-mcp"
      ],
      "env": {
        "PASS_MCP_ALLOWED_PATHS": "web/*",
        "PASSWORD_STORE_DIR": "<VALUE>",
        "PASSWORD_STORE_KEY": "<VALUE>",
        "PASS_MCP_AUDIT_LOG": "~/.local/state/unix-pass-mcp/audit.log",
        "PASSWORD_STORE_UMASK": "<VALUE>",
        "PASS_MCP_ALLOW_UNSAFE": "<VALUE>",
        "PASS_MCP_ALLOW_WRITES": "<VALUE>",
        "PASS_MCP_ALLOW_NETWORK": "<VALUE>",
        "PASS_MCP_REQUIRE_AGENT": "1",
        "PASS_MCP_TIMEOUT_SECONDS": "15",
        "PASS_MCP_ALLOW_DESTRUCTIVE": "<VALUE>",
        "PASS_MCP_GREP_TIMEOUT_SECONDS": "120"
      }
    }
  }
}

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-neanderthal-unix-pass-mcp": {
      "command": "uvx",
      "args": [
        "unix-pass-mcp"
      ],
      "env": {
        "PASS_MCP_ALLOWED_PATHS": "web/*",
        "PASSWORD_STORE_DIR": "<VALUE>",
        "PASSWORD_STORE_KEY": "<VALUE>",
        "PASS_MCP_AUDIT_LOG": "~/.local/state/unix-pass-mcp/audit.log",
        "PASSWORD_STORE_UMASK": "<VALUE>",
        "PASS_MCP_ALLOW_UNSAFE": "<VALUE>",
        "PASS_MCP_ALLOW_WRITES": "<VALUE>",
        "PASS_MCP_ALLOW_NETWORK": "<VALUE>",
        "PASS_MCP_REQUIRE_AGENT": "1",
        "PASS_MCP_TIMEOUT_SECONDS": "15",
        "PASS_MCP_ALLOW_DESTRUCTIVE": "<VALUE>",
        "PASS_MCP_GREP_TIMEOUT_SECONDS": "120"
      }
    }
  }
}

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
PASS_MCP_ALLOWED_PATHS No Comma-separated fnmatch globs scoping which entries the server may touch. Default: unset (= all). Default: web/*
PASSWORD_STORE_DIR No Standard pass environment variable for the password store directory.
PASSWORD_STORE_KEY No Standard pass environment variable for the GPG key ID(s).
PASS_MCP_AUDIT_LOG No Append-only JSONL log of actions; set to an empty string to disable. Default: ~/.local/state/unix-pass-mcp/audit.log
PASSWORD_STORE_UMASK No Standard pass environment variable for the password store umask.
PASS_MCP_ALLOW_UNSAFE No Bypass strict startup checks (world-readable store, weak umask). Default: unset. Not recommended.
PASS_MCP_ALLOW_WRITES No Required for any mutating tool. Default: unset.
PASS_MCP_ALLOW_NETWORK No Required for git_pull / git_push. Default: unset.
PASS_MCP_REQUIRE_AGENT No Refuse to decrypt if gpg-agent is not reachable. Default: 1
PASS_MCP_TIMEOUT_SECONDS No Per-call subprocess timeout. Default: 15
PASS_MCP_ALLOW_DESTRUCTIVE No Required for init / reencrypt. Default: unset.
PASS_MCP_GREP_TIMEOUT_SECONDS No Per-call timeout for grep, which decrypts permitted entries. Default: 120

Similar servers