Skip to main content
MCP server CX Codex

Bitwarden — Claude Code MCP server: features and setup

This MCP server for Claude Code connects an agent to a separate Bitwarden vault. It handles login records, 2FA codes, and passkeys.

MIT ★ 5 updated 2026-10-29

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env BITWARDEN_CLIENT_ID_FILE=<BITWARDEN_CLIENT_ID_FILE> --env BITWARDEN_CLIENT_SECRET_FILE=<BITWARDEN_CLIENT_SECRET_FILE> --env BITWARDEN_MASTER_PASSWORD_FILE=<BITWARDEN_MASTER_PASSWORD_FILE> --env BITWARDEN_SERVER=<BITWARDEN_SERVER> --transport stdio bitwarden -- npx -y @foreverworks/mcp-bitwarden
Open on GitHub

What Bitwarden does

The server lets an agent find saved logins, create entries, change their details, and generate passwords. It can retrieve 2FA codes, keep secrets in secure notes, and move items between an organization’s collections.

The agent can check passwords against known breaches, register passkeys, and sign in through WebAuthn. Setup requires a dedicated Bitwarden account, its API key, and the account’s master password; put the key and password in files. Node 22.19 or newer is required. Each request runs Bitwarden’s CLI, so calls take seconds rather than milliseconds. The server does not change vault settings or delete items, apart from removing a passkey.

What it helps with

  • find a saved login for a website
  • create a password and update sign-in details
  • retrieve a current 2FA code
  • save a key as a secure note
  • register a passkey or complete WebAuthn sign-in

Example prompts for the agent

  • Find the saved logins for example.com.
  • Save the key from example-key.json as a secure note.

How to install Bitwarden

Platform CLI

claude mcp add --env BITWARDEN_CLIENT_ID_FILE=<BITWARDEN_CLIENT_ID_FILE> --env BITWARDEN_CLIENT_SECRET_FILE=<BITWARDEN_CLIENT_SECRET_FILE> --env BITWARDEN_MASTER_PASSWORD_FILE=<BITWARDEN_MASTER_PASSWORD_FILE> --env BITWARDEN_SERVER=<BITWARDEN_SERVER> --transport stdio bitwarden -- npx -y @foreverworks/mcp-bitwarden

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Bitwarden

How do I install Bitwarden in Claude Code?

Run `claude mcp add bitwarden -e BITWARDEN_CLIENT_ID_FILE=<BITWARDEN_CLIENT_ID_FILE> -e BITWARDEN_CLIENT_SECRET_FILE=<BITWARDEN_CLIENT_SECRET_FILE> -e BITWARDEN_MASTER_PASSWORD_FILE=<BITWARDEN_MASTER_PASSWORD_FILE> -- npx -y @foreverworks/mcp-bitwarden`. Replace the placeholders with paths to the API key and master password files.

What does Bitwarden do?

It gives an agent access to a separate vault for login records, passwords, 2FA codes, secure notes, and passkeys used for WebAuthn sign-in.

What does Bitwarden require?

Use a dedicated Bitwarden account, its API key, and its master password, with the credentials stored in files. Node 22.19 or newer is also required; a paid plan is not.

Similar MCP servers

MCP servers catalog →

From the same set15

The whole set →
Home Assistant The MCP server for Claude Code reads Home Assistant data and runs its actions. An agent can inspect device states, check history, or change home settings. CX Codex +1 ★ 5repo stars eToll (rovinietă) eToll (rovinietă) is an MCP server for Claude Code that checks Romanian rovinietă vignettes and invoices in an eToll account. It prices a vignette and submits an order after confirmation. CX Codex +1 ★ 5repo stars ECB exchange rates The ECB exchange rates MCP server for Claude Code fetches the European Central Bank’s euro reference rates and converts amounts between currencies. Ask for a rate on a specific date or for a period. CX Codex +1 ★ 5repo stars Expo Application Services Expo Application Services is an MCP server for Claude Code that diagnoses failed builds, workflow runs, and store submissions. It can also inspect credentials and manage updates. CX Codex +1 ★ 5repo stars App Store and Google Play This MCP server for Claude Code reads App Store and Google Play reviews, plus TestFlight feedback and crash logs. It can publish replies under the developer’s name. CX Codex +1 ★ 5repo stars ANAF SPV The ANAF SPV MCP server for Claude Code retrieves documents from an SPV inbox and sends requests to ANAF. It can also validate declarations and file D212. CX Codex +1 ★ 5repo stars Oblio Issues and tracks Romanian fiscal invoices through the Oblio API. Computes totals according to ANAF rules directly in AI coding assistants. CX Codex +1 ★ 5repo stars Notion Connect an AI agent to Notion to search pages, read their contents, and make workspace changes. Useful when you want to work with notes and databases from a chat. CX Codex +1 ★ 5repo stars

Project sponsors

Companies that keep this analytics open