vaultgate
Provides remote MCP access to a Bitwarden vault, allowing agents to search items, read metadata, reveal individual secret fields, generate passwords, and create or update items when permitted, without exposing the master password.
Provides the same vault integration for self-hosted Vaultwarden instances, enabling remote MCP access to search, reveal, generate, and manage vault items over HTTPS with OAuth authorization.
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., "@vaultgatefind my GitHub personal access token in Bitwarden"
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.
vaultgate
A self-hosted, remote MCP server that lets hosted AI agents such as Claude, Claude Cowork, Claude Code and Codex use your credentials without ever seeing them. The credentials stay in your Bitwarden (or Vaultwarden) vault. vaultgate uses them on the agent's behalf against systems you define (an HTTP API, Microsoft Graph, a SQL Server or PostgreSQL database, an SSH or WinRM host, a GitHub repository searched with Semble) under your policy, and hands back only the result. It is its own OAuth 2.1 authorization server, so the agent holds a short-lived, scoped, revocable token and nothing else.
Status: release candidate. Milestones M1 to M7 are merged: configuration, SQLite store, operator identity with TOTP, the OAuth 2.1 authorization server, the MCP tool surface, the managed
bw servebackend, the audit trail, packaging and the Azure template. M8 (hardening and compatibility evidence) is in progress. The actions layer, opt-in and off by default, has landed through M14: M9 the engine, the operator pages and thehttpconnector, M10 the Microsoft Graph credential adapter, M11sql, M12ssh, M13winrm, and M14 the policy-form validation messages, the call-history and unexpected-write views, grant management from the connected-clients list and the elicitation hardening. M16 adds thecodeconnector: Semble code search over private GitHub repositories, with its sidecar (guide).browseris M15; seedocs/PLAN.md.
Why
A credential an agent can read ends up in the transcript. Once an agent reveals a password in order to use it, the value sits in the model's context, in the chat transcript, in the client's logs and on whatever command line the agent builds, and revoking the agent does not take it back. vaultgate is built so that the agent never needs the value:
Use, don't read. With the actions layer enabled (guide, spec 13 and 13a, ADR 0007), an agent names a target you defined and describes an operation: an HTTP request, a SQL query or statement, a command on an SSH or WinRM host, a Semble search of a GitHub repository. vaultgate fetches the credential from the vault, connects to the pinned destination, runs the operation inside your policy, scrubs every injected value from the result and returns what is left. An agent never supplies a host, a URL base, a database name or a credential; its arguments change what runs, never where or as whom.
Writes are opt-in three times. A write needs its own scope at consent, a target policy that allows it and, when you ask for it, a human confirmation on every call; the console lists every write that ran without one.
One audited door for the rare value that must be read. The vault tools return metadata. A single tool returns a secret value, one field of one item per call, behind its own scope, with every call audited.
Nothing runs on the vaultgate host. No tool runs whatever an agent sends wherever it likes:
ssh_runandwinrm_runrun one command on one configured host under your allowlist (a target that accepts any command needs both its own flag and the deployment's consent), and every operation executes at its target.The agent holds a token and nothing else. The master password and API key live only in the vaultgate process on your host, encrypted under your secret key once you connect the vault on the console's Vault page.
Standards as written. OAuth 2.1, PKCE, RFC 9728 / 8414 / 8707 / 7591 / 7009 / 9207 and Client ID Metadata Documents, per the MCP authorization specification (2026-07-28).
Any Bitwarden. bitwarden.com, bitwarden.eu, self-hosted Bitwarden and Vaultwarden.
Boring to operate. One process, one SQLite file, structured logs, health probes, an audit trail.
docker compose upis a complete installation.
Compared with other Bitwarden MCP servers
Hosted agents reach MCP servers over HTTPS and cannot run a process next to your vault, and the other Bitwarden MCP servers are built for exactly that local process:
Server | Where it runs | Who holds the master password / API key | Client authorization | Consent and scopes | Revocation | Audit trail | Using a credential without seeing it |
Local, stdio; its README says it must never be hosted publicly | Your machine: the | None; whoever launches the process | None; every tool is available to the launching client | Lock the vault or end the | Not described | Not described | |
warden-mcp, remote mode | A long-running HTTP service you host | The client, which sends them as | None built in ("no built-in authentication layer in v1") | None; | Rotate the Bitwarden credentials | Not described | Not described |
Typical community servers, e.g. vaultwarden-mcp, bitwarden-mcp-server | Local stdio, or a plain HTTP port | The server process, from environment variables holding the e-mail address and master password | None | None | Rotate the Bitwarden credentials | Not described | Not described |
vaultgate | Your host, reachable over HTTPS by hosted agents | The vaultgate process only; the agent holds an opaque token | Built-in OAuth 2.1 authorization server: operator login with TOTP, PKCE, RFC 9728 / 8414 / 8707 / 7591 / 7009 / 9207, Client ID Metadata Documents | Per-client consent page; | Per client or per token from the console's Agents page; refresh tokens rotate and a replay revokes the family | Every tool call, login, consent, token issue, refresh and revocation, exportable | Typed actions at targets you define: |
"Not described" means the project's README does not document one. Dated verification notes with
links, and when the official stdio server is the better choice: docs/comparison.md.
Related MCP server: Agentic Vault
Quick start
The current version is 0.1.0-rc.22 (package.json; releases are tagged on GitHub). On a VM with
Docker Engine, the Compose plugin, a DNS name pointing at it and ports 80 and 443 reachable from
the internet:
git clone https://github.com/adamrowles1996/vaultgate.git
cd vaultgate
cp .env.example .envSet VAULTGATE_DOMAIN, VAULTGATE_PUBLIC_URL and VAULTGATE_VERSION in .env, then:
mkdir -p secrets
head -c 32 /dev/urandom | base64 > secrets/vaultgate_secret_key
touch secrets/bw_password secrets/bw_client_secret
chmod 0400 secrets/* && sudo chown 10001 secrets/*
docker compose up -d
docker compose logs -f vaultgateFirst run: the log prints a one-time /setup?token=… URL. Open it and create the operator
account with an e-mail address, a password and a code from your authenticator (TOTP). That
password is vaultgate's own operator login; it is not, and never becomes, your Bitwarden master
password. Sign in, and on the Vault page connect the vault: server, API key client id and
secret, and master password. vaultgate stores that connection encrypted under
VAULTGATE_SECRET_KEY, so it survives restarts and upgrades. Then add https://<host>/mcp to
Claude (or Claude Code, Codex, the MCP Inspector) as a remote MCP server and approve the scopes on
the consent page. The bw CLI that vaultgate drives is bundled in the image and installed by
install.sh; nothing else is needed on the host. Walkthrough:
docs/guides/first-run.md; details and the verification of the
image: docs/guides/install-docker-compose.md.
To let agents use credentials rather than read them, set VAULTGATE_ENABLE_ACTIONS=true and the
switch for each connector you want, restart, and add connections (targets) on the console's Connections
page: docs/guides/actions.md.
How it works
Claude / Codex ──HTTPS + Bearer──▶ vaultgate ──loopback──▶ bw serve ──▶ Bitwarden
▲ │ │
│ │ └──pinned──▶ your API, database, SSH or WinRM host
└── OAuth 2.1 ◀──────┘ (credential injected by vaultgate, result scrubbed)
(consent page, operator login with TOTP)An agent calls
/mcpand is challenged withWWW-Authenticate.It discovers the authorization server from the protected resource metadata, registers (Client ID Metadata Document, dynamic registration, or a pre-registered id) and sends you to the consent page.
You log in (password + TOTP) and approve the scopes:
vault:read,vault:reveal,vault:generate, optionallyvault:write, and theactions:*scopes of each connector the deployment enables.With an
actions:*scope, the agent lists the targets granted to it and calls them:http_request,sql_query,sql_execute,ssh_run,winrm_run, andcode_search,code_find_relatedandcode_readfor Semble connections. vaultgate fetches the credential from the vault, performs the operation at the target and returns the scrubbed result; the credential never reaches the agent.With the vault scopes, it can search items, read metadata, reveal one secret field at a time, generate passwords and, if allowed, create or update items.
Install
TLS is always terminated in front of vaultgate; every method below ends with a
public https:// origin that hosted agents can reach.
Method | Guide |
Docker Compose with Caddy (recommended) | |
Debian or Ubuntu VM, | |
Your own reverse proxy (Caddy, nginx) |
Releases publish ghcr.io/adamrowles1996/vaultgate:<version> for linux/amd64 and
linux/arm64, signed with Sigstore cosign and carrying an SBOM and a provenance attestation,
plus vaultgate-<version>.tgz and its .sha256 for the script install.
Documentation
Document | What it is |
User guides: first run, connecting Claude, Claude Code, Codex and the Inspector, tools and scopes, self-hosted Bitwarden, backup, upgrading, security model, FAQ | |
The normative specification, one file per concern | |
Milestones, exit criteria, risks | |
Assets, attackers, mitigations, residual risks | |
How vaultgate differs from the other Bitwarden MCP servers, with dated verification notes | |
Listings, channels and app-store definitions, with the submission mechanics for each | |
The MCP Registry listing; how to publish it: | |
Architecture decision records | |
Development workflow and quality gates | |
Reporting vulnerabilities |
Development
Requires Node 26 (see .nvmrc) and mise for the pinned external
linters.
mise install # actionlint, shellcheck, shfmt, hadolint, gitleaks, editorconfig-checker
npm ci
npm run dev # runs src/main.ts directly with Node's type stripping
npm run quality # format, every linter, types, dead code, file sizes, provenance, tests at 100%Every check that runs in CI runs locally with npm run quality. See
CONTRIBUTING.md for the rules the repository enforces and why.
Licence
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
Related MCP Servers
- 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.53609 npm17MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that lets AI agents call APIs without ever seeing the credentials, using a local encrypted vault and per-secret allowlist policies for HTTP requests and subprocess environment variables.1AGPL 3.0
- AlicenseCqualityCmaintenanceAn MCP server that integrates 1Password with AI agents, providing secure access to vaults and items with secrets redacted by default.1618 npm1MIT
- AlicenseAqualityBmaintenanceAn MCP server for using Bitwarden Secrets Manager as durable credential storage for agent workflows, enabling secure secret storage, retrieval, and injection into trusted executables.7MIT