home / mcp / secret mcp server
Provides a local MCP server and desktop UI to manage secrets, enabling safe AI-assisted .env file creation without exposing secret values.
Configuration
View docs{
"mcpServers": {
"akarenin-secret-mcp": {
"command": "npx",
"args": [
"secret-mcp"
]
}
}
}Secret MCP provides a desktop app to manage secrets locally and an MCP server that lets AI coding assistants write and read environment files without ever exposing secret values. This setup keeps your credentials secure while streamlining the process of integrating secrets into your codebase.
You use Secret MCP by running the local MCP server alongside the desktop app. Secrets are stored on your machine and are only exposed to helper tools when you explicitly request an operation. Two MCP tools are exposed to AI assistants: search_secrets for locating secret names and descriptions, and write_env for safely exporting selected secrets to a .env file. When coding with AI, the assistant will query for secret names or write values directly to your .env file without seeing the secret values themselves.
Prerequisites: you need Node.js and npm installed on your computer.
# Install and build the desktop app (Tauri-based)
npm install
npm run tauri build
```
```
# MCP client configuration snippet to enable the secret MCP server
# Use this in your MCP client config
{
"secret-mcp": {
"command": "npx",
"args": ["secret-mcp"]
}
}All secrets are kept on your local device. Secret values never leave your machine except when explicitly written to a .env file you specify. The MCP server only returns secret names and descriptions to the AI. When writing a .env file, the operation writes values directly from your local store to the file and does not pass them through the AI.
With Secret MCP you can quickly locate which secrets exist by name or description, and then safely export the exact keys you need into your project’s .env file. This reduces the risk of leaking secrets to AI tools while maintaining a smooth development workflow.
Find secrets by name or description; returns names and descriptions only, never exposing values.
Write selected secrets to a .env file directly from the local store, ensuring values are not sent to the AI.