llm-vault-mcp
Summary: Manage and use vault secrets through MCP with local decryption, opaque handles, and leak-scrubbed execution.
Report vault/agent/keychain status and permission scopes.
Search secret metadata and list tags without revealing plaintext.
Resolve secrets to opaque handles; raw reveal only with break-glass policy and OOB confirmation.
Create time-bounded leases and revoke them with in-memory zeroization.
Run subprocesses or inject env vars using secret/lease handles, scrubbing stdout/stderr for raw, Base64, and URL-encoded leaks.
Proxy outbound HTTP requests with handles in headers, scrubbing echoed credentials from responses.
Generate high-entropy secrets locally and store them encrypted.
Prompt a human OOB to enter third-party secrets outside chat context.
Delete secrets with scope and OOB confirmation workflow.
Query and verify audit logs via HMAC-SHA256 hash chain.
Scan workspace files/git diffs for unencrypted credentials and suggest handles.
Absorb credentials from files like .env into encrypted records and templates.
Install/check/remove a git pre-commit secret-blocking hook.
Inspect SSH agent status and loaded signing keys.
Generate Kubernetes External Secrets Operator manifests for vault sync.
Provides Git workspace integration by scanning staged diffs for unencrypted credentials and installing, checking, or removing a pre-commit hook that blocks secret commits.
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., "@llm-vault-mcp call the Stripe API with my vaulted Stripe key and redact it from output"
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.
LLM Vault MCP
Model Context Protocol Server for Zero-Context Secret Injection & Local Envelope Decryption
Model Context Protocol (MCP) server for llm-vault. It decrypts secret envelopes locally via the W3C Web Cryptography API (crypto.subtle) and injects credentials into child processes or outbound HTTP requests without exposing plaintext secret values to LLM context windows, chat transcripts, or model telemetry.
Architecture & Security Model
Local Zero-Knowledge Decryption: The MCP process loads the workstation's
AgentDecryptionKey(from the OS keychain or runtime secret store), unwraps the vault'sAgentEncryptedVaultKey, and decryptsAES-256-GCMpayloads locally. Every encryption and decryption operation binds canonical Additional Authenticated Data (AAD):UTF8("${tenantId}:${vaultId}:${secretId}:${version}:${keyVersion}")Opaque Surrogate Handles: Discovery and secret-resolution tools return type-prefixed ULID identifiers (
sec_<ulid>) and template handles ({{vault:sec_<ulid>}},{{vault:lease_<ulid>}}) rather than raw secret strings.Multi-Encoding Output Scrubber: When executing commands (
vault_run_command,vault_inject_env) or proxying HTTP calls (vault_http_proxy), the server scansstdout,stderr, and response headers for raw UTF-8, Base64-encoded, and URL-encoded occurrences of active secrets and replaces matches with[REDACTED:<id>].Time-Bounded Ephemeral Leases:
vault_lease_secretholds decryptedUint8Arraysecret bytes in process memory under alease_<ulid>handle and overwrites the buffer with zeroes (buf.fill(0)) immediately upon TTL expiration.Admin Plane Isolation: User provisioning, role mutation, and identity provider configuration endpoints are omitted from the MCP surface so prompt-injected agents cannot escalate privileges. Only
vault_admin_audit_logs(read-only query and hash-chain verification) is exposed forComplianceAuditortokens.
Related MCP server: agent-vault
MCP Toolset
Tool | Purpose |
| Report active vault connection, |
| Search decrypted item metadata ( |
| List unique tags across accessible vaults. |
| Return an opaque |
| Issue a time-bounded |
| Spawn a subprocess with |
| Alias/companion execution tool that resolves secret handles into an execution environment map and scrubs command output. |
| Execute an outbound HTTP request with secret handles resolved inside request headers and scrub echoed credentials from response headers and body. |
| Generate a high-entropy secret inside the MCP server via |
| Prompt a human operator out-of-band to enter a third-party secret directly into client-side encryption without passing through chat context. |
| Query append-only |
Requirements & Development
Requires Node.js >= 22.
npm install
npm run typecheck
npm run lint
npm test
npm run buildRunning the Server
Stdio transport (default for local coding agents such as Claude Desktop, Cursor, and Antigravity):
npx llm-vault-mcp stdioLoopback Streamable HTTP transport (enforces Host/Origin validation and MCP_TOKEN bearer authentication):
MCP_TOKEN="your-ephemeral-token" PORT=3000 HOST=127.0.0.1 node dist/main.js streamable-httpLicense
Available Tools
19 toolsvault_absorb_credentialsB
Extract unencrypted secrets from a file (e.g. .env), encrypt them locally with VaultKey + AAD into sec_ records, and generate {{vault:sec_}} template (.env.tpl).
Inputs: filePath (required), dryRun, inPlace, vaultId.
vault_admin_audit_logsA
Read-only query and HMAC-SHA256 hash-chain verification of aud_ audit logs for ComplianceAuditor tokens. User, role, and IdP admin mutations are excluded from MCP.
Inputs: limit, actionFilter.
vault_confirm_actionA
Confirm or cancel a pending destructive action or break-glass reveal using an out-of-band confirmation token.
Inputs: approved (required), confirmationToken (required).
vault_delete_secretA
Delete a secret item from the vault. Requires 'secrets:delete' scope and out-of-band human confirmation. Returns a pending confirmationToken when unconfirmed.
Inputs: secretId (required), confirmationToken.
vault_generate_and_store_secretB
Generate a high-entropy secret inside llm-vault-mcp via crypto.getRandomValues(), encrypt it locally with VaultKey and canonical AAD, and return only { id, vaultId, version, handle }.
Inputs: name (required), tags, vaultId, encoding, +4 more.
vault_get_secretA
Resolve a secret by sec_ and return an opaque surrogate handle ({{vault:sec_}}) by default. Raw plaintext reveal is blocked unless break-glass policy and out-of-band human confirmation are satisfied.
Inputs: secretId (required), breakGlassReason, confirmationToken, requestRawPlaintext.
vault_http_proxyB
Execute an outbound HTTP request with {{vault:sec_}} or {{vault:lease_}} handles injected into request headers and scrub echoed credentials from response headers and body.
Inputs: url (required), headers (required), body, method.
vault_inject_envC
Resolve opaque secret or lease handles into a subprocess execution environment and return scrubbed command output.
Inputs: env (required), command (required), cwd, args.
vault_install_pre_commit_hookA
Install, check status of, or remove a zero-dependency git pre-commit hook that blocks unencrypted secrets from git staging.
Inputs: action, workspaceDir.
vault_k8s_eso_templateC
Generate ready-to-apply Kubernetes External Secrets Operator (ESO) SecretStore and ExternalSecret manifests for zero-knowledge vault synchronization.
Inputs: secrets (required), vaultId (required), storeName, secretName, +3 more.
vault_lease_secretB
Acquire a time-bounded lease_ handle holding decrypted secret bytes in MCP memory. Automatically zeroes the buffer upon TTL expiration.
Inputs: secretId (required), ttlSeconds.
vault_list_tagsB
List unique decrypted tag labels across accessible vaults.
Inputs: vaultId.
vault_prompt_secret_oobC
Prompt a human operator out-of-band (OOB) to enter a secret directly into client-side WebCrypto encryption without exposing the value in chat context.
Inputs: name (required), tags, vaultId, folderId, +3 more.
vault_revoke_leaseB
Explicitly revoke an active lease_ handle and immediately zeroize its in-memory buffer.
Inputs: leaseId (required).
vault_run_commandB
Execute a subprocess with {{vault:sec_}} or {{vault:lease_}} handles injected into environment variables, scrubbing stdout and stderr for raw, Base64, and URL-encoded secret leaks.
Inputs: env (required), command (required), cwd, args.
vault_scan_workspaceB
Scan workspace files, git staged diffs, or direct text content for unencrypted credentials, returning structured findings with line numbers, entropy, and suggested {{vault:sec_}} handles.
Inputs: path, content, minEntropy, stagedOnly.
vault_searchA
Search accessible vaults by keyword, tag blind index, or folder. Decrypts item metadata locally and returns safe summaries with opaque handles.
Inputs: tag, query, vaultId, folderId.
vault_ssh_agent_statusB
Inspect active SSH agent status, loaded Ed25519 signing keys, socket path, and interactive/OOB approval policies.
Inputs: socketPath.
vault_statusA
Query active MCP vault connection status, agt_ identity, OS keychain unlock state, and permission scopes.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Most tools target clearly distinct resources or actions, but vault_run_command and vault_inject_env overlap heavily: both inject secret/lease handles into a subprocess environment and return scrubbed output. Other adjacent pairs like get vs lease and scan vs absorb remain distinguishable from their descriptions.
Every tool uses lower snake_case with a consistent vault_ prefix, and the verb/noun structure is predictable across the set. There is no mixing of naming conventions.
19 tools is somewhat heavy, but the scope includes vault access, leasing, execution, import, scanning, audit, and external integrations, so most tools earn their place. The main redundancy is the run-command vs inject-env overlap.
The surface covers create, read, lease, delete, audit, scanning, and integrations well, but there is no explicit secret update/rotate operation or tag-mutation tool. Agents can work around rotation by deleting and recreating or absorbing secrets again, so these are notable but not fatal gaps.
Maintenance
Related MCP Connectors
A secret store for AI agents: the agent never sees the plaintext.
Password vault for AI agents with scoped, user-approved access
Secrets for developers and agents—secure context and workflows without exposing secret values.
Governed access to sensitive data, secrets and APIs for AI agents. A signed proof for each decision.
Related MCP Servers
- AlicenseAqualityBmaintenanceLocal AES-256-GCM encrypted vault for AI agents. Resolve {{PLACEHOLDER}} secrets in prompts at runtime — LLMs never see real API keys. Argon2id key derivation, zero cloud.270 npm7MIT
- AlicenseNot gradedqualityDmaintenanceAgent Vault is a local credential vault for AI agents. It enables agents to use secrets by name without ever seeing their values, with host allowlists, output scrubbing, and audit logging.4MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to scan and audit environment files for leaked secrets, sanitize them, encrypt/decrypt vaults, and run processes with zero-disk secret injection.MIT
- AlicenseAqualityBmaintenanceEnables AI agents to stage API keys into non-exposing handles and make API calls where the real key is injected locally, so secrets stay out of prompts, transcripts, tool arguments, and logs. Also allows listing handles, revoking secrets, and inspecting vault info without ever returning raw secret values.51MIT No Attribution