# Enpass MCP server

> Allows an AI assistant to securely access Enpass password vaults to list entries, retrieve passwords, and generate TOTP codes locally.

- Repository: https://github.com/bitterdev/enpass-mcp
- Page: https://hostedmcp.org/servers/bitterdev/enpass-mcp
- Transport: stdio
- Stars: 3
- License: MIT
- Latest version: 0.1.0

## Install

### Claude Code

```sh
claude mcp add enpass-mcp -- npx -y enpass-mcp
```

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

```json
{
  "mcpServers": {
    "enpass-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "enpass-mcp"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "enpass-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "enpass-mcp"
      ]
    }
  }
}
```

### VS Code CLI

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

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

```json
{
  "mcpServers": {
    "enpass-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "enpass-mcp"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add enpass-mcp -- npx -y enpass-mcp
```

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

```toml
[mcp_servers.enpass-mcp]
command = "npx"
args = ["-y", "enpass-mcp"]
```

### Gemini CLI

```sh
gemini mcp add -s user enpass-mcp npx -- -y enpass-mcp
```

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

```json
{
  "mcpServers": {
    "enpass-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "enpass-mcp"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `ENPASS_MCP_ALLOW_WRITES` | no | no |  |

## Tools (13)

- `list_vaults`
- `unlock_vault`
- `lock_vault`
- `list_items`
- `get_item`
- `get_password`
- `get_otp`
- `list_attachments`
- `export_attachment`
- `sync_status`
- `create_item`
- `delete_item`
- `sync_pull`

## FAQ

### Is my master password safe with this server?

Yes, the master password is stored in your operating system's keychain and never passes through the AI model or appears in logs.

### Can the AI assistant delete or create my passwords?

By default, the server is read-only. You must explicitly enable writing by setting the ENPASS_MCP_ALLOW_WRITES environment variable to 1.

### Does the server return my passwords when listing items?

No, listing entries only returns non-sensitive information like titles and usernames. You must explicitly ask for a password to retrieve it.

### Can I use this with my 2FA codes?

Yes, the server can generate current TOTP/2FA codes for entries.
