Skip to main content

Bitwarden Public API and Secrets Manager (unofficial)

io.github.mguttmann/the-real-bitwarden-mcp

v0.3.1Updated Oct 27, 2026stdio · npm

Unofficial MCP server for the Bitwarden Public API and Secrets Manager, self-hosted or cloud.

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add the-real-bitwarden-mcp -e BITWARDEN_CONFIRM_WRITES=true -e BITWARDEN_READ_ONLY=false -e LOG_LEVEL=warn -e BW_MCP_MAX_RESPONSE_BYTES=1048576 -- npx -y [email protected]

Configuration

16 settings.

  • BITWARDEN_SELFHOST_CLIENT_SECRET
    Env var· optional· secret
    Self-hosted instance: organization Public API client secret. It can manage members, groups, collections and policies, including creating Owners.
  • BITWARDEN_CLOUD_CLIENT_SECRET
    Env var· optional· secret
    Bitwarden Cloud: organization Public API client secret.
  • BWS_ACCESS_TOKEN
    Env var· optional· secret
    Optional: Secrets Manager machine account access token; enables the bws_* tools. A malformed token is fatal at startup.
  • BITWARDEN_SELFHOST_API_BASE
    Env var· optional
    Self-hosted instance: API base URL, e.g. https://vault.example.com/api. Configure all four BITWARDEN_SELFHOST_* or all four BITWARDEN_CLOUD_* variables (or both); a partial set is fatal.
  • BITWARDEN_SELFHOST_IDENTITY_URL
    Env var· optional
    Self-hosted instance: identity URL, e.g. https://vault.example.com/identity.
  • BITWARDEN_SELFHOST_CLIENT_ID
    Env var· optional
    Self-hosted instance: organization Public API client id (organization.<uuid>).
Show 10 more
  • BITWARDEN_CLOUD_API_BASE
    Env var· optional
    Bitwarden Cloud: API base URL, e.g. https://api.bitwarden.com. Used for license and subscription tools.
  • BITWARDEN_CLOUD_IDENTITY_URL
    Env var· optional
    Bitwarden Cloud: identity URL, e.g. https://identity.bitwarden.com.
  • BITWARDEN_CLOUD_CLIENT_ID
    Env var· optional
    Bitwarden Cloud: organization Public API client id (organization.<uuid>).
  • BWS_ORG_ID
    Env var· optional
    Optional: organization UUID for the Secrets Manager tools, used when a call passes no organizationId.
  • BWS_API_BASE
    Env var· optional
    Optional: Secrets Manager API base URL; defaults to BITWARDEN_SELFHOST_API_BASE.
  • BWS_IDENTITY_URL
    Env var· optional
    Optional: Secrets Manager identity URL; defaults to BITWARDEN_SELFHOST_IDENTITY_URL.
  • BITWARDEN_CONFIRM_WRITES
    Env var· optional
    true: write tools return a preview unless the call carries confirm "YES". The model sets confirm itself, so this is friction, not a security boundary.Default: true
  • BITWARDEN_READ_ONLY
    Env var· optional
    true: write tools stay listed but refuse to run, and bw_raw_request allows GET only.Default: false
  • LOG_LEVEL
    Env var· optional
    Log level of the JSON log lines on stderr.Default: warn
  • BW_MCP_MAX_RESPONSE_BYTES
    Env var· optional
    Successful tool output above this many bytes is cut to valid JSON with a responseTruncated marker that says how to narrow or page the query.Default: 1048576

Listed in the official MCP Registry since Oct 27, 2026. Mirrored daily; last checked Nov 26, 2026.