Bitwarden Public API and Secrets Manager (unofficial)
Unofficial MCP server for the Bitwarden Public API and Secrets Manager, self-hosted or cloud.
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
the-real-bitwarden-mcpclaude mcp add bitwarden-public-api-and-secrets-manager -e 'BITWARDEN_SELFHOST_API_BASE=<BITWARDEN_SELFHOST_API_BASE>' -e 'BITWARDEN_SELFHOST_IDENTITY_URL=<BITWARDEN_SELFHOST_IDENTITY_URL>' -e 'BITWARDEN_SELFHOST_CLIENT_ID=<BITWARDEN_SELFHOST_CLIENT_ID>' -e 'BITWARDEN_SELFHOST_CLIENT_SECRET=<your bitwarden_selfhost_client_secret>' -e 'BITWARDEN_CLOUD_API_BASE=<BITWARDEN_CLOUD_API_BASE>' -e 'BITWARDEN_CLOUD_IDENTITY_URL=<BITWARDEN_CLOUD_IDENTITY_URL>' -e 'BITWARDEN_CLOUD_CLIENT_ID=<BITWARDEN_CLOUD_CLIENT_ID>' -e 'BITWARDEN_CLOUD_CLIENT_SECRET=<your bitwarden_cloud_client_secret>' -e 'BWS_ACCESS_TOKEN=<your bws_access_token>' -e 'BWS_ORG_ID=<BWS_ORG_ID>' -e 'BWS_API_BASE=<BWS_API_BASE>' -e 'BWS_IDENTITY_URL=<BWS_IDENTITY_URL>' -e 'BITWARDEN_CONFIRM_WRITES=true' -e 'BITWARDEN_READ_ONLY=false' -e 'LOG_LEVEL=warn' -- npx -y the-real-bitwarden-mcp@0.2.0
{
"mcpServers": {
"bitwarden-public-api-and-secrets-manager": {
"command": "npx",
"args": [
"-y",
"the-real-bitwarden-mcp@0.2.0"
],
"env": {
"BITWARDEN_SELFHOST_API_BASE": "<BITWARDEN_SELFHOST_API_BASE>",
"BITWARDEN_SELFHOST_IDENTITY_URL": "<BITWARDEN_SELFHOST_IDENTITY_URL>",
"BITWARDEN_SELFHOST_CLIENT_ID": "<BITWARDEN_SELFHOST_CLIENT_ID>",
"BITWARDEN_SELFHOST_CLIENT_SECRET": "<your bitwarden_selfhost_client_secret>",
"BITWARDEN_CLOUD_API_BASE": "<BITWARDEN_CLOUD_API_BASE>",
"BITWARDEN_CLOUD_IDENTITY_URL": "<BITWARDEN_CLOUD_IDENTITY_URL>",
"BITWARDEN_CLOUD_CLIENT_ID": "<BITWARDEN_CLOUD_CLIENT_ID>",
"BITWARDEN_CLOUD_CLIENT_SECRET": "<your bitwarden_cloud_client_secret>",
"BWS_ACCESS_TOKEN": "<your bws_access_token>",
"BWS_ORG_ID": "<BWS_ORG_ID>",
"BWS_API_BASE": "<BWS_API_BASE>",
"BWS_IDENTITY_URL": "<BWS_IDENTITY_URL>",
"BITWARDEN_CONFIRM_WRITES": "true",
"BITWARDEN_READ_ONLY": "false",
"LOG_LEVEL": "warn"
}
}
}
}
متغيرات البيئة
BITWARDEN_SELFHOST_API_BASESelf-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_URLSelf-hosted instance: identity URL, e.g. https://vault.example.com/identity.BITWARDEN_SELFHOST_CLIENT_IDSelf-hosted instance: organization Public API client id (organization.<uuid>).BITWARDEN_SELFHOST_CLIENT_SECRETسري Self-hosted instance: organization Public API client secret. It can manage members, groups, collections and policies, including creating Owners.BITWARDEN_CLOUD_API_BASEBitwarden Cloud: API base URL, e.g. https://api.bitwarden.com. Used for license and subscription tools.BITWARDEN_CLOUD_IDENTITY_URLBitwarden Cloud: identity URL, e.g. https://identity.bitwarden.com.BITWARDEN_CLOUD_CLIENT_IDBitwarden Cloud: organization Public API client id (organization.<uuid>).BITWARDEN_CLOUD_CLIENT_SECRETسري Bitwarden Cloud: organization Public API client secret.BWS_ACCESS_TOKENسري Optional: Secrets Manager machine account access token; enables the bws_* tools. A malformed token is fatal at startup.BWS_ORG_IDOptional: organization UUID for the Secrets Manager tools, used when a call passes no organizationId.BWS_API_BASEOptional: Secrets Manager API base URL; defaults to BITWARDEN_SELFHOST_API_BASE.BWS_IDENTITY_URLOptional: Secrets Manager identity URL; defaults to BITWARDEN_SELFHOST_IDENTITY_URL.BITWARDEN_CONFIRM_WRITEStrue: 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_ONLYtrue: write tools stay listed but refuse to run, and bw_raw_request allows GET only.LOG_LEVELLog level of the JSON log lines on stderr.
الأسئلة الشائعة
ما هو Bitwarden Public API and Secrets Manager (unofficial)؟
Unofficial MCP server for the Bitwarden Public API and Secrets Manager, self-hosted or cloud.
كيف أثبّت Bitwarden Public API and Secrets Manager (unofficial)؟
يعمل على جهازك. في Claude Code: claude mcp add bitwarden-public-api-and-secrets-manager -e 'BITWARDEN_SELFHOST_API_BASE=<BITWARDEN_SELFHOST_API_BASE>' -e 'BITWARDEN_SELFHOST_IDENTITY_URL=<BITWARDEN_SELFHOST_IDENTITY_URL>' -e 'BITWARDEN_SELFHOST_CLIENT_ID=<BITWARDEN_SELFHOST_CLIENT_ID>' -e 'BITWARDEN_SELFHOST_CLIENT_SECRET=<your bitwarden_selfhost_client_secret>' -e 'BITWARDEN_CLOUD_API_BASE=<BITWARDEN_CLOUD_API_BASE>' -e 'BITWARDEN_CLOUD_IDENTITY_URL=<BITWARDEN_CLOUD_IDENTITY_URL>' -e 'BITWARDEN_CLOUD_CLIENT_ID=<BITWARDEN_CLOUD_CLIENT_ID>' -e 'BITWARDEN_CLOUD_CLIENT_SECRET=<your bitwarden_cloud_client_secret>' -e 'BWS_ACCESS_TOKEN=<your bws_access_token>' -e 'BWS_ORG_ID=<BWS_ORG_ID>' -e 'BWS_API_BASE=<BWS_API_BASE>' -e 'BWS_IDENTITY_URL=<BWS_IDENTITY_URL>' -e 'BITWARDEN_CONFIRM_WRITES=true' -e 'BITWARDEN_READ_ONLY=false' -e 'LOG_LEVEL=warn' -- npx -y the-real-bitwarden-mcp@0.2.0. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج Bitwarden Public API and Secrets Manager (unofficial) إلى مفتاح API؟
نعم. يتطلب BITWARDEN_SELFHOST_CLIENT_SECRET, BITWARDEN_CLOUD_CLIENT_SECRET, BWS_ACCESS_TOKEN، وتضبطها في إعداداته.
هل Bitwarden Public API and Secrets Manager (unofficial) مفتوح المصدر؟
شيفرته علنية على GitHub، لكن المستودع لا يعلن ترخيصًا قياسيًا.
من يصون Bitwarden Public API and Secrets Manager (unofficial)؟
ينشره mguttmann. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.