A TypeScript MCP server wrapping the Bitwarden CLI.
Replaces the official @bitwarden/mcp-server package, which failed to connect
via stdio in Claude Code.
Source: apps/mcp-servers/bitwarden/
brew install bitwarden-cli or npm install -g @bitwarden/cli)BW_SESSION token from bw unlock --rawIn ~/.claude.json under the project's mcpServers:
"bitwarden": {
"type": "stdio",
"command": "node",
"args": ["/Users/kp/gh/multi/apps/mcp-servers/bitwarden/build/index.js"],
"env": {
"BW_SESSION": "<token from bw unlock --raw>"
}
}
The session token is ephemeral. Re-run bw unlock --raw and update the
config after the vault locks.
List vault items with optional filtering.
| Parameter | Required | Default | Description |
|---|---|---|---|
| search | No | - | Search term to filter items |
| folderId | No | - | Filter by folder ID |
| collectionId | No | - | Filter by collection ID |
Get a single vault item by ID or exact name, including its password.
| Parameter | Required | Description |
|---|---|---|
| identifier | Yes | Item ID or exact name |
Create a new login item.
| Parameter | Required | Description |
|---|---|---|
| name | Yes | Item name |
| username | No | Login username |
| password | No | Login password |
| uri | No | Login URL |
| notes | No | Notes |
| folderId | No | Folder ID |
Edit an existing vault item. Fetches the current item, applies changes, saves.
| Parameter | Required | Description |
|---|---|---|
| id | Yes | Item ID to edit |
| name | No | New name |
| username | No | New username |
| password | No | New password |
| uri | No | New URL (replaces existing) |
| notes | No | New notes |
Delete a vault item (moves to trash).
| Parameter | Required | Description |
|---|---|---|
| id | Yes | Item ID to delete |
Generate a secure password.
| Parameter | Required | Default | Description |
|---|---|---|---|
| length | No | 20 | Password length |
| uppercase | No | true | Include uppercase |
| lowercase | No | true | Include lowercase |
| numbers | No | true | Include numbers |
| special | No | true | Include special characters |
List all folders in the vault. No parameters.
Sync the local vault cache with the Bitwarden server. No parameters.
Check vault status (locked/unlocked, last sync, user email). No parameters.