原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Bitwarden Public API and Secrets Manager (unofficial)

作者:mguttmann版本 0.3.1i★ 0i在你的电脑上运行代码仓库 ↗
注册名称io.github.mguttmann/the-real-bitwarden-mcp

安装方法

What it does

Unofficial MCP server for the Bitwarden Public API and Secrets Manager, self-hosted or cloud.

  • Connects 在你的电脑上运行
  • Account or key Needs BITWARDEN_SELFHOST_CLIENT_SECRET, BITWARDEN_CLOUD_CLIENT_SECRET
  • Category 网络安全

为什么排在这里

列表按使用分(满分 100)排序,由以下部分组成

热度0/80GitHub 星标或每周下载量:较大的计 60,较小的计 20
新鲜度12/1230 天内有发布或代码更新得满分
仍在响应0/8上次检查时云端端点有响应
使用分12/100

质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)

安装

选择你使用的 AI 应用,然后复制设置。

用一句话让 AI 帮你安装

请帮我安装 Bitwarden Public API and Secrets Manager (unofficial)。按照 https://mcp.popnx.com/i/mguttmann-the-real-bitwarden-mcp.md 操作,先把命令给我看,等我同意后再运行。

粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文

通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude,但需要先准备

需要 Bitwarden Public API and Secrets Manager (unofficial) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用

让 AI 帮你安装

把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 Claude 安装 MCP server Bitwarden Public API and Secrets Manager (unofficial),按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "the-real-bitwarden": { "command": "npx", "args": [ "-y", "the-real-bitwarden-mcp" ], "env": { "BITWARDEN_SELFHOST_CLIENT_SECRET": "your-value", "BITWARDEN_CLOUD_CLIENT_SECRET": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) BITWARDEN_SELFHOST_CLIENT_SECRET, BITWARDEN_CLOUD_CLIENT_SECRET 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Bitwarden Public API and Secrets Manager (unofficial) 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 Bitwarden Public API and Secrets Manager (unofficial) 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Bitwarden Public API and Secrets Manager (unofficial) 网站 ↗

  3. 打开电脑版 Claude 应用的设置文件

    SettingsDeveloperEdit Config

  4. 粘贴这些设置并保存文件

    {
      "mcpServers": {
        "the-real-bitwarden": {
          "command": "npx",
          "args": [
            "-y",
            "the-real-bitwarden-mcp"
          ],
          "env": {
            "BITWARDEN_SELFHOST_CLIENT_SECRET": "your-value",
            "BITWARDEN_CLOUD_CLIENT_SECRET": "your-value"
          }
        }
      }
    }

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 退出 Claude 再重新打开

  6. 试一试

    用 Bitwarden Public API and Secrets Manager (unofficial) 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 Bitwarden Public API and Secrets Manager (unofficial),或回答中出现 Bitwarden Public API and Secrets Manager (unofficial) 的工具名称,就表示连接成功

14 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • BITWARDEN_SELFHOST_API_BASE Self-hosted instance: API base URL, e.g. https://vault.example.com/api. Configure all four BITWARDEN_SELFHOST_* or all four BITWARDEN_CLOUD_* variables (or both); a partial set is fatal.
  • BITWARDEN_SELFHOST_IDENTITY_URL Self-hosted instance: identity URL, e.g. https://vault.example.com/identity.
  • BITWARDEN_SELFHOST_CLIENT_ID 自托管实例的组织 Public API 客户端 ID(organization. )。
    查看英文原文Self-hosted instance: organization Public API client id (organization. ).
  • BITWARDEN_CLOUD_API_BASE Bitwarden Cloud: API base URL, e.g. https://api.bitwarden.com. Used for license and subscription tools.
  • BITWARDEN_CLOUD_IDENTITY_URL Bitwarden Cloud: identity URL, e.g. https://identity.bitwarden.com.
  • BITWARDEN_CLOUD_CLIENT_ID Bitwarden Cloud: organization Public API client id (organization. ).
  • BWS_ACCESS_TOKEN 可选:Secrets Manager 机器账户访问令牌;启用 bws_ 工具。令牌格式错误会导致启动失败。
    查看英文原文Optional: Secrets Manager machine account access token; enables the bws_* tools. A malformed token is fatal at startup.
  • BWS_ORG_ID 可选:Secrets Manager 工具使用的组织 UUID,当调用未传入 organizationId 时使用。
    查看英文原文Optional: organization UUID for the Secrets Manager tools, used when a call passes no organizationId.
  • BWS_API_BASE 可选:Secrets Manager API 基础 URL;默认为 BITWARDEN_SELFHOST_API_BASE。
    查看英文原文Optional: Secrets Manager API base URL; defaults to BITWARDEN_SELFHOST_API_BASE.
  • BWS_IDENTITY_URL 可选:Secrets Manager 身份 URL;默认为 BITWARDEN_SELFHOST_IDENTITY_URL。
    查看英文原文Optional: Secrets Manager identity URL; defaults to BITWARDEN_SELFHOST_IDENTITY_URL.
  • BITWARDEN_CONFIRM_WRITES true:除非调用中包含 confirm 为 "YES",否则写入类工具只返回预览。confirm 由模型自行设置,因此这只是一层阻碍,而非安全边界。
    查看英文原文true: write tools return a preview unless the call carries confirm "YES". The model sets confirm itself, so this is friction, not a security boundary.
    · 默认值 true
  • BITWARDEN_READ_ONLY true:写入类工具仍会列出但拒绝运行,且 bw_raw_request 仅允许 GET。
    查看英文原文true: write tools stay listed but refuse to run, and bw_raw_request allows GET only.
    · 默认值 false
  • LOG_LEVEL stderr 上 JSON 日志行的日志级别。
    查看英文原文Log level of the JSON log lines on stderr.
    · 默认值 warn
  • BW_MCP_MAX_RESPONSE_BYTES 成功的工具输出如果超过此字节数,将被截断为有效的 JSON,并附带 responseTruncated 标记,说明如何缩小范围或分页查询
    查看英文原文Successful tool output above this many bytes is cut to valid JSON with a responseTruncated marker that says how to narrow or page the query.
    · 默认值 1048576

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 Bitwarden Public API and Secrets Manager (unofficial)

Bitwarden Public API and Secrets Manager (unofficial) 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器

你可以改用这些方式

A · 使用能连接 Bitwarden Public API and Secrets Manager (unofficial) 的应用

  • 需要 Bitwarden Public API and Secrets Manager (unofficial) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
  • 需要 Bitwarden Public API and Secrets Manager (unofficial) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
  • 需要 Bitwarden Public API and Secrets Manager (unofficial) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
  • 需要 Bitwarden Public API and Secrets Manager (unofficial) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)

B · 网络安全 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code,但需要先准备

需要 Bitwarden Public API and Secrets Manager (unofficial) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)

让 AI 帮你安装

把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 Claude Code 安装 MCP server Bitwarden Public API and Secrets Manager (unofficial),按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user the-real-bitwarden --env BITWARDEN_SELFHOST_CLIENT_SECRET=your-value --env BITWARDEN_CLOUD_CLIENT_SECRET=your-value -- npx -y the-real-bitwarden-mcp 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) BITWARDEN_SELFHOST_CLIENT_SECRET, BITWARDEN_CLOUD_CLIENT_SECRET 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Bitwarden Public API and Secrets Manager (unofficial) 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 Bitwarden Public API and Secrets Manager (unofficial) 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Bitwarden Public API and Secrets Manager (unofficial) 网站 ↗

  3. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  4. 粘贴这条命令并按 Enter

    claude mcp add --scope user the-real-bitwarden --env BITWARDEN_SELFHOST_CLIENT_SECRET=your-value --env BITWARDEN_CLOUD_CLIENT_SECRET=your-value -- npx -y the-real-bitwarden-mcp

    按 Enter 前,把“your-value”改成你的密钥

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 Claude Code 中输入 /mcp

    应能看到 Bitwarden Public API and Secrets Manager (unofficial) 在列表中并显示已连接

  6. 试一试

    用 Bitwarden Public API and Secrets Manager (unofficial) 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 Bitwarden Public API and Secrets Manager (unofficial),或回答中出现 Bitwarden Public API and Secrets Manager (unofficial) 的工具名称,就表示连接成功

14 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • BITWARDEN_SELFHOST_API_BASE Self-hosted instance: API base URL, e.g. https://vault.example.com/api. Configure all four BITWARDEN_SELFHOST_* or all four BITWARDEN_CLOUD_* variables (or both); a partial set is fatal.
  • BITWARDEN_SELFHOST_IDENTITY_URL Self-hosted instance: identity URL, e.g. https://vault.example.com/identity.
  • BITWARDEN_SELFHOST_CLIENT_ID 自托管实例的组织 Public API 客户端 ID(organization. )。
    查看英文原文Self-hosted instance: organization Public API client id (organization. ).
  • BITWARDEN_CLOUD_API_BASE Bitwarden Cloud: API base URL, e.g. https://api.bitwarden.com. Used for license and subscription tools.
  • BITWARDEN_CLOUD_IDENTITY_URL Bitwarden Cloud: identity URL, e.g. https://identity.bitwarden.com.
  • BITWARDEN_CLOUD_CLIENT_ID Bitwarden Cloud: organization Public API client id (organization. ).
  • BWS_ACCESS_TOKEN 可选:Secrets Manager 机器账户访问令牌;启用 bws_ 工具。令牌格式错误会导致启动失败。
    查看英文原文Optional: Secrets Manager machine account access token; enables the bws_* tools. A malformed token is fatal at startup.
  • BWS_ORG_ID 可选:Secrets Manager 工具使用的组织 UUID,当调用未传入 organizationId 时使用。
    查看英文原文Optional: organization UUID for the Secrets Manager tools, used when a call passes no organizationId.
  • BWS_API_BASE 可选:Secrets Manager API 基础 URL;默认为 BITWARDEN_SELFHOST_API_BASE。
    查看英文原文Optional: Secrets Manager API base URL; defaults to BITWARDEN_SELFHOST_API_BASE.
  • BWS_IDENTITY_URL 可选:Secrets Manager 身份 URL;默认为 BITWARDEN_SELFHOST_IDENTITY_URL。
    查看英文原文Optional: Secrets Manager identity URL; defaults to BITWARDEN_SELFHOST_IDENTITY_URL.
  • BITWARDEN_CONFIRM_WRITES true:除非调用中包含 confirm 为 "YES",否则写入类工具只返回预览。confirm 由模型自行设置,因此这只是一层阻碍,而非安全边界。
    查看英文原文true: write tools return a preview unless the call carries confirm "YES". The model sets confirm itself, so this is friction, not a security boundary.
    · 默认值 true
  • BITWARDEN_READ_ONLY true:写入类工具仍会列出但拒绝运行,且 bw_raw_request 仅允许 GET。
    查看英文原文true: write tools stay listed but refuse to run, and bw_raw_request allows GET only.
    · 默认值 false
  • LOG_LEVEL stderr 上 JSON 日志行的日志级别。
    查看英文原文Log level of the JSON log lines on stderr.
    · 默认值 warn
  • BW_MCP_MAX_RESPONSE_BYTES 成功的工具输出如果超过此字节数,将被截断为有效的 JSON,并附带 responseTruncated 标记,说明如何缩小范围或分页查询
    查看英文原文Successful tool output above this many bytes is cut to valid JSON with a responseTruncated marker that says how to narrow or page the query.
    · 默认值 1048576

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor,但需要先准备

需要 Bitwarden Public API and Secrets Manager (unofficial) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)

让 AI 帮你安装

把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 Cursor 安装 MCP server Bitwarden Public API and Secrets Manager (unofficial),按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "the-real-bitwarden": { "command": "npx", "args": [ "-y", "the-real-bitwarden-mcp" ], "env": { "BITWARDEN_SELFHOST_CLIENT_SECRET": "your-value", "BITWARDEN_CLOUD_CLIENT_SECRET": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) BITWARDEN_SELFHOST_CLIENT_SECRET, BITWARDEN_CLOUD_CLIENT_SECRET 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Bitwarden Public API and Secrets Manager (unofficial) 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 Bitwarden Public API and Secrets Manager (unofficial) 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Bitwarden Public API and Secrets Manager (unofficial) 网站 ↗

  3. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  4. 填写你的密钥

    在 Bitwarden Public API and Secrets Manager (unofficial) 的设置中,BITWARDEN_SELFHOST_CLIENT_SECRET, BITWARDEN_CLOUD_CLIENT_SECRET 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 Cursor 中以 Agent 模式打开 AI 聊天

  6. 试一试

    用 Bitwarden Public API and Secrets Manager (unofficial) 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 Bitwarden Public API and Secrets Manager (unofficial),或回答中出现 Bitwarden Public API and Secrets Manager (unofficial) 的工具名称,就表示连接成功

14 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • BITWARDEN_SELFHOST_API_BASE Self-hosted instance: API base URL, e.g. https://vault.example.com/api. Configure all four BITWARDEN_SELFHOST_* or all four BITWARDEN_CLOUD_* variables (or both); a partial set is fatal.
  • BITWARDEN_SELFHOST_IDENTITY_URL Self-hosted instance: identity URL, e.g. https://vault.example.com/identity.
  • BITWARDEN_SELFHOST_CLIENT_ID 自托管实例的组织 Public API 客户端 ID(organization. )。
    查看英文原文Self-hosted instance: organization Public API client id (organization. ).
  • BITWARDEN_CLOUD_API_BASE Bitwarden Cloud: API base URL, e.g. https://api.bitwarden.com. Used for license and subscription tools.
  • BITWARDEN_CLOUD_IDENTITY_URL Bitwarden Cloud: identity URL, e.g. https://identity.bitwarden.com.
  • BITWARDEN_CLOUD_CLIENT_ID Bitwarden Cloud: organization Public API client id (organization. ).
  • BWS_ACCESS_TOKEN 可选:Secrets Manager 机器账户访问令牌;启用 bws_ 工具。令牌格式错误会导致启动失败。
    查看英文原文Optional: Secrets Manager machine account access token; enables the bws_* tools. A malformed token is fatal at startup.
  • BWS_ORG_ID 可选:Secrets Manager 工具使用的组织 UUID,当调用未传入 organizationId 时使用。
    查看英文原文Optional: organization UUID for the Secrets Manager tools, used when a call passes no organizationId.
  • BWS_API_BASE 可选:Secrets Manager API 基础 URL;默认为 BITWARDEN_SELFHOST_API_BASE。
    查看英文原文Optional: Secrets Manager API base URL; defaults to BITWARDEN_SELFHOST_API_BASE.
  • BWS_IDENTITY_URL 可选:Secrets Manager 身份 URL;默认为 BITWARDEN_SELFHOST_IDENTITY_URL。
    查看英文原文Optional: Secrets Manager identity URL; defaults to BITWARDEN_SELFHOST_IDENTITY_URL.
  • BITWARDEN_CONFIRM_WRITES true:除非调用中包含 confirm 为 "YES",否则写入类工具只返回预览。confirm 由模型自行设置,因此这只是一层阻碍,而非安全边界。
    查看英文原文true: write tools return a preview unless the call carries confirm "YES". The model sets confirm itself, so this is friction, not a security boundary.
    · 默认值 true
  • BITWARDEN_READ_ONLY true:写入类工具仍会列出但拒绝运行,且 bw_raw_request 仅允许 GET。
    查看英文原文true: write tools stay listed but refuse to run, and bw_raw_request allows GET only.
    · 默认值 false
  • LOG_LEVEL stderr 上 JSON 日志行的日志级别。
    查看英文原文Log level of the JSON log lines on stderr.
    · 默认值 warn
  • BW_MCP_MAX_RESPONSE_BYTES 成功的工具输出如果超过此字节数,将被截断为有效的 JSON,并附带 responseTruncated 标记,说明如何缩小范围或分页查询
    查看英文原文Successful tool output above this many bytes is cut to valid JSON with a responseTruncated marker that says how to narrow or page the query.
    · 默认值 1048576

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code,但需要先准备

需要 Bitwarden Public API and Secrets Manager (unofficial) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)

让 AI 帮你安装

把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 VS Code 安装 MCP server Bitwarden Public API and Secrets Manager (unofficial),按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "the-real-bitwarden": { "type": "stdio", "command": "npx", "args": [ "-y", "the-real-bitwarden-mcp" ], "env": { "BITWARDEN_SELFHOST_CLIENT_SECRET": "your-value", "BITWARDEN_CLOUD_CLIENT_SECRET": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) BITWARDEN_SELFHOST_CLIENT_SECRET, BITWARDEN_CLOUD_CLIENT_SECRET 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Bitwarden Public API and Secrets Manager (unofficial) 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 Bitwarden Public API and Secrets Manager (unofficial) 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Bitwarden Public API and Secrets Manager (unofficial) 网站 ↗

  3. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  4. 填写你的密钥

    在 Bitwarden Public API and Secrets Manager (unofficial) 的设置中,BITWARDEN_SELFHOST_CLIENT_SECRET, BITWARDEN_CLOUD_CLIENT_SECRET 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 VS Code 中以 Agent 模式打开 AI 聊天

  6. 试一试

    用 Bitwarden Public API and Secrets Manager (unofficial) 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 Bitwarden Public API and Secrets Manager (unofficial),或回答中出现 Bitwarden Public API and Secrets Manager (unofficial) 的工具名称,就表示连接成功

14 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • BITWARDEN_SELFHOST_API_BASE Self-hosted instance: API base URL, e.g. https://vault.example.com/api. Configure all four BITWARDEN_SELFHOST_* or all four BITWARDEN_CLOUD_* variables (or both); a partial set is fatal.
  • BITWARDEN_SELFHOST_IDENTITY_URL Self-hosted instance: identity URL, e.g. https://vault.example.com/identity.
  • BITWARDEN_SELFHOST_CLIENT_ID 自托管实例的组织 Public API 客户端 ID(organization. )。
    查看英文原文Self-hosted instance: organization Public API client id (organization. ).
  • BITWARDEN_CLOUD_API_BASE Bitwarden Cloud: API base URL, e.g. https://api.bitwarden.com. Used for license and subscription tools.
  • BITWARDEN_CLOUD_IDENTITY_URL Bitwarden Cloud: identity URL, e.g. https://identity.bitwarden.com.
  • BITWARDEN_CLOUD_CLIENT_ID Bitwarden Cloud: organization Public API client id (organization. ).
  • BWS_ACCESS_TOKEN 可选:Secrets Manager 机器账户访问令牌;启用 bws_ 工具。令牌格式错误会导致启动失败。
    查看英文原文Optional: Secrets Manager machine account access token; enables the bws_* tools. A malformed token is fatal at startup.
  • BWS_ORG_ID 可选:Secrets Manager 工具使用的组织 UUID,当调用未传入 organizationId 时使用。
    查看英文原文Optional: organization UUID for the Secrets Manager tools, used when a call passes no organizationId.
  • BWS_API_BASE 可选:Secrets Manager API 基础 URL;默认为 BITWARDEN_SELFHOST_API_BASE。
    查看英文原文Optional: Secrets Manager API base URL; defaults to BITWARDEN_SELFHOST_API_BASE.
  • BWS_IDENTITY_URL 可选:Secrets Manager 身份 URL;默认为 BITWARDEN_SELFHOST_IDENTITY_URL。
    查看英文原文Optional: Secrets Manager identity URL; defaults to BITWARDEN_SELFHOST_IDENTITY_URL.
  • BITWARDEN_CONFIRM_WRITES true:除非调用中包含 confirm 为 "YES",否则写入类工具只返回预览。confirm 由模型自行设置,因此这只是一层阻碍,而非安全边界。
    查看英文原文true: write tools return a preview unless the call carries confirm "YES". The model sets confirm itself, so this is friction, not a security boundary.
    · 默认值 true
  • BITWARDEN_READ_ONLY true:写入类工具仍会列出但拒绝运行,且 bw_raw_request 仅允许 GET。
    查看英文原文true: write tools stay listed but refuse to run, and bw_raw_request allows GET only.
    · 默认值 false
  • LOG_LEVEL stderr 上 JSON 日志行的日志级别。
    查看英文原文Log level of the JSON log lines on stderr.
    · 默认值 warn
  • BW_MCP_MAX_RESPONSE_BYTES 成功的工具输出如果超过此字节数,将被截断为有效的 JSON,并附带 responseTruncated 标记,说明如何缩小范围或分页查询
    查看英文原文Successful tool output above this many bytes is cut to valid JSON with a responseTruncated marker that says how to narrow or page the query.
    · 默认值 1048576

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 Bitwarden Public API and Secrets Manager (unofficial) 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

安装在电脑上

Claude Code

claude mcp add --scope user the-real-bitwarden --env BITWARDEN_SELFHOST_CLIENT_SECRET=your-value --env BITWARDEN_CLOUD_CLIENT_SECRET=your-value -- npx -y the-real-bitwarden-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "the-real-bitwarden": {
      "command": "npx",
      "args": [
        "-y",
        "the-real-bitwarden-mcp"
      ],
      "env": {
        "BITWARDEN_SELFHOST_CLIENT_SECRET": "your-value",
        "BITWARDEN_CLOUD_CLIENT_SECRET": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "the-real-bitwarden": {
      "command": "npx",
      "args": [
        "-y",
        "the-real-bitwarden-mcp"
      ],
      "env": {
        "BITWARDEN_SELFHOST_CLIENT_SECRET": "your-value",
        "BITWARDEN_CLOUD_CLIENT_SECRET": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "the-real-bitwarden": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "the-real-bitwarden-mcp"
      ],
      "env": {
        "BITWARDEN_SELFHOST_CLIENT_SECRET": "your-value",
        "BITWARDEN_CLOUD_CLIENT_SECRET": "your-value"
      }
    }
  }
}

需要你填写的值

  • BITWARDEN_SELFHOST_API_BASE env
    Self-hosted instance: API base URL, e.g. https://vault.example.com/api. Configure all four BITWARDEN_SELFHOST_* or all four BITWARDEN_CLOUD_* variables (or both); a partial set is fatal.
  • BITWARDEN_SELFHOST_IDENTITY_URL env
    Self-hosted instance: identity URL, e.g. https://vault.example.com/identity.
  • BITWARDEN_SELFHOST_CLIENT_ID env
    自托管实例的组织 Public API 客户端 ID(organization. )。
    查看英文原文Self-hosted instance: organization Public API client id (organization. ).
  • BITWARDEN_SELFHOST_CLIENT_SECRET 机密 必填 env
    自托管实例的组织 Public API 客户端密钥。可管理成员、群组、集合和策略,包括创建 Owner。
    查看英文原文Self-hosted instance: organization Public API client secret. It can manage members, groups, collections and policies, including creating Owners.
  • BITWARDEN_CLOUD_API_BASE env
    Bitwarden Cloud: API base URL, e.g. https://api.bitwarden.com. Used for license and subscription tools.
  • BITWARDEN_CLOUD_IDENTITY_URL env
    Bitwarden Cloud: identity URL, e.g. https://identity.bitwarden.com.
  • BITWARDEN_CLOUD_CLIENT_ID env
    Bitwarden Cloud: organization Public API client id (organization. ).
  • BITWARDEN_CLOUD_CLIENT_SECRET 机密 必填 env
    Bitwarden Cloud: organization Public API client secret.
  • BWS_ACCESS_TOKEN 机密 env
    可选:Secrets Manager 机器账户访问令牌;启用 bws_ 工具。令牌格式错误会导致启动失败。
    查看英文原文Optional: Secrets Manager machine account access token; enables the bws_* tools. A malformed token is fatal at startup.
  • BWS_ORG_ID env
    可选:Secrets Manager 工具使用的组织 UUID,当调用未传入 organizationId 时使用。
    查看英文原文Optional: organization UUID for the Secrets Manager tools, used when a call passes no organizationId.
  • BWS_API_BASE env
    可选:Secrets Manager API 基础 URL;默认为 BITWARDEN_SELFHOST_API_BASE。
    查看英文原文Optional: Secrets Manager API base URL; defaults to BITWARDEN_SELFHOST_API_BASE.
  • BWS_IDENTITY_URL env
    可选:Secrets Manager 身份 URL;默认为 BITWARDEN_SELFHOST_IDENTITY_URL。
    查看英文原文Optional: Secrets Manager identity URL; defaults to BITWARDEN_SELFHOST_IDENTITY_URL.
  • BITWARDEN_CONFIRM_WRITES env
    true:除非调用中包含 confirm 为 "YES",否则写入类工具只返回预览。confirm 由模型自行设置,因此这只是一层阻碍,而非安全边界。
    查看英文原文true: write tools return a preview unless the call carries confirm "YES". The model sets confirm itself, so this is friction, not a security boundary.
  • BITWARDEN_READ_ONLY env
    true:写入类工具仍会列出但拒绝运行,且 bw_raw_request 仅允许 GET。
    查看英文原文true: write tools stay listed but refuse to run, and bw_raw_request allows GET only.
  • LOG_LEVEL env
    stderr 上 JSON 日志行的日志级别。
    查看英文原文Log level of the JSON log lines on stderr.
  • BW_MCP_MAX_RESPONSE_BYTES env
    成功的工具输出如果超过此字节数,将被截断为有效的 JSON,并附带 responseTruncated 标记,说明如何缩小范围或分页查询
    查看英文原文Successful tool output above this many bytes is cut to valid JSON with a responseTruncated marker that says how to narrow or page the query.

说明为自动翻译,变量名保持原样;不确定时请查看原文。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
139/周
连接方式
在你的电脑上运行
最新版本i
0.3.1
发布到注册中心i
2026年10月28日
代码最后更新i
2026年11月16日
作者
mguttmann
软件包
npm: the-real-bitwarden-mcp
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月19日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 mguttmann 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于3天前

  • ✓ 通过

    有许可证

    使用 MIT

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

已公开的漏洞(OSV.dev)

OSV.dev 中没有 the-real-bitwarden-mcp@0.3.1 的记录

只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月15日

我们检查什么 → · JSON

作者:申请重新检查或报告信息错误
给作者:在 README 中加徽章

如果你是作者,可把这段代码贴到 README。徽章会链接回本页。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/mguttmann-the-real-bitwarden-mcp.svg)](https://mcp.popnx.com/en/servers/mguttmann-the-real-bitwarden-mcp)

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

登录后发帖

用户评价

还没有评价

登录后写评价

与“网络安全”中的其他服务器比较i

  • 星标数多于此分类中其他 1102 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1102 个服务器的 64% 更新
  • 基础检查结果等于或优于此分类中其他 1102 个服务器的 99%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Bitwarden Public API and Secrets Manager (unofficial) 安全吗?

它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:BITWARDEN_SELFHOST_CLIENT_SECRET, BITWARDEN_CLOUD_CLIENT_SECRET

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于3天前,最新版本(0.3.1)于22天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:GitHits, Dependency Management MCP Server, Snyk MCP, TokenSafe, Draugr

功能相近的其他选择

同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

GitHits

Search public open-source code, documentation, metadata, vulnerabilities, changelogs, and examples.

作者:githits-com正在增长↓ 3807/周★ 13810天前更新

电脑或云端✓ 服务方 · githits.com

Snyk MCP

Easily find and fix security issues in your applications leveraging Snyk platform capabilities.

作者:snyk广泛使用↓ 76.2万/周★ 617个月前更新

在你的电脑上运行✓ 服务方 · snyk.io

TokenSafe

Your AI agent is smart enough to code all day. Local firewall & zero-loss runtime.

作者:tokensafe-dev广泛使用↓ 6785/周★ 46今天更新

电脑或云端✓ 服务方 · tokensafe.dev

Draugr

Security scanning for AI agents: SAST, SCA, secrets, IaC, DAST, ranked by real risk.

作者:draugr-dev起步阶段★ 30前天更新

在你的电脑上运行✓ 服务方 · draugr.dev
与相似项目对比
本项
Bitwarden Public API and Secrets Manager (unofficial)
GitHitsDependency Management MCP ServerSnyk MCPTokenSafeDraugr
运行位置需要安装在电脑上云端或安装在电脑上都可以在云端运行,无需安装需要安装在电脑上云端或安装在电脑上都可以需要安装在电脑上
需要密钥是否否否否否
可在 Claude 中按 + 添加否否否否否否
基础检查3/35/53/43/35/53/3
许可证MITApache-2.0–Apache-2.0MITApache-2.0
价格登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Bitwarden MCP Server

Unofficial. This project is not made by, affiliated with or endorsed

by Bitwarden Inc. "Bitwarden" is a trademark of Bitwarden Inc. See

NOTICE.

A local Model Context Protocol (stdio) server that exposes Bitwarden's Public API (organization management) and the Bitwarden Secrets Manager (projects + secrets via the official SDK) as typed tools, read and write.

Intended use: an admin-facing MCP that lets an AI assistant manage members, groups, collections, policies, license seats, and Secrets-Manager data from a single host. Designed for a self-hosted Bitwarden instance, the official Bitwarden Cloud, or both.

Quick links: Architecture · Contributing · Security policy · Releasing · Changelog · Issues

Maintenance status
  • Maintained on a best-effort basis by one maintainer (@mguttmann) in spare time. The author uses it in production. There is no support contract and no guaranteed response time.
  • Security fixes take priority over features. Report vulnerabilities privately as described in SECURITY.md, never in a public issue.
  • Dependency updates come from Dependabot; CI fails when a runtime dependency has a known advisory.
  • Only the latest minor release gets fixes.
  • Issues and pull requests are welcome; see CONTRIBUTING.md.

Features

  • Public API: members, groups, collections, policies, events, organization import, subscription/licensing.
  • Secrets Manager: projects and secrets via the official @bitwarden/sdk-napi (Zero-Knowledge crypto; cleartext names and values returned directly).
  • Dual-instance aware: runs against a self-hosted Bitwarden instance, the official cloud, or both. Tools are wired to their instance at registration time so routing mistakes are impossible by accident.
  • Hand-written tools for common flows (bw_member_list, bw_license_subscription_get, bws_secret_get_value, ...) plus the bw_raw_request escape hatch. With self-host and cloud configured the server lists 54 tools, with or without Secrets Manager; names and required parameters are pinned by tests/tool-contract.test.ts, and parameters are only ever added (optional), never removed or renamed.
  • No generated tools in the shipped package: the generator for bw_ _ _raw tools exists (npm run generate), but the shipped spec (specs/public-api.spec.json) is empty, so 0 generated tools are registered. See Generated raw tools.
  • Confirm-gated writes: every write tool returns a request preview unless invoked with confirm: "YES". Default is on. The model sets confirm itself, so this is friction, not a security boundary (see Safety model).
  • Secret-safe by design: the metadata list never returns values; access tokens are managed in the web vault only.
  • Token-budget-aware list defaults: list tools (bw_member_list, bw_collection_list, bw_group_list, bw_event_query) return slim projections by default to stay within LLM tool-call token budgets. See List-response shape for the opt-in to full nested responses.

What this MCP can and cannot do

Bitwarden's APIs expose different surfaces with different auth and crypto requirements. This MCP wraps everything that's _cleanly_ reachable. Some operations require Bitwarden's encryption layer (so we use the official SDK); others have no public API at all and need the web vault.

Can: Public API (organization and members)

Uses the Organization Public-API key (organization. / client_credentials / scope api.organization).

  • List, get, invite, update, remove organization members
  • Create, update, delete groups; manage group membership
  • Update collection access per group (read / hide-passwords / manage); omitted fields of update tools keep their current value
  • Read, set organization policies
  • Query the event log
  • Bulk-import groups + members
  • Read full subscription details (PM seats, SM seats, storage, service-account slots)
  • Adjust PM seats, PM storage, SM seats, SM service-account slots via the unified PUT /public/organization/subscription endpoint: the tools take a delta, send current + delta as the new total and read it back
  • Cloud-only: license inspection on the cloud organization
Can: Secrets Manager (via the official Bitwarden SDK)

Uses the Machine-Account access token (BWS_ACCESS_TOKEN), exchanged through @bitwarden/sdk-napi which handles Bitwarden's Zero-Knowledge encryption.

  • List, get, create, update, delete projects (visible to the configured MA)
  • List secret metadata, fetch full secret incl. cleartext value, create, update, delete secrets
Cannot: these need a human in the web vault

These are not available to the credentials this server uses (organization API key, machine account access token). The SDK and the bws CLI don't offer them either.

  • Create, update, delete Machine Accounts
  • Assign projects to a Machine Account
  • Create or rotate Machine Account Access Tokens
  • List all Machine Accounts in the organization (machine accounts and access tokens can only be managed by a logged-in user in the web vault)
  • Trigger a cloud to self-host license re-sync
  • Read, grant or revoke a member's Secrets Manager access. Bitwarden's Public API neither returns nor applies accessSecretsManager; bw_member_grant_sm / bw_member_revoke_sm stay registered but always return an error.
  • Per-user collection access (bw_collection_update rejects a non-empty users list; give members direct access via bw_member_update collections), group accessAll (removed upstream), and filtering events by IP address.

For all of these: use the web vault at https:// /#/sm/{orgId}/.

Requirements

  • Node.js 22.12 or newer (engines.node >=22.12; CI tests 22, 24 and 26).
  • A Bitwarden Public-API key (client_id / client_secret) for at least one instance (self-host or cloud).
  • For Secrets Manager: a Machine-Account access token (from the web vault).

Platform support

This MCP works on any platform with Node.js 22.12 or newer for all Public API features (members, groups, collections, policies, events, license adjustments).

The Secrets Manager features (bws_project_*, bws_secret_*) depend on @bitwarden/sdk-napi (1.0.0, an optional dependency, not MIT licensed), which ships native Rust binaries as optional per-platform packages. The lockfile contains @bitwarden/sdk-napi-darwin-arm64, -darwin-x64, -linux-x64-gnu and -win32-x64-msvc:

OS / ArchSDK binarySM tools
macOS Apple Siliconavailableavailable
macOS Intelavailableavailable
Linux x86_64 (glibc)availableavailable
Windows x86_64availableavailable
Linux ARM64 (Raspberry Pi, AWS Graviton)not availablestubbed
Linux Musl / Alpinenot availablestubbed
Othernot availablestubbed

On unsupported platforms the MCP still starts and all Public-API tools work normally. The bws_project_* and bws_secret_* tools stay registered and return "Secrets Manager SDK not available on this platform" at call time; the load error is logged once at startup as a warn line.

If Bitwarden releases an SDK version with binaries for a new platform, updating the dependency and the lockfile picks it up; no code change is needed.

Installation

The package is the-real-bitwarden-mcp on npm, published from GitHub Actions with provenance. Its bin is bitwarden-mcp. Configuration is the same for every path (see Configuration).

Local MCP clients (npx or npm install)

npx fetches and starts the package; pin a version so an update is a decision, not a side effect of a restart:

npx -y the-real-bitwarden-mcp@<version>

Or install it once and start the bin:

npm install -g the-real-bitwarden-mcp@<version>

bitwarden-mcp

See Connector wiring for client configs.

Gateways and servers (pinned, from npm)

Install a pinned version with a lockfile and start it with node, without npx and without install scripts. Once, in an empty directory:

npm init -y

npm install --save-exact the-real-bitwarden-mcp@ # writes package-lock.json

Commit or keep package.json and package-lock.json. On every deploy:

npm ci --omit=dev --ignore-scripts

node --env-file=/path/to/.env node_modules/the-real-bitwarden-mcp/dist/index.js

The package has no install script and no runtime dependency in devDependencies, so --omit=dev --ignore-scripts is a complete install. The Secrets Manager SDK binary is an optional per-platform package that npm selects by OS and CPU; it needs no script either.

From source
git clone https://github.com/mguttmann/the-real-bitwarden-mcp.git

cd the-real-bitwarden-mcp npm ci # also pulls the platform-specific SDK binary cp .env.example .env

Fill in .env, see "Configuration".

npm run build node --env-file=.env dist/index.js

The SDK binary is an optional dependency: npm ci succeeds even on unsupported platforms (the binary is simply not present, and SM tools return a clear "not available" message).

Generated raw tools

npm run refresh-spec pulls the Swagger document of your self-host instance into specs/public-api.spec.json, and npm run generate builds one bw_ _ _raw tool per operation from it. The shipped spec is empty ({"paths": {}}), so a normal build registers 0 generated tools. Generating tools changes the tool list; if the server runs behind a gateway that pins the tool surface, treat that as a deploy change.

Configuration

All values are environment variables. They come from the process environment (for example node --env-file=.env, or the env block of an MCP client config). When the server is not started with --env-file (or --env-file-if-exists), a .env file in the process working directory is read as well and only fills variables that are not already set; with --env-file it is ignored. At least one instance must be fully configured, otherwise the server refuses to start. A partially configured instance (some but not all four variables) is also fatal, and so is an API base or identity URL that is not an http:// or https:// URL or that has a query or fragment (the error names the variable). Invalid values of the optional numeric and boolean variables fall back to the default.

VariableRequired whenPurpose

只显示了开头部分;其余内容请在仓库中阅读