Skip to main content
Glama
inavhq

gopass-mcp

by inavhq

gopass-mcp

MCP server for gopass password management. Gives AI agents secure, on-demand access to credentials stored in your gopass (GPG-encrypted, git-backed) password store.

Prerequisites

  • Node.js >= 20

  • gopass installed and configured (v1.16+)

  • A working gopass store (run gopass ls to verify)

Related MCP server: onepassword-mcp-server

Install

git clone https://github.com/inavhq/gopass-mcp.git
cd gopass-mcp
npm install
npm run build

Claude Code Configuration

Add to your Claude Code MCP settings (~/.claude/settings.json or project .claude/settings.local.json):

{
  "mcpServers": {
    "gopass": {
      "command": "node",
      "args": ["/path/to/gopass-mcp/dist/index.js"]
    }
  }
}

Tools

Tool

Description

Write?

list_secrets

List all secret paths, optionally filtered by folder prefix

No

get_secret

Retrieve a secret's content by path

No

search_secrets

Search for secrets by name

No

generate_password

Generate and store a random password

Yes

Environment Variables

Variable

Default

Description

GOPASS_PATH

gopass

Path to gopass binary

Security

  • Uses execFile (not exec) — no shell involved, no injection surface

  • Path validation blocks directory traversal (.., absolute paths, ~)

  • Secret values are never written to stderr or logs

  • No insert_secret or delete_secret — too dangerous for LLM automation

Development

npm test          # Run tests
npm run lint      # ESLint + Prettier check
npm run typecheck # tsc --noEmit
npm run build     # Compile to dist/

License

MIT

F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/inavhq/gopass-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server