Secret MCP Server

Write secrets into .env without the agent ever seeing the value - Windows masked dialog (繁中 UI)

Local serverstdio

What is the Secret MCP Server?

Write secrets into .env without the agent ever seeing the value - Windows masked dialog (繁中 UI)

What the server does

A Model Context Protocol server that lets an AI agent put a secret (API key, token, password, connection string) into a project's .env file without the agent ever seeing the value.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Secret MCP Server

{
  "mcpServers": {
    "secret-safe-env": {
      "command": "npx",
      "args": ["-y", "secret-safe-env"],
      "env": {
        "OPENAI_API_KEY": "your-value",
        "DATABASE_URL": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
OPENAI_API_KEYCredential the server authenticates with.Yes
DATABASE_URLEndpoint or connection string the server talks to.Yes

Frequently asked questions

Write secrets into .env without the agent ever seeing the value - Windows masked dialog (繁中 UI) Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.