vaultwarden-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| VW_AUTH | No | Auth mode: `oidc`, `token` or `none`. `none` is only allowed on loopback. | inferred |
| VW_POLICY | No | Policy file path. | /policy/allowlist.json |
| BW_SESSION | No | Bitwarden CLI session key. Alternative to VW_SESSION_FILE. | |
| BW_CLI_PATH | No | Path to the Bitwarden CLI. | bw |
| VW_APPROVAL | No | Default approval mode (`never` / `always`). | never |
| VW_ALLOWLIST | No | Alias for VW_POLICY; policy file path. | |
| VW_AUDIT_LOG | No | Also append audit JSON lines to this file. Audit lines are always written to stderr. | |
| VW_HTTP_HOST | No | HTTP listen address. | 127.0.0.1 |
| VW_HTTP_PORT | No | HTTP listen port. | 3000 |
| VW_STATE_DIR | No | Persist use_secret maxUses counters in use-counts.json here. | |
| VW_TRANSPORT | No | Transport mode. `http` is equivalent to `serve --http`. | stdio |
| VW_USERS_DIR | No | Enables multi-user mode: one sub-directory per OIDC user. | |
| VW_HTTP_TOKEN | No | Static bearer token for HTTP auth (at least 24 characters). | |
| VW_PUBLIC_URL | No | External base URL, e.g. https://vault-mcp.example.com. Required for OIDC. | |
| VW_OIDC_ISSUER | No | OIDC issuer URL. | |
| VW_SESSION_FILE | No | File with the Bitwarden CLI session key. Alternatively set BW_SESSION. | $CREDENTIALS_DIRECTORY/bw-session if present |
| VW_ALLOWED_HOSTS | No | Host header allowlist for DNS-rebinding protection. | public URL host + loopback |
| VW_ALLOWED_USERS | No | Comma-separated `sub`, email or username allowlist. | everyone authenticated |
| VW_OIDC_AUDIENCE | No | Expected OIDC token audience (`aud`). | |
| VW_HTTP_TOKEN_FILE | No | File containing the static bearer token for HTTP auth (at least 24 characters). | |
| VW_OIDC_REQUIRED_SCOPES | No | Comma-separated scopes every OIDC token must have. | |
| VW_SESSION_IDLE_SECONDS | No | Idle MCP session expiry in seconds. | 1800 |
| BITWARDENCLI_APPDATA_DIR | No | Bitwarden CLI state directory. | bw default |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_secretA | Return one secret field of a vault item, only if that item id and field are listed in the server-side allowlist. Every call is audited. Prefer use_secret when the value only needs to be sent to an API. |
| vault_statusA | Return only whether the Bitwarden CLI vault is unlocked, locked, unauthenticated, or in an unknown state. |
| list_item_metadataA | List item IDs, names, and types only. Passwords, notes, fields, attachments, and secret values are never returned. |
| use_secretA | Send an HTTPS request with a vault secret injected server-side. Write {{secret}} where the secret goes (URL, header value, or body); the value is substituted by the server and is never returned to you. Responses are masked. Only URLs allowlisted for that item/field in the server policy are permitted; the policy may also require human approval and limit uses or lifetime. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
get_secret and use_secret both involve secret access and could initially look overlapping, but the descriptions clearly distinguish returning a value versus server-side injection without disclosure. vault_status and list_item_metadata are cleanly separate from the secret-access tools.
Three names follow a clear verb_noun pattern (get_secret, list_item_metadata, use_secret), while vault_status is noun-based and lacks a verb. This is a minor inconsistency but the overall convention remains readable and predictable.
Four tools is well-scoped for a security-sensitive secret broker: check status, discover allowed items, retrieve a secret, and use a secret. Each tool has a distinct role and none feels redundant.
The surface covers the core secret-consumption lifecycle: vault state, item discovery, controlled retrieval, and server-side use. Write or administrative operations are intentionally absent for security, though a way to inspect policy/allowlist details could be a useful minor addition.