- Local Secrets
Local Secrets
A local secrets manager for Claude Code. Store API keys and credentials securely on your machine - no cloud services, no scattered .env files.
Features: • Store secrets in a local SQLite database • Organize by category (api, auth, config, etc.) • Search and filter secrets • Get values formatted as environment variables • Full CRUD operations via MCP tools
Available Tools: • get_secret - Retrieve a secret by key • list_secrets - List all secrets (optionally filter by category) • search_secrets - Search by key pattern • get_env_value - Get secret as ENV_VAR=value format • add_secret - Add a new secret • update_secret - Update an existing secret • delete_secret - Remove a secret
CLI Usage: npx local-secrets-mcp init npx local-secrets-mcp add OPENAI_API_KEY sk-xxx npx local-secrets-mcp list
Why use this? Keep your API keys in one place. No more copying .env files between projects or accidentally committing secrets to git.
Server Config
{
"mcpServers": {
"local-secrets": {
"command": "npx",
"args": [
"-y",
"local-secrets-mcp",
"serve"
]
}
}
}