Skip to content
VS Code

Bitwarden for VS Code

com.foreverworks/bitwarden

Give your assistant its own Bitwarden vault for logins, passwords, 2FA codes and passkeys.

client:VS Code transport:stdio runtime:npm

Install Bitwarden in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "bitwarden-client-id-file",
      "description": "BITWARDEN_CLIENT_ID_FILE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "bitwarden-client-secret-file",
      "description": "BITWARDEN_CLIENT_SECRET_FILE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "bitwarden-master-password-file",
      "description": "BITWARDEN_MASTER_PASSWORD_FILE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "bitwarden-server",
      "description": "BITWARDEN_SERVER",
      "password": true
    }
  ],
  "servers": {
    "bitwarden": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@foreverworks/mcp-bitwarden"
      ],
      "env": {
        "BITWARDEN_CLIENT_ID_FILE": "${input:bitwarden-client-id-file}",
        "BITWARDEN_CLIENT_SECRET_FILE": "${input:bitwarden-client-secret-file}",
        "BITWARDEN_MASTER_PASSWORD_FILE": "${input:bitwarden-master-password-file}",
        "BITWARDEN_SERVER": "${input:bitwarden-server}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Bitwarden in other clients