
🔐 Vaultwarden / Bitwarden MCP 服务器用于凭证感知的 AI 代理
概览
warden-mcp 允许 MCP 客户端通过官方 Bitwarden CLI(bw)搜索、创建、更新、移动和读取 Vaultwarden 或 Bitwarden 保险库项目。它面向需要凭证、TOTP 代码、安全笔记、附件、发送、文件夹、组织和集合的代理和自动化,而无需重新实现 Bitwarden 客户端加密。 当代理需要在浏览器或管理流程中登录真实系统,但你不希望密码硬编码在提示、配置文件或一次性脚本中时,可以使用它。 当本地MCP主机直接启动服务器时,使用stdio模式。这是桌面代理最简单、最便携的设置。 - Node.js 22.x - npm 10.x - Vaultwarden 或 Bitwarden 账户 - Bitwarden API 密钥对或用户名/密码登录 如果包有用,给仓库加上星号,方便其他代理构建者找到。 大多数本地主机应该用stdio。
概述(AI 翻译)
Vaultwarden / Bitwarden MCP 服务器用于凭证感知 AI 代理。
warden-mcp 让 MCP 客户端能够搜索、创建、更新、移动和读取
通过官方Bitwarden的CLI(bw)管理Vaultwarden或Bitwarden的Vault项目。
它专为需要凭证、TOTP代码且安全的代理和自动化设计
笔记、附件、发送、文件夹、组织和集合,没有
重新实现 Bitwarden 客户端加密。
当代理需要在浏览器或管理员中登录真实系统时使用它 工作流程,但你不希望密码硬编码在提示词、配置文件或 一次性剧本。
快速启动
当本地MCP主机直接启动服务器时,使用stdio模式。它是 桌面代理最简单且便携的配置。
先修条件:
- Node.js 22.x
- NPM 10.X
- Vaultwarden 或 Bitwarden 账户
- Bitwarden API 密钥对或用户名/密码登录
运行服务器:
用户名登录也有效:
如果软件包有用,给仓库加星号 这样其他代理构建者也能找到它。
在MCP主机中安装
大多数本地主机应使用 stdio。以下示例使用 API 密钥认证;替换
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
warden-mcp
Vaultwarden / Bitwarden MCP server for credential-aware AI agents.
warden-mcp lets MCP clients search, create, update, move, and read
Vaultwarden or Bitwarden vault items through the official Bitwarden CLI (bw).
It is built for agents and automation that need credentials, TOTP codes, secure
notes, attachments, Sends, folders, organizations, and collections without
re-implementing Bitwarden client-side crypto.
Use it when an agent needs to log in to real systems during a browser or admin workflow, but you do not want passwords hardcoded in prompts, config files, or one-off scripts.
Quick Start
Use stdio mode when a local MCP host launches the server directly. It is the simplest and most portable setup for desktop agents.
Prerequisites:
- Node.js 22.x
- npm 10.x
- a Vaultwarden or Bitwarden account
- either a Bitwarden API key pair or username/password login
Run the server:
BW_HOST=https://vaultwarden.example.com \
BW_CLIENTID=user.xxxxx \
BW_CLIENTSECRET=xxxxx \
BW_PASSWORD='your-master-password' \
npx -y @icoretech/warden-mcp@latest --stdio
Username login also works:
BW_HOST=https://vaultwarden.example.com \
[email protected] \
BW_PASSWORD='your-master-password' \
npx -y @icoretech/warden-mcp@latest --stdio
If the package is useful, star the repository so other agent builders can find it.
Install In MCP Hosts
Most local hosts should use stdio. The examples below use API-key auth; replace
BW_CLIENTID and BW_CLIENTSECRET with BW_USER if you prefer username login.
Claude Code
claude mcp add-json warden '{"command":"npx","args":["-y","@icoretech/warden-mcp@latest","--stdio"],"env":{"BW_HOST":"https://vaultwarden.example.com","BW_CLIENTID":"user.xxxxx","BW_CLIENTSECRET":"xxxxx","BW_PASSWORD":"your-master-password"}}'
Codex
codex mcp add warden \
--env BW_HOST=https://vaultwarden.example.com \
--env BW_CLIENTID=user.xxxxx \
--env BW_CLIENTSECRET=xxxxx \
--env BW_PASSWORD='your-master-password' \
-- npx -y @icoretech/warden-mcp@latest --stdio
Codex TOML config:
[mcp_servers.warden]
command = "npx"
args = ["-y", "@icoretech/warden-mcp@latest", "--stdio"]
startup_timeout_sec = 30
[mcp_servers.warden.env]
BW_HOST = "https://vaultwarden.example.com"
BW_CLIENTID = "user.xxxxx"
安装
npx -y @icoretech/warden-mcp@latest --stdio配置
{
"mcpServers": {
"warden": {
"command": "npx",
"args": ["-y", "@icoretech/warden-mcp@latest", "--stdio"],
"env": {
"BW_HOST": "https://vaultwarden.example.com",
"BW_CLIENTID": "user.xxxxx",
"BW_CLIENTSECRET": "xxxxx",
"BW_PASSWORD": "your-master-password"
}
}
}
}