Local Secrets
About
Store and retrieve API keys and secrets locally for Claude Code. No cloud services, no .env files scattered across projects. Secrets are stored in a SQLite database on your machine and accessed via MCP tools. Supports add, get, list, search, update, and delete operations with cat
Details
- Author
- Hustada
- Downloads
- 272
- Categories
- Developer Tools, Security
Jump to
- 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
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Local SecretsCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install and manage secrets via CLI with npx local-secrets-mcp init, npx local-secrets-mcp add <key> <value>, and npx local-secrets-mcp list. Secrets can also be accessed through MCP tools such as get_secret, add_secret, and search_secrets.
get_secret
Get a specific secret value by its key name
list_secrets
List all available secret keys (values are hidden)
search_secrets
Search for secrets by key name pattern
get_env_value
Get a secret formatted as an environment variable assignment
add_secret
Add a new secret to the vault
update_secret
Update an existing secret
delete_secret
Delete a secret from the vault
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"local secrets": {
"local-secrets": {
"command": "npx",
"args": [
"-y",
"local-secrets-mcp",
"serve"
]
}
}
}
}
McpServers
{
"local-secrets": {
"command": "npx",
"args": [
"-y",
"local-secrets-mcp",
"serve"
]
}
}
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.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





