Skip to content
Bitwarden Public API and Secrets Manager (unofficial)
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.

  1. Open .vscode/mcp.json on macOS, .vscode/mcp.json on Windows, or .vscode/mcp.json on Linux.

  2. Paste the JSON config below.

  3. Replace placeholder secrets, then restart the client if it does not reload on its own.

.vscode/mcp.json
{  "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

SystemPath
macOS.vscode/mcp.json
Windows.vscode/mcp.json
Linux.vscode/mcp.json