Vaulted MCP server for encrypted, self-destructing secret sharing

Vaulted MCP server for encrypted, self-destructing secret sharing

vaulted-mcp-server•byvaulted-fyi

An MCP stdio server that lets AI agents create and view encrypted, self-destructing secrets, including agent-blind sharing of environment variables, files, and .env keys.

License: MIT•Runtime: Awaiting documentation review•Category: auth security

WHAT IT DOES

  • •Provides four tools: create_secret, view_secret, check_status, and list_secrets.
  • •Encrypts secrets locally with AES-256-GCM and returns a shareable self-destructing link.
  • •Supports agent-blind input prefixes (env:, file:, dotenv:) so values are resolved locally and kept out of the transcript.
  • •View secrets can be sent to the browser, clipboard, or a file so plaintext stays out of agent context, and status checks do not consume a view.

BEST FOR

  • •Sharing API keys or tokens securely from an AI chat without pasting the value into the conversation.
  • •Sharing an environment variable or file from the local machine without exposing its value to the model context.
  • •Tracking whether a shared secret has been viewed without consuming a view.

ABOUT VAULTED-MCP-SERVER

Vaulted MCP server for encrypted, self-destructing secret sharing is cataloged as an MCP server attributed to vaulted-fyi. An MCP stdio server that lets AI agents create and view encrypted, self-destructing secrets, including agent-blind sharing of environment variables, files, and .env keys. It is categorized under auth security. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Vaulted MCP server for encrypted, self-destructing secret sharing are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the MCP server see or store my secret in plaintext?

No; encryption runs locally and the hosted service stores only ciphertext, while the key remains in the URL fragment.

Are command-based input sources like cmd:, op:, and keychain: enabled by default?

No; they run local processes and are disabled unless the server is started with the --allow-command-inputs flag.

Upstream README

View this exact version on GitHub

README.md · b00fa89d2aa7 · Fetched 2026-11-13 11:50:09 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

@vaulted/mcp-server

npm version license

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 link

What 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.

Installation

Requires Node.js ≥ 18.

Zero-install via npx:

npx -y @vaulted/mcp-server

Or install globally:

npm install -g @vaulted/mcp-server
vaulted-mcp-server

Quick 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

FlagDefaultDescription
--base-urlhttps://vaulted.fyiVaulted API base URL (for self-hosted instances)
--allowed-dirs(none)Comma-separated directories accessible for file-based input sources (extends CWD)
--allow-command-inputs(off)Enables the cmd:, op: and keychain: input sources, which run local processes. See below

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.

ParameterTypeDefaultDescription
contentstringrequiredThe secret to encrypt (max 1000 chars). Supports agent-blind prefixes.
max_views"1" | "3" | "5" | "10""1"Views before self-destruct
expiry"1h" | "2h" | "6h" | "12h" | "24h" | "3d" | "7d" | "14d" | "30d""24h"Time until expiration
passphrasestring(none)Optional passphrase protection
labelstring(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.

ParameterTypeDefaultDescription
urlstring(one req.)Full Vaulted URL including the # fragment
secret_idstring(one req.)Secret ID (alternative to url)
encryption_keystring(with secret_id)Encryption key from URL fragment (required with secret_id)
output_mode"browser" | "clipboard" | "file" | "direct""browser"Where to send the decrypted value
file_pathstring(none)Required when output_mode is "file"
passphrasestring(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 agent
  • file — writes decrypted value to file_path, nothing returned to agent
  • direct — 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.

ParameterTypeDefaultDescription
urlstring(one req.)Status URL (e.g., https://vaulted.fyi/status/<id>/<token>)
secret_idstring(one req.)Secret ID (alternative to url)
status_tokenstring(with id)Status token from secret creation (required with secret_id)
previousViewsnumber(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.

ParameterTypeDescription
(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.

PrefixExampleResolves to
(none)the plain valueLiteral string
env:env:STRIPE_SECRET_KEYprocess.env.STRIPE_SECRET_KEY
file:file:/home/user/.ssh/id_rsaContents of the file at that path
dotenv:dotenv:.env.local:DATABASE_URLValue of DATABASE_URL in .env.local

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)

PrefixExampleResolves to
cmd:cmd:pass show stripe/livestdout of the shell command
op:op:Private/Stripe API Keyop read op://Private/Stripe API Key (1Password CLI)
keychain:keychain:MyServicesecurity find-generic-password -s MyService -w (macOS only)

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: and keychain: 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 test

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Vaulted MCP server for encrypted, self-destructing secret sharing from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/vaulted-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related auth security MCP Servers

Alternative and complementary servers in the same category

View all in auth security →

A modular FastMCP server for interacting with Microsoft Graph API, supporting advanced queries for users, sign-in logs, MFA status, and privileged users.

Repository stats unavailable
Security & Secrets
Keycloak MCP Server
keycloak-mcp-server•sshaaf

A Model Context Protocol (MCP) server that provides programmatic access to Keycloak administration functionality.

Repository stats unavailable
Security & Secrets

An MCP server for LLM-driven penetration testing that wraps Kali tools and adds scope enforcement, engagement tracking, and structured output.

Repository stats unavailable
Security & Secrets