local-secrets-mcp

local-secrets-mcp

local-secrets-mcp•byhustada

An MCP server for storing API keys and tokens locally in a SQLite database, organized with categories and notes, and accessible from Claude Code via conversation or CLI.

License: Not specified•Runtime: Awaiting documentation review•Category: auth security

WHAT IT DOES

  • •Exposes MCP tools for retrieving, listing, searching, adding, updating, and deleting secrets.
  • •Secrets are stored locally in a SQLite database, organized with categories and notes.
  • •Supports importing from and exporting to .env files.
  • •Logs all secret access to an access log file.

BEST FOR

  • •Developers who want Claude Code to look up stored API keys and tokens during local development work.
  • •Users who need to search secrets by key pattern or filter them by category.
  • •Local workflows that need .env import and export of stored secrets.

ABOUT LOCAL-SECRETS-MCP

local-secrets-mcp is cataloged as an MCP server attributed to hustada. An MCP server for storing API keys and tokens locally in a SQLite database, organized with categories and notes, and accessible from Claude Code via conversation or CLI. It is categorized under auth security. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for local-secrets-mcp are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Are stored secrets encrypted?

No. The local database is not encrypted and relies on filesystem permissions.

What happens to a secret when Claude retrieves it?

The value is included in the conversation and sent to Anthropic's servers, similar to pasting a key into chat.

How can secrets be kept fully local?

Use the CLI directly to get a secret; it prints to the terminal and never touches the network.

Upstream README

View this exact version on GitHub

README.md · 03d3f664bd2d · Fetched 2026-11-13 11:59:22 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

local-secrets-mcp

A simple MCP (Model Context Protocol) server for managing local secrets with Claude Code.

Store API keys, tokens, and other secrets locally and access them through Claude Code. Organize with categories and notes, import/export .env files, and manage everything via CLI or conversation.

Quick Start

1. Initialize the database

npx local-secrets-mcp init

2. Add some secrets

npx local-secrets-mcp add OPENAI_API_KEY sk-xxx
npx local-secrets-mcp add ANTHROPIC_API_KEY sk-ant-xxx --category ai
npx local-secrets-mcp add STRIPE_SECRET_KEY sk_live_xxx --category payments

3. Configure Claude Code

Add to your Claude Code MCP config:

For Claude Code CLI (~/.claude.json):

{
  "mcpServers": {
    "local-secrets": {
      "command": "npx",
      "args": ["-y", "local-secrets-mcp", "serve"]
    }
  }
}

For Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "local-secrets": {
      "command": "npx",
      "args": ["-y", "local-secrets-mcp", "serve"]
    }
  }
}

Custom database location (use existing secrets folder):

{
  "mcpServers": {
    "local-secrets": {
      "command": "npx",
      "args": ["-y", "local-secrets-mcp", "serve"],
      "env": {
        "SECRETS_PATH": "/path/to/your/.secrets"
      }
    }
  }
}

4. Use in Claude

Once configured, Claude can:

  • List your secrets: "What API keys do I have stored?"
  • Get a secret: "Get my OpenAI API key"
  • Add secrets: "Store this Stripe key: sk_live_xxx"
  • Search: "Find all my AI-related secrets"

CLI Commands

# Initialize database
local-secrets-mcp init

# Add a new secret
local-secrets-mcp add <key> <value>
local-secrets-mcp add GITHUB_TOKEN ghp_xxx --category github

# Add or update a secret
local-secrets-mcp set <key> <value>

# Get a secret value
local-secrets-mcp get <key>

# List all secrets
local-secrets-mcp list

# Delete a secret
local-secrets-mcp delete <key>

# Import from .env file
local-secrets-mcp import .env

# Export all secrets as .env format
local-secrets-mcp export > .env

# Show database path
local-secrets-mcp path

# Start MCP server (used by Claude Code)
local-secrets-mcp serve

Options

  • --category, -c - Set category when adding/updating secrets
  • --notes, -n - Add notes to a secret

MCP Tools

When connected to Claude Code, these tools are available:

ToolDescription
get_secretGet a specific secret value by key
list_secretsList all secret keys (optionally filter by category)
search_secretsSearch secrets by key name pattern
get_env_valueGet secret as environment variable format
add_secretAdd a new secret
update_secretUpdate an existing secret
delete_secretDelete a secret

Storage

Default location:

  • Database: ~/.local-secrets/secrets.db
  • Access log: ~/.local-secrets/access.log

Custom location: Set the SECRETS_PATH environment variable to use a different directory:

# CLI
SECRETS_PATH=~/.secrets npx local-secrets-mcp list

# Or export it
export SECRETS_PATH=~/.secrets
npx local-secrets-mcp list

Security Notes

  • Local storage: Secrets are stored in a SQLite database on your machine only
  • Conversation context: When Claude retrieves a secret, the value is included in the conversation and sent to Anthropic's servers (same as pasting a key into chat)
  • No encryption: The local database is not encrypted - it relies on filesystem permissions
  • Access logging: All access is logged to ~/.local-secrets/access.log
  • Development use: This is designed for local development, not production secrets management

To keep secrets fully local: Use the CLI directly (npx local-secrets-mcp get MY_KEY) - this prints to your terminal and never touches the network. Only use Claude to retrieve secrets you're comfortable having in the conversation.

Requirements

  • Node.js 22.0.0 or later (required - uses Node's native SQLite module)
  • macOS, Linux, or Windows

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for local-secrets-mcp from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/local-secrets-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related auth security MCP Servers

Alternative and complementary servers in the same category

View all in auth security →

A modular FastMCP server for interacting with Microsoft Graph API, supporting advanced queries for users, sign-in logs, MFA status, and privileged users.

Repository stats unavailable
Security & Secrets
Keycloak MCP Server
keycloak-mcp-server•sshaaf

A Model Context Protocol (MCP) server that provides programmatic access to Keycloak administration functionality.

Repository stats unavailable
Security & Secrets

An MCP server for LLM-driven penetration testing that wraps Kali tools and adds scope enforcement, engagement tracking, and structured output.

Repository stats unavailable
Security & Secrets