Keyfold
Local vault MCP server that lets agents use API keys without ever seeing them
- Pricing
- Paid
- Platforms
- macOS, CLI
- Runs
- Locally
- Version
- 1.0.1
- Listing updated
- 2 days ago
About Keyfold
Keyfold is a paid MCP server for security. It runs locally on your machine and is started by your AI client.
Keyfold keeps keys in one encrypted file on your Mac, and its MCP server is built around a single rule: no tool returns a secret value. Instead the agent asks Keyfold to act on its behalf, and every request waits for your click in the desktop app, which shows the command or file the keys are meant for.
The README lists seven tools. They list project and key names, write a .env file you approve, run a command with keys injected, store a key, create a project and import a .env file. The server needs the Keyfold app running and unlocked on the same Mac, and it is started with keyfold mcp from Claude Code, Cursor, Codex, Gemini CLI or another MCP client.
There is a caveat the README states openly: a command you approve can still print a key, and the model reads that output. The MCP guide covers this and one-hour approvals. The MCP server, encryption and vault format are AGPL open source, while the desktop app around them is proprietary.
Install
Run in a terminal
claude mcp add keyfold -- npx -y https://github.com/codewithkolin/keyfold/releases/download/v1.0.1/keyfold-1.0.1.mcpbAdd to claude_desktop_config.json
{
"mcpServers": {
"keyfold": {
"command": "npx",
"args": [
"-y",
"https://github.com/codewithkolin/keyfold/releases/download/v1.0.1/keyfold-1.0.1.mcpb"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"keyfold": {
"command": "npx",
"args": [
"-y",
"https://github.com/codewithkolin/keyfold/releases/download/v1.0.1/keyfold-1.0.1.mcpb"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"keyfold": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"https://github.com/codewithkolin/keyfold/releases/download/v1.0.1/keyfold-1.0.1.mcpb"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"keyfold": {
"command": "npx",
"args": [
"-y",
"https://github.com/codewithkolin/keyfold/releases/download/v1.0.1/keyfold-1.0.1.mcpb"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"keyfold": {
"command": "npx",
"args": [
"-y",
"https://github.com/codewithkolin/keyfold/releases/download/v1.0.1/keyfold-1.0.1.mcpb"
]
}
}
}Tools this server provides (1)
Taken from the project documentation; the running server may differ.
- list_projects
- Lists project and key names without returning secret values.
What it does
- No secret values returned
- The README says none of the seven tools hands a secret value back to the model.
- Per-request approval
- Each request waits for a click in the Keyfold app, which shows the command or file involved.
- Command injection of keys
- Runs an approved command with the needed keys injected into its environment.
- Writes .env files
- Creates a .env file you approve rather than exposing the keys in chat.
- Encrypted single-file vault
- Keys live in one file sealed with XChaCha20-Poly1305 under an Argon2id-derived key.
- Project and environment layout
- Keys are organised by project and environment, with notes, tags and expiry dates.
Good for
- Let Cursor or Claude Code run a deploy command with production keys without pasting them into chat
- Generate a .env file for a project from a local vault after approving it
- Import an existing .env file into a vault from inside an agent session
- Keep API keys out of prompts, notes and old chat history
Pricing
Paid
The site describes a one-time price from $5 to $29; the MCP server code is AGPL open source
Prices change. Check keyfold.app before you buy.
Keyfold FAQ
Does the model ever see my API keys?
Per the README, no tool returns a secret value. A command you approve can still print a key, though, and the model reads command output.
What do I need to run it?
The Keyfold app for Mac must be running and unlocked on the same machine. You then add `keyfold mcp` to your MCP client.
Which clients work with it?
The README names Claude Code, Cursor, Codex and Gemini CLI, plus other MCP clients.
Is it open source?
The encryption, vault format, licence check, 2FA codes and MCP server are AGPL-3.0; the desktop app is proprietary.
Is Keyfold free?
No. Keyfold is a paid product.
How do I add Keyfold to Claude Code?
Run this command in your terminal: claude mcp add keyfold -- npx -y https://github.com/codewithkolin/keyfold/releases/download/v1.0.1/keyfold-1.0.1.mcpb
What are the best alternatives to Keyfold?
The closest alternatives to Keyfold are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to Keyfold

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools