blind-vault-mcp
Manages organization collections and personal vault secrets in Bitwarden via the bw CLI, including collection/item operations, generated secrets, reader grants, deletion/restoration, and one-time Bitwarden Send links.
Rotates Cloudflare API tokens and tunnel tokens by issuing new tokens, distributing them to consumers, verifying them, and revoking the old ones.
Rotates GitHub App installation tokens through a rotation module, issuing new tokens, distributing and validating them, and revoking old ones.
Rotates GitLab tokens through a rotation module, issuing new tokens, distributing and validating them, and revoking old ones.
Imports passkeys from KeePassXC into the personal vault.
Rotates MikroTik passwords or keys via a rotation module, issuing, distributing, checking, and revoking old credentials.
Rotates Pi-hole credentials/passwords via a rotation module.
Rotates Proxmox passwords or keys via a rotation module.
Manages secrets in Vaultwarden organization collections and the owner's personal vault without exposing values; creates collections, sets generated secrets, grants CI read access, deletes/restores items, and supports vault inventory and rotation.
Click on "Deploy 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., "@blind-vault-mcp create a collection for billing-api and generate its DB password"
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.
blind-vault-mcp
An MCP server that lets an AI agent manage secrets in Vaultwarden (or Bitwarden) without ever seeing a secret value.
The agent can create a collection for a new service, generate a database password into it, give the service's CI account read access, find the keys that leaked into old transcripts, and rotate them. It never reads a password, a token or a key. The values never enter the model's context, the chat transcript or the provider's logs.
Why
Agents like Claude Code now do real infrastructure work, and that work involves secrets. The usual options are poor:
Paste the secret into the chat. It stays in the transcript, the provider's logs and whatever the agent writes next.
Give the agent a password-manager MCP. Most Bitwarden/Vaultwarden MCP servers, the official one included, return passwords, TOTP codes or share links to the model. That makes the agent a reader of the whole vault, so one prompt injection can exfiltrate it.
Do it by hand. Then the agent stops being useful exactly where infrastructure work starts.
blind-vault-mcp takes a fourth route: the agent gets the ability to act on secrets, but never the values that make the action possible.
Related MCP server: Warden MCP Server
How it works
agent (Claude Code, …) owner
│ names, ids, statuses only │ vw-put / vw-vault unlock / vw-approve
▼ ▼ (own terminal, never the chat)
┌──────────────────────┐ values ┌──────────────┐ ┌─────────────┐
│ blind-vault-mcp │──stdin────▶│ bw CLI │──API──▶│ Vaultwarden │
│ (MCP server, stdio) │ └──────────────┘ └─────────────┘
└─────────┬────────────┘
│ "approve delete X? code 418302"
▼
notification webhook ──▶ owner's phone (a channel the agent cannot read)The contract, enforced by the code and by tests:
No value out. No tool returns a secret value: listings return names, inventories return cleaned URLs, which fields are filled and per-unlock fingerprints.
No value in. No tool takes a value as an argument. A value comes from a file path, from the generator (
generate=true), from the owner's own terminal (vw-put), or stays inside the vault daemon's memory during a rotation. A test fails if any tool grows avalue,password,tokenor similar parameter.Out-of-band approval. Destructive calls such as deleting a secret wait for a six-digit code sent to the owner through a webhook. The owner types it into
vw-approvein their own terminal. The agent can start the request but cannot finish it: the code is never in a tool result, a log or a file.Nothing lost. Every overwrite or delete is preceded by a backup (
VW_BACKUP_CMD) and fails if the backup fails. Every action goes to a JSON-lines journal and to the owner's notifications.Values never in argv. Values reach
bwthrough stdin (bw encode), never the command line, so they don't show up inpsor shell history.
Toolsets
One server, three toolsets, chosen with VW_TOOLSETS (default secrets):
Toolset | For | Tools |
| Secrets of services and CI in organization collections, one collection per repository or service |
|
| The owner's personal vault, through a daemon the owner unlocks in their own terminal | inventory and search, exact-duplicate merge, leak check (values found in local files such as agent transcripts), breach check (HIBP k-anonymity), dead-URL and dead-token checks, missing-2FA check, trash/restore/move/rename, KeePassXC passkey import, rotation |
| Handing a value to a person as a one-time Bitwarden Send |
|
send is off by default: the Send link itself reaches the agent, which is the one exception to
"no value out". Turn it on only if you accept that trade-off.
Rotation modules (vault toolset, each off until configured): OpenRouter keys, Cloudflare API tokens, Cloudflare tunnel tokens, GitLab tokens, GitHub App installation tokens, Pi-hole, Proxmox and MikroTik passwords or keys, backup repository passwords, and application-generated secrets (session keys, admin tokens). A rotation issues the new secret, distributes it to its consumers, checks that they work, revokes the old one, and puts everything back if a check fails.
Who it is for
People who self-host Vaultwarden and let agents run their homelab or side projects.
Small teams that keep CI and service secrets in a Bitwarden organization and want an agent to set up new services end to end.
Anyone who wants an agent to clean up a large personal vault (duplicates, leaked and breached passwords, dead logins) without handing it the vault.
Getting started
1. Install
You need Linux or macOS (macOS should work but is untested), Python 3.11+,
uv and the Bitwarden CLI bw
on PATH.
uv tool install git+https://github.com/ai2sky/blind-vault-mcpThis puts blind-vault-mcp and the vw-* commands on your PATH.
2. Create the manager account
The secrets toolset never acts as you. It acts as a dedicated Vaultwarden user, the
manager, that sees only your organization's collections and never your personal vault.
In the Vaultwarden web vault, create a new user, for example
vw-manager@example.com, with its own strong master password. Do not reuse your personal account.As the organization owner, invite that user in Organization → Members as an Admin, so it can create collections and invite service accounts. Accept the invitation as the manager, then confirm it as the owner.
Signed in as the manager, open Account settings → Security → Keys → View API key and copy
client_idandclient_secret.Note the organization id: it is the UUID in the web vault URL,
…/#/organizations/<organization-id>/vault.
More in the manager account and collections.
3. Configure
mkdir -p ~/.config/vw
cat > ~/.config/vw/env <<'EOF'
VW_URL=https://vault.example.com
VW_ORGANIZATION_ID=<organization-id>
EOFThen store the manager's three credentials where your system keeps secrets:
Where you run it | Store | How |
macOS | Keychain | the |
Windows | Credential Manager | the |
Linux desktop (GNOME, KDE) | Secret Service: GNOME Keyring or KWallet | the |
Linux server, container, CI | no keyring there: files readable only by the server's user |
|
With a keyring, each command asks for the value with a hidden prompt:
uv tool run --from keyring keyring set vw-manager client_id # user.xxxxxxxx-…
uv tool run --from keyring keyring set vw-manager client_secret
uv tool run --from keyring keyring set vw-manager master_passwordWithout one, put the secret and the password in files of their own (chmod 600) and point the
server at them:
cat >> ~/.config/vw/env <<'EOF'
VW_CLIENT_ID=user.xxxxxxxx-...
VW_CLIENT_SECRET_FILE=/etc/vw/client-secret
VW_MASTER_PASSWORD_FILE=/etc/vw/master-password
EOF4. Connect to Claude Code
claude mcp add --scope user blind-vault -- blind-vault-mcpStart a new session and ask "list my Vaultwarden collections". A list of names means the manager logged in. An error names the missing setting.
5. Optional: approvals and the personal vault
Approvals. Point
VW_NOTIFY_URLat any endpoint that accepts JSON{"text": "..."}: a Slack or Mattermost incoming webhook, or a small bridge to your messenger. An optional bearer token goes inVW_NOTIFY_TOKEN_FILEor the keyring entrynotify_token. Without it, tools that need approval refuse instead of waiting. See approval.The personal vault. Run
vw-vault unlockand add-e VW_TOOLSETS=secrets,vaultto theclaude mcp addline. See below.
How unlocking works
There are two unlocks, one per kind of vault, on purpose.
The manager unlocks itself. On each call the server runs
bw login --apikeyandbw unlockwith the manager's credentials from the keyring or the files. It passes them tobwthrough its environment, never on the command line, and keeps the session inside its own process. Nobody has to be there, because the manager can only reach what the organization gave it.The personal vault is unlocked by you, in your own terminal.
vw-vault unlockasks for your API key (it may sit in the keyring, servicevw-vault) and your master password through a hidden prompt that is never stored. You can use a FIDO2 security key instead: PIN and a touch, with the master password kept on disk encrypted by a key only the token gives out (vw-vault unlock --enrollregisters one). The daemon then holds thebwsession in memory, serves a0600Unix socket, and locks itself after two hours idle (VW_VAULT_IDLE) or onvw-vault lock. While it is locked, vault tools tell the agent to ask you to unlock.
Example: a new service, end to end
With the server connected, ask Claude Code for what you need:
Set up secrets for the new
billing-apiservice: a collection, a generatedDB_PASSWORD, and read access forsvc-billing-api@example.com. I'll enter the Stripe key myself.
The agent calls create_collection("billing-api"), set_secret("billing-api", "DB_PASSWORD", generate=true) and grant_reader("billing-api", "svc-billing-api@example.com"). For the Stripe
key it asks you to run, in your own terminal:
vw-put billing-api STRIPE_SECRET_KEYOn the host or in CI, the service reads its collection into the environment with its own
read-only account (VW_COLLECTION=billing-api plus that account's VW_* settings in a 0600
file). That is a command, not an MCP tool, so the agent still cannot call it:
eval "$(vw-env --env-file /etc/billing-api/vw.env)"The personal vault
vw-vault unlock # once, in your own terminal: API key + master password or a FIDO2 key
claude mcp add --scope user blind-vault -e VW_TOOLSETS=secrets,vault -- blind-vault-mcpFind duplicate logins and any password that appears in my old agent transcripts under ~/.claude/projects, and put the leaked ones on the rotation list.
The daemon holds the unlocked vault in memory, serves a 0600 Unix socket, and locks itself
after VW_VAULT_IDLE seconds idle. Changes go to the trash (restorable), are journaled, and need
a fresh backup.
Commands
Command | What it does |
| The MCP server (stdio; |
| The owner writes one secret: hidden prompt, |
| The owner deletes one secret, typing the name again to confirm |
| Reads a whole collection into the environment on a host or in CI (masked under GitHub Actions) |
| The owner's side of an approval: shows what is waiting and takes the code |
| Creates the read-only Vaultwarden account a service uses for its own collection |
| The personal-vault daemon: |
Configuration reference
Variable | Meaning |
| Vaultwarden URL (required) |
| The organization the |
|
|
| Keyring service of the manager account (default |
| Manager credentials from files instead of the keyring |
| Notification and approval webhook |
|
|
| Seconds the owner has to answer (default 300) |
| Command that backs up the vault before an overwrite or delete |
| Journal path (default |
| Personal-vault daemon: idle lock, backup before a batch |
| Rotation modules: which items, where the new value goes |
| HTTP transport (no auth of its own: bind to a private interface) |
Details: overview, approval, manager account and collections, service accounts, personal vault and rotation.
Security model and limits
blind-vault-mcp keeps values away from the model: its context, the transcript, the provider
and any tool output a prompt injection could steer. It does not protect against a hostile local
user. Whoever runs as the same OS user can read the keyring, the bw data directory and the
daemon's socket. Run the agent and the server as a user you trust, and keep the manager account
separate from your personal one.
What it does not claim:
A value can still be read by commands the agent runs in a shell (
vw-env,bw get). If the agent has an unrestricted shell on the same user, block those commands with your agent's permission rules (in Claude Code,permissions.deny).The
sendtoolset hands the agent a one-time link to a value; it is off by default for that reason.The HTTP transport has no authentication of its own.
Development
uv sync
uv run pytest -qCI runs the tests on Python 3.11–3.13 and scans the whole history with
gitleaks. Test fixtures that look like secrets are marked
line by line with gitleaks:allow.
License
Available Tools
7 toolscreate_collectionC
Create a collection in the organization.
Inputs: collection (required). Returns: result
delete_secretB
Delete a secret from a collection. Needs the owner's confirmation.
Inputs: name (required), collection (required). Returns: result
grant_readerA
Give an account (email) read access to a collection, inviting it into the organization if needed.
Inputs: account (required), collection (required). Returns: result
list_collectionsB
List the organization's collection names.
Inputs: no named parameters. Returns: result
list_itemsB
List secret names in a collection (never values).
Inputs: collection (required). Returns: result
restore_infoA
Show the backups taken before this secret was overwritten or deleted, and how to roll back.
Reads the audit journal only; no value is shown or restored by this tool.
Inputs: name (required), collection (required). Returns: result
set_secretA
Write a secret into a collection as a Login (name and password).
Give exactly one source: from_file (path to a file holding the value), generate (random value) or prompt (the owner is asked for the value outside the chat). The value never appears in the arguments or in the output.
Inputs: name (required), collection (required), prompt, generate, +1 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools target clearly distinct resources and actions (collections vs items vs grants vs secrets), and the descriptions clarify boundaries. The weakest spot is restore_info, whose name suggests a restore action but actually only reports backup history, which could be misread as a recovery operation alongside delete_secret.
All names are snake_case with a verb_noun shape (list_collections, create_collection, grant_reader, set_secret, delete_secret). restore_info is a minor deviation since it reads as a reporting tool rather than the restore action its prefix implies.
Seven tools is well-scoped for a secrets vault: read/listing, creation, access granting, write, delete, and recovery inspection each earn a slot with no redundancy.
Core lifecycle is covered, but there are notable gaps: no way to revoke a reader's access or list who currently has grants, no delete_collection, and no metadata/inspection of a secret beyond its name. These are plausible by design (values never exposed) but leave agents with dead ends for access management cleanup.
Maintenance
Related MCP Connectors
Password vault for AI agents with scoped, user-approved access
Encrypted secret store and rotation for autonomous agent credentials
A secret store for AI agents: the agent never sees the plaintext.
Give your AI hands. Identity, credential vault, and API gateway for autonomous agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents and automation scripts to securely interact with self-hosted Vaultwarden instances through the Bitwarden CLI, automatically managing vault sessions and providing tools to read, create, update, and delete secrets programmatically.9 npm2MIT
- 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.5333MIT
- AlicenseDqualityDmaintenanceEnables secure Bitwarden organization vault control with AI agents, featuring human-in-the-loop approval, ACID-compliant transactions, and redacted access to keep secrets hidden from LLMs.10MIT
- AlicenseCqualityBmaintenanceEnables AI agents to interact with and manage a Vaultwarden/Bitwarden-compatible server via the Model Context Protocol, covering account, cipher, folder, organization, send, admin, and vault maintenance operations.294MIT