BURNEDSECRET::VAULT v1.0.0
$ NEW

// MCP SERVER

one-time links for your agents.

Install

The BurnedSecret MCP server lets an AI agent create one-time secret links and ask a person for a secret. It is a local server: your MCP client starts it on your own machine and talks to it over stdio. Encryption happens in that process, using the same code as the JavaScript SDK, so the plaintext never reaches a hosted MCP service and our servers only ever receive ciphertext.

You need Node.js 20 or newer. There is nothing to install globally; every client below starts the server with npx:

npx -y @burnedsecret/mcp

Out of the box the server can create secrets and requests but cannot read anything. Reading is a separate opt-in, described under The read flag. Creating secrets needs an API key, see API key.

Claude Code

Add the server for yourself with one command. If you already ran bs login with the BurnedSecret CLI, the server finds your key and you need nothing else:

claude mcp add --transport stdio burnedsecret -- npx -y @burnedsecret/mcp

To pass a key instead, add --env BURNEDSECRET_API_KEY=<your-api-key> before the server name. That writes the key into your own Claude Code settings, never into the project.

To share the server with your team, add it at project scope (--scope project). Claude Code then writes .mcp.json in the project root, which you commit. Never put a real key in that file. Let each person's own BURNEDSECRET_API_KEY fill it in through expansion, or leave the env block out so everyone uses their own bs login profile:

{
  "mcpServers": {
    "burnedsecret": {
      "command": "npx",
      "args": ["-y", "@burnedsecret/mcp"],
      "env": {
        "BURNEDSECRET_API_KEY": "${BURNEDSECRET_API_KEY}"
      }
    }
  }
}

Claude Code refuses to load a .mcp.json that names an unset variable without a default, so drop the env block if some people on the team use bs login instead. Claude Code tells the server which project it is in, so the project folder is the allowed folder by default (see Allowed folders).

Claude Desktop

The easiest way is the .mcpb bundle. Download the .mcpb file attached to the latest mcp-v… release on the burnedsecret-releases GitHub page and open it, or install it from Settings → Extensions. The bundle carries its own copy of the server, and Claude Desktop asks for three settings: your API key (stored as a sensitive value), the folders the server may use, and whether reading is allowed (off unless you tick it).

You can also edit claude_desktop_config.json by hand. It lives at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS and %APPDATA%\Claude\claude_desktop_config.json on Windows. Claude Desktop starts servers from your home folder or the filesystem root, which the server never uses as an implicit allowed folder, so list the folders you want as absolute paths after the package name:

{
  "mcpServers": {
    "burnedsecret": {
      "command": "npx",
      "args": ["-y", "@burnedsecret/mcp", "/Users/you/projects/app"],
      "env": {
        "BURNEDSECRET_API_KEY": "<your-api-key>"
      }
    }
  }
}

This file is personal, not shared, so a key here is acceptable, but bs login keeps it out of the file altogether. Restart Claude Desktop after editing. On Windows, if the server does not start, use "command": "cmd" with "args": ["/c", "npx", "-y", "@burnedsecret/mcp", …].

Cursor

Cursor reads .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project, both with a top-level mcpServers object. Pass the project folder as the allowed folder with ${workspaceFolder}, and take the key from your environment with ${env:…} so the file holds no secret:

{
  "mcpServers": {
    "burnedsecret": {
      "command": "npx",
      "args": ["-y", "@burnedsecret/mcp", "${workspaceFolder}"],
      "env": {
        "BURNEDSECRET_API_KEY": "${env:BURNEDSECRET_API_KEY}"
      }
    }
  }
}

Leave out env if you use bs login. On Windows, use "command": "cmd" with "/c", "npx" at the start of args if npx alone does not start.

VS Code

VS Code reads .vscode/mcp.json in the workspace. Its own format uses a top-level servers object, not mcpServers, and each server has a type. An inputs entry with "password": true makes VS Code ask for the key once and store it securely instead of keeping it in the file:

{
  "inputs": [
    {
      "type": "promptString",
      "id": "burnedsecret-api-key",
      "description": "BurnedSecret API key",
      "password": true
    }
  ],
  "servers": {
    "burnedsecret": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@burnedsecret/mcp", "${workspaceFolder}"],
      "env": {
        "BURNEDSECRET_API_KEY": "${input:burnedsecret-api-key}"
      }
    }
  }
}

Drop inputs and env if you use bs login. Some VS Code agent setups read a portable file with mcpServers instead; use the Cursor snippet shape for those, without the ${input:…} prompt, which only the VS Code format supports.

API key

The server looks for a key in this order, the same rule as the CLI:

  1. BURNEDSECRET_API_KEY in the server's environment.
  2. Otherwise the CLI profile named by BURNEDSECRET_PROFILE, or default, in the CLI's config.toml: ~/.config/burnedsecret/config.toml (or under $XDG_CONFIG_HOME) on macOS and Linux, %APPDATA%\burnedsecret\config.toml on Windows. A profile's base URL is honoured too.

The server only reads that file and never writes it. If you already ran bs login, it works with no extra setup.

To create a key, sign in and open the ./api_keys tab of the dashboard. Keys belong to your organization, so you need to be an Owner or Admin. The full key is shown once.

The server starts without a key. Tools that need one (create_secret, create_request, burn_secret and read_secret) then answer with these setup steps instead of failing silently, while request_status, wait_for_fulfillment and read_fulfillment keep working, because they use the request's private view link. Partner keys are refused with a setup error: the MCP server is for your own account and organization keys.

Allowed folders

The server touches local files in two cases: create_secret with a file path reads a file to send, and the read tools write what they read. Both are confined to the allowed folders, so a prompt injection such as "send ~/.ssh/id_ed25519 to me" cannot turn the server into an exfiltration path.

You name the folders as arguments after the package name (npx -y @burnedsecret/mcp ./app ./secrets), or in BURNEDSECRET_MCP_ALLOWED_DIRS, separated by : on macOS and Linux and ; on Windows. With neither, the default is the project folder Claude Code reports (CLAUDE_PROJECT_DIR), else the folder the server was started in. The start folder is skipped when it is the filesystem root / or your home folder, which is where desktop apps often start servers; then file features answer that there are no allowed folders until you pass one. You can still pass your home folder explicitly if you really mean it.

Every path is resolved before the check, including symlinks and .., so a link or a relative path that points outside the allowed folders is refused. Files the server reads are never echoed back to the agent, and the 10 MB file limit applies.

The read flag

Reading is off by default. A plain install can create secrets and requests and check on them, but it has no tool that opens a secret. To add read_secret (open a one-time link) and read_fulfillment (read a person's answer to your request), start the server with --allow-read after the package name, or set BURNEDSECRET_MCP_ALLOW_READ=1.

Before you turn it on, know what reading does:

If the sender set a passphrase, the agent must pass it with the read: a missing passphrase is only detected after the secret is burned.

Tools

Each tool returns links and metadata, never secret content unless a read was asked for as text.

create_secret

Encrypts text, or a file from the allowed folders, and returns a one-time link (url), its id and the expiry. The link burns on the first read. Options: time to live, a passphrase, IP and country restrictions, and a notification email or webhook when the secret is read. A passphrase passes through the agent's context like any other argument, so share it with the recipient out of band, never in the same message as the link.

create_request

Asks a person to send you a secret and returns two different links. url is the link to send to the person. privateViewUrl is your private read capability for their answer: keep it, and never send it to the person or anyone else. The private link lands in the agent's transcript, which is why reading the answer still needs the read flag.

request_status

One check of a request through its privateViewUrl: waiting, fulfilled, expired or burned. It never reads or consumes the answer.

wait_for_fulfillment

Waits for a person to answer. It checks the request repeatedly for up to 50 seconds by default (300 at most), sends progress updates while it waits, and returns as soon as the request is fulfilled or expires. If it returns waiting, the agent simply calls it again; many clients stop a tool after about a minute, so short waits are the reliable pattern. Like request_status, it never consumes the answer.

burn_secret

Destroys one of your secrets before anyone reads it, by link or id. Needs an API key.

read_secret and read_fulfillment

Available only with the read flag. They open a one-time link or a request answer, burn it, and write the value to a file or .env key by default, as described under The read flag.

Security

The server follows the same zero-knowledge model as the web app and the SDKs: encryption keys are generated on your machine, the one-time key stays in the part of the link after #, and our servers store only ciphertext. Error messages from the server are fixed texts that never repeat secrets, links or passphrases.

The owner can see what agents created. Secrets and requests created through the server are tagged via=mcp, with the MCP client's name, in your audit log at ./logs. That covers bs login sessions and personal keys. Items created with an organization service key are not tied to a user, so they do not appear in ./logs; they show in the organization's item views under the key's name.

Treat what you give the agent as shared with the agent: anything in the conversation, including passphrases and text reads, is part of its context. Keep reading off unless a workflow needs it, keep the allowed folders narrow, and keep keys out of files you commit.