Skip to content
MCP server

Secret

Let coding agents use credentials by key name without reading their values

Runs locally
Install

Secret is an open-source MCP server for security. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, macOS, Linux
Runs
Locally
Version
0.6.2
Listing updated

Similar MCP servers

Install

Run in a terminal

claude mcp add secret -- npx -y https://github.com/avhn/secret/releases/download/v0.6.2/secret-v0.6.2-desktop.mcpb

Add to claude_desktop_config.json

{
  "mcpServers": {
    "secret": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/avhn/secret/releases/download/v0.6.2/secret-v0.6.2-desktop.mcpb"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "secret": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/avhn/secret/releases/download/v0.6.2/secret-v0.6.2-desktop.mcpb"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "secret": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/avhn/secret/releases/download/v0.6.2/secret-v0.6.2-desktop.mcpb"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "secret": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/avhn/secret/releases/download/v0.6.2/secret-v0.6.2-desktop.mcpb"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "secret": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/avhn/secret/releases/download/v0.6.2/secret-v0.6.2-desktop.mcpb"
      ]
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

About Secret

Secret is a local credential CLI with a names-only MCP server and a guard hook. The agent asks for a credential by key name, the CLI hands the chosen value straight to the program's environment, and secret run redacts loaded literal values from stdout and stderr. The MCP server exposes only key names, labels and paths for explicitly approved stores and never returns values.

You stash values yourself in a terminal with a hidden prompt. Agents may use show and run but must never enter or retrieve values. The MCP server is registered with an absolute path and an exact store reference that a human approved, such as a file store. There are also encrypted age stores and pass stores, and an exec command that launches other MCP servers with selected values, which the README says is unfiltered and can disclose values.

The README calls this accident prevention, not a sandbox. Redaction misses encodings such as base64 or URL encoding, the guard cannot contain a determined agent, and metadata can reveal names, labels, paths and account IDs. It is GPL-3.0-or-later and ships as a Claude Desktop MCPB bundle.

Tools this server provides (4)

Taken from the project documentation; the running server may differ.

list
Lists key names in an approved store.
show
Shows names, labels and paths without values.
diff
Compares store metadata.
health
Checks the setup and store status.

What it does

Names-only MCP
Agents see key names, labels and paths, never values.
Direct injection
Selected values go to a program's environment without passing through the agent.
Output redaction
secret run redacts loaded literal values from stdout and stderr.
Guard hook
Denies known store-reading operations in Claude Code and Codex.
Multiple stores
Env files, encrypted age stores and pass stores.
Cross-platform
Linux, macOS and Windows installers.

Good for

  • Run a deploy script that needs an API token without exposing it
  • Let an agent list which credentials exist
  • Launch another MCP server with a secret value
  • Block agents from reading credential files

Pricing

Open source

GPL-3.0-or-later licence

Secret FAQ

Can the agent read my secrets?

Not through the names-only interface, which never returns values. The README adds that this is accident prevention, not a sandbox.

What does redaction miss?

Base64, URL encoding, substrings and other transformations.

How do I store a value?

Run secret stash in your own terminal with a hidden prompt.

What licence is Secret?

GPL-3.0-or-later.

Is Secret free?

Yes. Secret is open source, so you can use and self-host it for free.

How do I add Secret to Claude Code?

Run this command in your terminal: claude mcp add secret -- npx -y https://github.com/avhn/secret/releases/download/v0.6.2/secret-v0.6.2-desktop.mcpb

What are the best alternatives to Secret?

The closest alternatives to Secret are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers