Back to Home
bitwarden icon

mcp-server

Verified Safe

by bitwarden

Overview

Provides AI assistants with secure access to Bitwarden password manager functionality, encompassing both personal vault management via CLI tools and organization administration via Bitwarden Public API.

Installation

Run Command
npx -y @bitwarden/mcp-server

Environment Variables

  • BW_SESSION
  • BW_CLIENT_ID
  • BW_CLIENT_SECRET
  • BW_API_BASE_URL
  • BW_IDENTITY_URL
  • BW_ALLOWED_DIRECTORIES

Security Notes

The server includes robust security measures to prevent command injection, API endpoint manipulation, and path traversal, using allowlists, input sanitization (removing dangerous characters, null bytes, newlines), and `child_process.spawn` with `shell: false`. API requests are authenticated with OAuth2 and data is sanitized. File path validation (validateFilePath) is particularly comprehensive, preventing various encoding and Unicode bypasses and enforcing an environment-variable-configurable allowlist of directories. The README provides critical warnings, explicitly stating that the server is designed for local use only and must never be exposed publicly, highlighting the inherent risks of exposing sensitive vault data to AI assistants. The high score reflects the strong implementation-level security controls given its sensitive domain, but users must strictly adhere to deployment warnings.

Similar Servers

Stats

Interest Score54
Security Score9
Cost ClassMedium
Avg Tokens1000
Stars110
Forks9
Last Update2026-01-19

Tags

Password ManagerCLI ToolOrganization AdminAI AssistantModel Context Protocol