Skip to main content
MCP server CX Codex

Secret — Claude Code MCP server: what it does, install

Secret is a Claude Code MCP server that exposes secret names and runs commands with selected values while keeping the values out of agent output.

GPL-3.0 ★ 9 updated 2026-11-16

Open on GitHub

What Secret does

Secret exposes metadata from explicitly approved stores through MCP over stdio. Its list, show, diff, and health tools report names and store state, while withholding secret values, hashes, and lengths.

The secret CLI places selected keys in a child process environment and redacts those values from stdout and stderr. A guard hook blocks attempts to read credential files, dump environment variables, inspect the clipboard, or call secret get and secret exec. It is an accident-prevention layer, not a sandbox.

Linux and macOS use curl -fsSL https://raw.githubusercontent.com/avhn/secret/v0.6.1/install.sh | sh to install the CLI. Windows uses irm https://raw.githubusercontent.com/avhn/secret/v0.6.1/install.ps1 | iex. The MCP server accepts stores that have been explicitly allowlisted.

What it helps with

  • inspect secret names without exposing their contents
  • run deploy.sh with one selected credential in its environment
  • remove credential values from child-process output
  • block unsafe reads of credential files and environment dumps

Example prompts for the agent

  • Show the key names in ~/.secrets.env without revealing any values.
  • Run ./deploy.sh with API_TOKEN from ~/.secrets.env, then redact it from the output.
  • Compare metadata from two stores that have been explicitly allowlisted.

How to install Secret

Install

The MCP registry has no launch command for it: see the repository README

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Secret

How do I install Secret for Claude Code?

On Linux or macOS, install the CLI with curl -fsSL https://raw.githubusercontent.com/avhn/secret/v0.6.1/install.sh | sh. Windows uses irm https://raw.githubusercontent.com/avhn/secret/v0.6.1/install.ps1 | iex.

What does Secret do?

Secret gives an agent MCP tools for names and metadata from approved stores. The server withholds secret values, while the CLI supplies selected keys to a child process and removes them from its output.

What does Secret require to work?

The secret CLI and an explicitly allowlisted store are required. The MCP server communicates over stdio.

Similar MCP servers

MCP servers catalog →

Project sponsors

Companies that keep this analytics open