Install guide · VS Code
Install Bitwarden Public API and Secrets Manager (unofficial) for VS Code
Workspace file .vscode/mcp.json uses the servers key. User settings can hold the same shape.
Add to Cursor: Bitwarden Public API and Secrets Manager (unofficial)Install in VS Code: Bitwarden Public API and Secrets Manager (unofficial)Install in VS Code Insiders: Bitwarden Public API and Secrets Manager (unofficial)
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
Open .vscode/mcp.json on macOS, .vscode/mcp.json on Windows, or .vscode/mcp.json on Linux.
Paste the JSON config below.
Replace placeholder secrets, then restart the client if it does not reload on its own.
{ "servers": { "mguttmann-the-real-bitwarden-mcp": { "type": "stdio", "command": "npx", "args": [ "-y", "the-real-bitwarden-mcp@0.3.1" ], "env": { "BITWARDEN_SELFHOST_API_BASE": "", "BITWARDEN_SELFHOST_IDENTITY_URL": "", "BITWARDEN_SELFHOST_CLIENT_ID": "", "BITWARDEN_SELFHOST_CLIENT_SECRET": "YOUR_BITWARDEN_SELFHOST_CLIENT_SECRET", "BITWARDEN_CLOUD_API_BASE": "", "BITWARDEN_CLOUD_IDENTITY_URL": "", "BITWARDEN_CLOUD_CLIENT_ID": "", "BITWARDEN_CLOUD_CLIENT_SECRET": "YOUR_BITWARDEN_CLOUD_CLIENT_SECRET", "BWS_ACCESS_TOKEN": "YOUR_BWS_ACCESS_TOKEN", "BWS_ORG_ID": "", "BWS_API_BASE": "", "BWS_IDENTITY_URL": "", "BITWARDEN_CONFIRM_WRITES": "true", "BITWARDEN_READ_ONLY": "false", "LOG_LEVEL": "warn", "BW_MCP_MAX_RESPONSE_BYTES": "1048576" } } }}
Where the config lives
| System | Path |
|---|---|
| macOS | .vscode/mcp.json |
| Windows | .vscode/mcp.json |
| Linux | .vscode/mcp.json |