MCP directory
BP

Bitwarden Public API and Secrets Manager (unofficial)

by github.com/mguttmann · v0.3.1 · updated Oct 27, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • BITWARDEN_SELFHOST_API_BASE

    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

    Self-hosted instance: identity URL, e.g. https://vault.example.com/identity.

  • BITWARDEN_SELFHOST_CLIENT_ID

    Self-hosted instance: organization Public API client id (organization.<uuid>).

  • BITWARDEN_SELFHOST_CLIENT_SECRETsecret

    Self-hosted instance: organization Public API client secret. It can manage members, groups, collections and policies, including creating Owners.

  • BITWARDEN_CLOUD_API_BASE

    Bitwarden Cloud: API base URL, e.g. https://api.bitwarden.com. Used for license and subscription tools.

  • BITWARDEN_CLOUD_IDENTITY_URL

    Bitwarden Cloud: identity URL, e.g. https://identity.bitwarden.com.

  • BITWARDEN_CLOUD_CLIENT_ID

    Bitwarden Cloud: organization Public API client id (organization.<uuid>).

  • BITWARDEN_CLOUD_CLIENT_SECRETsecret

    Bitwarden Cloud: organization Public API client secret.

  • BWS_ACCESS_TOKENsecret

    Optional: Secrets Manager machine account access token; enables the bws_* tools. A malformed token is fatal at startup.

  • BWS_ORG_ID

    Optional: organization UUID for the Secrets Manager tools, used when a call passes no organizationId.

  • BWS_API_BASE

    Optional: Secrets Manager API base URL; defaults to BITWARDEN_SELFHOST_API_BASE.

  • BWS_IDENTITY_URL

    Optional: Secrets Manager identity URL; defaults to BITWARDEN_SELFHOST_IDENTITY_URL.

  • BITWARDEN_CONFIRM_WRITES

    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.

  • BITWARDEN_READ_ONLY

    true: write tools stay listed but refuse to run, and bw_raw_request allows GET only.

  • LOG_LEVEL

    Log level of the JSON log lines on stderr.

  • BW_MCP_MAX_RESPONSE_BYTES

    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.

More from github.com/mguttmann

More MCP servers