bitwarden-mcp
Provides tools for managing Bitwarden organization members and vault groups, including inviting members, listing members/groups, and assigning members to groups.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@bitwarden-mcpInvite alice@company.com to the Sales group"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
bitwarden-mcp
English | 中文
Bitwarden MCP server for Claude — exposes the Bitwarden Public API's organization member and vault group management as MCP tools, focused on inviting members and assigning them to vault groups ("密码库群组邀请").
Tech stack: Python 3.12 + uv + FastMCP (Starlette/uvicorn)
关联需求:PRD-15544([Self-built MCP] MSPbots Integration - Bitwarden)。完整调研见
vendor-mcp-template/prd/Bitwarden.md。
Out of scope: Bitwarden Send (temporary secure credential links) is intentionally not
implemented. The Public API does not allow management of individual vault items, and Send
requires a stateful, unlocked local bw CLI vault — incompatible with this service's
stateless, multi-tenant gateway model.
Quick Start
cd bitwarden-mcp
uv sync
# stdio mode (for Claude Desktop / CLI), single shared credential set from env
BITWARDEN_CLIENT_ID=organization.xxxx BITWARDEN_CLIENT_SECRET=xxxx uv run bitwarden-mcpRelated MCP server: bitwarden-agent-vault-mcp
Authentication
This service is stateless: it never stores or persists Bitwarden credentials.
Credentials are either supplied once via environment variables (local dev, AUTH_MODE=env),
or per-request via HTTP headers (AUTH_MODE=gateway, production).
Bitwarden's Public API uses OAuth2 Client Credentials (grant_type=client_credentials,
scope=api.organization). On every tool call, this service exchanges the caller's
client_id + client_secret for a short-lived access_token (~1h TTL) and uses it
immediately — the token is not cached across requests, in order to fully comply with the
"no persisted credentials" requirement. This adds one extra Identity round trip per call.
Gateway mode HTTP headers (AUTH_MODE=gateway)
Header | 类型 | 是否必填 | 默认值 | 枚举值 | 字段描述 | Example |
| string | 必填 | 无 | 无 | 组织 API Key 的 Client ID(Admin Console → Settings → Organization info) |
|
| string | 必填 | 无 | 无 | 对应 Client Secret,仅用于本次请求内换取 access_token,不持久化、不写日志 |
|
| string | 可选 |
| 无 | Identity Token Endpoint,EU Cloud 传 |
|
| string | 可选 |
| 无 | Public API Base URL,EU Cloud 传 |
|
Missing either of the two required headers on a /mcp request returns 401 with a
required_headers list.
Env mode variables (AUTH_MODE=env, local dev only)
Variable | Default | Description |
| — | Organization API Key Client ID |
| — | Organization API Key Client Secret |
|
| Public API base URL |
|
| Identity token endpoint base URL |
|
|
|
|
|
|
|
| HTTP server port |
|
| HTTP server bind address |
Get credentials: as an organization Owner, go to Admin Console → Settings → Organization info → API Key. Requires a paid organization plan (Teams/Enterprise) — free personal Bitwarden accounts have no organization and cannot use the Public API.
Claude Desktop Setup
{
"mcpServers": {
"bitwarden": {
"command": "uv",
"args": ["run", "--directory", "/path/to/bitwarden-mcp", "bitwarden-mcp"],
"env": {
"BITWARDEN_CLIENT_ID": "organization.xxxx",
"BITWARDEN_CLIENT_SECRET": "xxxx"
}
}
}
}Transport Modes
stdio (Claude Desktop / CLI)
BITWARDEN_CLIENT_ID=organization.xxxx BITWARDEN_CLIENT_SECRET=xxxx uv run bitwarden-mcpHTTP — single-tenant (env mode)
BITWARDEN_CLIENT_ID=organization.xxxx BITWARDEN_CLIENT_SECRET=xxxx \
MCP_TRANSPORT=http AUTH_MODE=env uv run bitwarden-mcp
curl http://localhost:8080/healthHTTP — gateway / multi-tenant (production)
MCP_TRANSPORT=http AUTH_MODE=gateway uv run bitwarden-mcpTool List
Base URL: https://api.bitwarden.com (default; overridable per-request, see Authentication).
Tool | Description | Parameters |
| 列出组织下所有成员 | 无 |
| 获取指定成员详情 |
|
| 邀请新成员加入组织 |
|
| 重新发送邀请邮件 |
|
| 将成员从组织移除 |
|
| 列出组织下所有密码库群组 | 无 |
| 创建新的密码库群组 |
|
| 查看指定成员当前所属的群组 |
|
| 核心操作:将成员分配到指定的一组密码库群组(全量覆盖,非增量追加) |
|
Member type (role) enum: 0=Owner, 1=Admin, 2=User (default/regular Member), 3=Manager, 4=Custom.
Member status enum (read-only): 0=Invited, 1=Accepted, 2=Confirmed.
Rate limits: Bitwarden does not publish specific Public API rate-limit numbers (unlike
some other vendors). This service passes through 429 responses as-is if Bitwarden throttles
a request.
Test Examples
tools/list (gateway mode)
curl -X POST http://localhost:8080/mcp \
-H "x-bitwarden-client-id: organization.your_client_id" \
-H "x-bitwarden-client-secret: your_client_secret" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","method":"tools/list","id":1}'tools/call — invite a member
curl -X POST http://localhost:8080/mcp \
-H "x-bitwarden-client-id: organization.your_client_id" \
-H "x-bitwarden-client-secret: your_client_secret" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 2,
"params": {
"name": "bitwarden_invite_member",
"arguments": {"email": "user@example.com", "type": 2}
}
}'tools/call — assign a member to vault groups
curl -X POST http://localhost:8080/mcp \
-H "x-bitwarden-client-id: organization.your_client_id" \
-H "x-bitwarden-client-secret: your_client_secret" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 3,
"params": {
"name": "bitwarden_update_member_groups",
"arguments": {"member_id": "<member-uuid>", "group_ids": ["<group-uuid>"]}
}
}'Missing headers → 401
curl -i -X POST http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","method":"tools/list","id":1}'
# HTTP/1.1 401 Unauthorized
# {"error":"Missing credentials","required_headers":["x-bitwarden-client-id","x-bitwarden-client-secret"]}API Reference
Known Limitations
No Bitwarden Send support — out of scope by design (see top of this README).
bitwarden_update_member_groupsis a full replace, not an append — it mirrors the underlyingPUT /public/members/{id}/group-idssemantics exactly. To add a member to one more group without removing existing ones, callbitwarden_list_member_groupsfirst, merge in the new group id, then pass the full list.No documented Public API rate limits from Bitwarden — errors are passed through as-is.
Token exchange happens on every tool call (no caching), which adds latency but keeps the service fully stateless per the SOP requirement.
Requires a paid organization plan (Teams/Enterprise) with an organization API key generated; free personal accounts cannot use this service.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceMCP server for Vaultwarden/Bitwarden vault management. Enables AI agents to securely create, search, read, and update vault items via the official Bitwarden CLI, with safe-by-default redaction and support for both stdio and SSE transports.Last updated5338012MIT
- AlicenseAqualityBmaintenanceAn MCP server for using Bitwarden Secrets Manager as durable credential storage for agent workflows, enabling secure secret storage, retrieval, and injection into trusted executables.Last updated7MIT
- Alicense-qualityBmaintenanceMulti-tenant MCP server for self-hosted Kanboard that enables team members to manage Kanboard projects, tasks, and boards with per-user authentication and permissions.Last updatedMIT
Related MCP Connectors
Self-hosted federated MCP gateway: one OAuth 2.1 MCP server in front of N apps, user-level scopes.
The official MCP Server from Mia-Platform to interact with Mia-Platform Console
MCP server for interacting with the Supabase platform
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MSPbotsAI/bitwarden-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server