secrets-mcp
Enables reading, searching, and managing personal secrets and notes stored in a local Markdown file by parsing document sections and headings.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@secrets-mcp find my AWS access key"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
secrets-mcp
MCP server that gives Claude Code access to your personal secrets and notes stored in a simple Markdown file (~/.secrets.md).
Install
npx secrets-mcp setupThis will:
Create
~/.secrets.mdif it doesn't existCreate a desktop shortcut to open it
Register the MCP server globally in Claude Code
Usage
After setup, Claude Code can access your secrets from any project using these tools:
Tool | Description |
| List all section titles |
| Get a section by title |
| Search by keyword |
| Add or update a section |
| Delete a section |
Edit your secrets
Double-click "My Secrets.bat" on your desktop, or open ~/.secrets.md in any editor.
File format
Your ~/.secrets.md is standard Markdown with sections:
# My Secrets
## AWS
- Access Key: AKIA...
- Secret Key: wJalr...
- Region: us-east-1
## Database
- Host: db.example.com
- Password: hunter2Manual setup
If npx secrets-mcp setup doesn't work, register manually:
claude mcp add secrets-mcp -s user -- npx -y secrets-mcp serveHow it works
Reads
~/.secrets.md(or$SECRETS_VAULT_PATH) on each tool callParses Markdown headings into sections
No encryption, no dependencies beyond the MCP SDK — just a file
Portability
To move to a new machine:
Copy your
~/.secrets.mdfileRun
npx secrets-mcp setup
License
MIT
Available Tools
5 toolsdelete_sectionC
Delete a section from the secrets vault by title
Inputs: title (required).
get_sectionC
Get a specific section from the secrets vault by title
Inputs: title (required).
list_sectionsB
List all section titles in the secrets vault
Inputs: no named parameters.
search_secretsC
Search the secrets vault for sections matching a keyword
Inputs: keyword (required).
upsert_sectionC
Add or update a section in the secrets vault
Inputs: title (required), content (required), level.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: list_sections enumerates all sections, get_section retrieves a specific one, upsert_section creates or updates, delete_section removes, and search_secrets finds matches. No ambiguity exists between these operations, making tool selection straightforward for an agent.
All tools follow a consistent verb_noun pattern with snake_case, such as list_sections, get_section, upsert_section, delete_section, and search_secrets. This uniformity enhances readability and predictability across the tool set.
With 5 tools, the server is well-scoped for managing a secrets vault, covering core operations like listing, retrieving, creating/updating, deleting, and searching. This count is appropriate, avoiding bloat while ensuring essential functionality is present.
The tool set provides complete CRUD/lifecycle coverage for sections in a secrets vault: list, get, create/update (via upsert), delete, and search. No obvious gaps exist, allowing agents to perform all typical operations without dead ends.
Related MCP Connectors
Search, read, create and edit your Memol notes from Claude. Team note-taking with AI search.
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Search, read, and safely update Markdown notes in your connected Phasoric knowledge vaults.
Read and write your Fresh Jots notes from Claude, Cursor, and any MCP client.