Official Bitwarden MCP server for credentials
## Bitwarden MCP Server: Open-Source Password Management The **Bitwarden MCP Server** integrates open-source password management into Google Antigravity, enabling secure credential access, vault synchronization, and secret management for individuals and organizations. ### Why Bitwarden MCP? - **Open-source security** - Transparent, audited code you can trust - **Self-hosting option** - Deploy on your own infrastructure for full control - **Vault access** - Securely retrieve passwords and secure notes - **Organization management** - Manage team vaults and collections - **CLI integration** - Command-line access for automation workflows ### Key Features #### 1. Credential Retrieval ```python # Securely access credentials creds = await mcp.call("bitwarden", "get_item", { "search": "Production Database", "folder": "Servers" }) print(f"Username: {creds[\"login\"][\"username\"]}") # Password is retrieved securely, never logged db_password = creds["login"]["password"] # Access custom fields for field in creds["fields"]: print(f"{field[\"name\"]}: {field[\"value\"]}") ``` #### 2. Vault Management ```python # List items in a folder items = await mcp.call("bitwarden", "list_items", { "folder": "API Keys", "type": "login" }) for item in items: print(f"- {item[\"name\"]} (last modified: {item[\"revisionDate\"]})") # Create new secure item await mcp.call("bitwarden", "create_item", { "name": "New API Service", "type": "login", "login": { "username": "api_user", "password": await mcp.call("bitwarden", "generate", {"length": 32}) }, "folder": "API Keys", "notes": "Created for new microservice" }) ``` #### 3. Organization Collections ```python # Access organization vault org_items = await mcp.call("bitwarden", "list_org_items", { "organization": "Engineering Team", "collection": "Production Secrets" }) # Share item with collection await mcp.call("bitwarden", "share_item", { "item_id": "item_xxx", "organization": "Engineering Team", "collections": ["DevOps", "Backend Team"] }) ``` #### 4. Secure Note Access ```python # Retrieve secure notes with configurations config_note = await mcp.call("bitwarden", "get_item", { "search": "Production Config", "type": "securenote" }) # Parse JSON configuration from secure note import json config = json.loads(config_note["notes"]) print(f"Environment: {config[\"environment\"]}") ``` ### Configuration ```json { "mcpServers": { "bitwarden": { "command": "npx", "args": ["-y", "@anthropic/mcp-bitwarden"], "env": { "BW_CLIENTID": "user.xxx", "BW_CLIENTSECRET": "your-client-secret", "BW_SERVER": "https://vault.bitwarden.com" } } } } ``` ### Use Cases **Development Credentials**: Access database passwords and API keys without hardcoding in configuration files. **Team Secrets**: Share credentials securely across development teams with organization vaults. **CI/CD Automation**: Inject secrets into build pipelines from secure vault storage. **Credential Rotation**: Generate new passwords and update vault entries during secret rotation. The Bitwarden MCP Server brings open-source password security into your development workflow.
{
"mcpServers": {
"bitwarden": {
"mcpServers": {
"bitwarden": {
"args": [
"-y",
"@bitwarden/mcp-server"
],
"command": "npx"
}
}
}
}
}