Vaulted MCP Server
Vaulted MCP Server lets you securely share encrypted, self-destructing secrets from MCP-compatible AI tools.
Create encrypted secret links with expiry, max views, optional passphrase, and labels.
Share secrets agent-blind from env vars, files, and .env keys, with opt-in cmd/op/keychain sources.
Retrieve/decrypt secrets via URL or ID + key, delivering to browser, clipboard, file, or directly to the agent.
Check view count/status and expiry without consuming a view, including detecting new views.
List locally tracked secrets with live status.
Use zero-knowledge AES-256-GCM encryption, with the key kept in the URL fragment and no accounts/telemetry.
Provides integration with Windsurf (Codeium's IDE), enabling secure secret sharing and management through the MCP protocol within the development environment.
Supports agent-blind reading of .env file keys, allowing users to securely share environment variables without exposing the actual values to the LLM.
Enables secure sharing of Stripe API keys and other sensitive Stripe credentials through encrypted, self-destructing links without exposing the actual values in conversation history.
@vaulted/mcp-server
Share encrypted, self-destructing secrets directly from Claude Desktop, Cursor, Windsurf, and any MCP-compatible AI tool.
š Zero-knowledge E2E encryption (AES-256-GCM, key never sent to server)
š Agent-blind input: share env vars, files, and .env keys without exposing them in context
š ļø 4 tools:
create_secret,view_secret,check_status,list_secretsš Local history with live status tracking
š» Works with Claude Desktop, Cursor, Windsurf, Claude Code, VS Code
Agent-blind secret sharing
The headline feature: sensitive values are resolved locally, so they stay out of the conversation transcript. When you ask your agent to share an environment variable or file, the agent passes a reference and the MCP server reads the value directly from your machine, encrypts it, and returns the link.
"Share the value of my STRIPE_SECRET_KEY env var"
ā Agent passes: env:STRIPE_SECRET_KEY (the value isn't in the transcript)
ā Server resolves it locally, encrypts, returns the linkWhat this does and doesn't protect: the secret value never appears in your conversation history or the LLM's context. The returned link, however, contains the decryption key, so the agent receives it and could open it (for example with view_secret). Treat the link like the secret itself.
Related MCP server: enigmagent-mcp
Installation
Requires Node.js ā„ 18.
Zero-install via npx:
npx -y @vaulted/mcp-serverOr install globally:
npm install -g @vaulted/mcp-server
vaulted-mcp-serverQuick start
Add to your MCP host config and restart the application. Your agent will have access to all 4 Vaulted tools immediately.
{
"mcpServers": {
"vaulted": {
"command": "npx",
"args": ["-y", "@vaulted/mcp-server"]
}
}
}Configuration
Claude Desktop
File: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"vaulted": {
"command": "npx",
"args": ["-y", "@vaulted/mcp-server"]
}
}
}Cursor
File: ~/.cursor/mcp.json
{
"mcpServers": {
"vaulted": {
"command": "npx",
"args": ["-y", "@vaulted/mcp-server"]
}
}
}Windsurf
File: ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"vaulted": {
"command": "npx",
"args": ["-y", "@vaulted/mcp-server"]
}
}
}Claude Code
File: .mcp.json in your project root (or ~/.claude/.mcp.json globally):
{
"mcpServers": {
"vaulted": {
"command": "npx",
"args": ["-y", "@vaulted/mcp-server"]
}
}
}VS Code
File: .vscode/mcp.json
{
"servers": {
"vaulted": {
"command": "npx",
"args": ["-y", "@vaulted/mcp-server"]
}
}
}Any other MCP client
Run npx @vaulted/mcp-server as a stdio transport. The server uses the standard MCP stdio protocol.
Optional flags
Flag | Default | Description |
|
| Vaulted API base URL (for self-hosted instances) |
| (none) | Comma-separated directories accessible for file-based input sources (extends CWD) |
| (off) | Enables the |
Pass flags via the args array:
{
"mcpServers": {
"vaulted": {
"command": "npx",
"args": ["-y", "@vaulted/mcp-server", "--base-url", "https://your-instance.example.com"]
}
}
}Multiple allowed directories:
{
"mcpServers": {
"vaulted": {
"command": "npx",
"args": ["-y", "@vaulted/mcp-server", "--allowed-dirs", "/home/user/secrets,/tmp/creds"]
}
}
}Tools reference
create_secret
Encrypt and store a secret, returns a shareable self-destructing link.
Parameter | Type | Default | Description |
| string | required | The secret to encrypt (max 1000 chars). Supports agent-blind prefixes. |
|
|
| Views before self-destruct |
|
|
| Time until expiration |
| string | (none) | Optional passphrase protection |
| string | (none) | Human-readable label for local history |
Returns: { success: true, data: { url, statusUrl, expiresIn, maxViews, passphraseProtected }, message }
view_secret
Retrieve and decrypt a secret from a Vaulted URL. Defaults to opening in the browser ā use output_mode to keep the decrypted value out of the conversation.
Parameter | Type | Default | Description |
| string | (one req.) | Full Vaulted URL including the |
| string | (one req.) | Secret ID (alternative to |
| string | (with secret_id) | Encryption key from URL fragment (required with |
|
|
| Where to send the decrypted value |
| string | (none) | Required when |
| string | (none) | Required for passphrase-protected secrets |
Output modes:
browserā opens the secret URL in your default browser (decryption happens in-browser, value stays out of agent context)clipboardā copies decrypted value to clipboard, nothing returned to agentfileā writes decrypted value tofile_path, nothing returned to agentdirectā returns decrypted value in the response (use with care ā value enters agent context)
Returns: Depends on output_mode. Browser/clipboard/file modes confirm success without returning the plaintext.
check_status
Check how many times a secret has been viewed and whether it's still active. Does not consume a view.
Parameter | Type | Default | Description |
| string | (one req.) | Status URL (e.g., |
| string | (one req.) | Secret ID (alternative to |
| string | (with id) | Status token from secret creation (required with |
| number | (none) | Pass the last known view count to detect new views since last check. When the count increases, the response includes "New view detected!" |
Returns: { success: true, data: { views, maxViews, status, expiresAt }, message }
list_secrets
Show all locally tracked secrets with their live status fetched from the API.
Parameter | Type | Description |
(none) | ā | No parameters |
Returns: { success: true, data: { entries: [...], suggestedAction? }, message }
suggestedAction is included when unconsumed active secrets exist, prompting you to use check_status to monitor them.
Response format
All tools use a consistent response shape:
// Success
{ "success": true, "data": { /* tool-specific */ }, "message": "Human-readable summary" }
// Error
{ "success": false, "error": { "code": "SECRET_EXPIRED", "message": "...", "suggestion": "..." } }Error codes: SECRET_EXPIRED, SECRET_CONSUMED, PASSPHRASE_REQUIRED, ENV_VAR_NOT_FOUND, FILE_NOT_FOUND, PATH_TRAVERSAL_BLOCKED, DOTENV_KEY_NOT_FOUND, API_UNREACHABLE, API_ERROR, ENCRYPTION_FAILED, FILE_WRITE_ERROR, INVALID_INPUT
Examples
Create a secret
"Share this API key securely: sk-abc123"ā Returns a one-time link in the chat. Share it via Slack, email, or a ticket.
Agent-blind: share an environment variable
"Share the value of my GITHUB_TOKEN env var securely"ā Agent passes env:GITHUB_TOKEN to the tool. The server reads the value locally, so the token stays out of the transcript. The agent still receives the link (which contains the decryption key).
Agent-blind: share a file
"Share the contents of ~/.ssh/id_rsa.pub securely"ā Agent passes file:~/.ssh/id_rsa.pub. File is read locally and encrypted before the link is returned.
Agent-blind: share a key from a .env file
"Share the DATABASE_URL from my .env.local"ā Agent passes dotenv:.env.local:DATABASE_URL. The specific key is parsed and encrypted. Other values in the file are never read.
View a secret in the browser
"Open this secret: https://vaulted.fyi/s/abc123#key..."ā Browser opens with the decrypted content. The value never enters the conversation.
View a secret to clipboard
"Retrieve this secret to my clipboard: https://vaulted.fyi/s/abc123#key..."ā Decrypted value is copied to clipboard. Nothing sensitive is returned in the chat.
Save a secret to a file
"Save this secret to /tmp/creds.txt: https://vaulted.fyi/s/abc123#key..."ā Decrypted value is written to /tmp/creds.txt. Nothing sensitive is returned in the chat.
View a secret directly (returns value to agent)
"Retrieve this secret and return the value to me: https://vaulted.fyi/s/abc123#key..."ā Decrypted value is returned in the response. Use only when you need the value in the conversation ā it will appear in your chat history.
Check whether a secret has been viewed
"Has my secret been viewed yet?"ā Returns view count, max views, and expiry. Does not consume a view.
Poll for new views
"Let me know when someone views my secret ā previous view count was 0"ā Pass previousViews: 0. When the count increases, the response includes "New view detected!"
List recent secrets
"What secrets have I shared recently?"ā Returns your local history with live status from the API ā view counts, remaining views, and expiry for each.
Agent-blind input sources
The content parameter of create_secret supports prefixes that instruct the server to resolve the value locally before encrypting. The resolved value is never included in tool results, errors, history or logs, so it stays out of the conversation transcript. The returned link still contains the decryption key, so the agent could open it.
Prefix | Example | Resolves to |
(none) |
| Literal string |
|
|
|
|
| Contents of the file at that path |
|
| Value of |
Path security: File and dotenv paths are validated against process.cwd() and any --allowed-dirs you configure. Symlinks pointing outside allowed directories are rejected with PATH_TRAVERSAL_BLOCKED.
Command-based input sources (opt-in)
Prefix | Example | Resolves to |
|
| stdout of the shell command |
|
|
|
|
|
|
These prefixes run local processes, so they are disabled by default. Otherwise a prompt-injected model (for example, one reading a malicious web page or file) could run arbitrary commands on your machine through create_secret. While disabled, they are rejected with COMMAND_INPUTS_DISABLED and nothing is executed.
Only you can enable them, by adding --allow-command-inputs to the server's args in your MCP client configuration:
{
"mcpServers": {
"vaulted": {
"command": "npx",
"args": ["-y", "@vaulted/mcp-server", "--allow-command-inputs"]
}
}
}The flag is read once at startup; no tool call can turn it on. Note that an agent with write access to your MCP configuration file could add the flag itself, but it only takes effect after the server restarts, which you control. Review changes to that file.
Output modes that keep secrets out of context: Use browser, clipboard, or file output modes for view_secret ā the decrypted value is delivered directly to you without entering the agent's response or conversation history.
Security model
End-to-end encrypted: AES-256-GCM encryption runs locally via @vaulted/crypto. The server never sees plaintext.
Key in URL fragment: The encryption key lives only in the
#fragment of the URL ā never sent to any server, never logged.Zero-knowledge server: vaulted.fyi stores only ciphertext. It cannot decrypt your secrets.
Self-destructing: Secrets are deleted when max views are reached or TTL expires ā whichever comes first.
No accounts, no telemetry: Anonymous usage. No API keys required.
Values stay out of the transcript: Input source prefixes (
env:,file:,dotenv:) keep sensitive values out of the conversation. The returned link contains the decryption key, so the agent could still open it.No command execution by default:
cmd:,op:andkeychain:run only when you start the server with--allow-command-inputs.
Learn more at vaulted.fyi/security.
Contributing
git clone https://github.com/vaulted-fyi/vaulted-mcp-server
cd vaulted-mcp-server
npm install
npm testLicense
MIT
Available Tools
4 toolscheck_statusCheck StatusARead-onlyIdempotent
Check the status of a previously shared secret ā how many times it's been viewed, whether it's still active, and when it expires. Does not consume a view. Optionally pass previous_views to detect new views since last check.
Inputs: url, secret_id, status_token, previousViews.
create_secretCreate SecretA
Create a self-destructing, end-to-end encrypted link for sharing a secret such as a password, API key, or credential. Encryption happens locally; the Vaulted server only receives ciphertext. To keep the value out of the conversation transcript, pass a reference instead of the value: env:VAR_NAME, file:path (restricted to the working directory and --allowed-dirs), or dotenv:path:KEY. The MCP server reads it locally and encrypts it. Note: the returned link contains the decryption key, so you receive it and could open it. References keep the value out of the transcript, not out of your reach. Optionally provide a label to identify the secret in your history.
Inputs: content (required), label, expiry, max_views, +1 more.
list_secretsList SecretsARead-onlyIdempotent
List previously shared secrets and their current status ā view counts, expiry, and whether they've been consumed.
Inputs: no named parameters.
view_secretView SecretADestructive
Retrieve and decrypt a secret from a Vaulted secure link. The secret may have view limits and will be destroyed after the maximum views are reached. By default opens in the browser for security ā use output_mode to copy to clipboard, save to file, or return directly.
Inputs: url, file_path, secret_id, passphrase, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 4 tools
The tools mostly have clearly distinct roles: create_secret creates links, view_secret decrypts/retrieves, and list_secrets gives an overview. check_status overlaps somewhat with list_secrets because both report status, but check_status is specifically for one secret and supports previous_views comparison.
All tool names use consistent snake_case verb_noun phrasing: create_secret, check_status, view_secret, list_secrets. The pattern is predictable and readable, with only check_status being less secret-specific than the others.
Four tools is well-scoped for a focused secret-sharing server. Each tool serves a distinct part of the create/view/check/list workflow, and none feels redundant or unnecessary.
The surface covers creation, viewing, status checking, and listing, which are the core secret-sharing operations. However, there is no explicit revoke/delete tool for invalidating a shared link before expiry, which is a notable lifecycle gap for this domain.
Maintenance
Related MCP Connectors
A secret store for AI agents: the agent never sees the plaintext.
Secrets for developers and agentsāsecure context and workflows without exposing secret values.
Request and share secrets (API keys, passwords) via end-to-end encrypted, self-destructing links.
1Encrypted secret store and rotation for autonomous agent credentials
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceSelf-hosted, zero-knowledge encrypted, self-destructing secrets for secure agent-to-agent coordination3AGPL 3.0
- 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
- AlicenseCqualityCmaintenanceEnables AI agents to securely store and manage encrypted secrets locally while using them indirectly through environment-variable injection or file writes, so plaintext values never enter the agent's context.8MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to securely inject API keys and secrets into environment files, configs, or commands without the agent ever seeing the secret values.MIT