keyfold
Provides tools to write and import .env files, enabling AI agents to manage environment variables for projects without exposing secret values.
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., "@keyfoldrun npm test with the keys for the web project"
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.
Keyfold core
The open-source parts of Keyfold, an offline-first vault for developers: API keys organised by project and environment, plus passwords, in one encrypted file. No account, no cloud, no telemetry.
The Keyfold app for Mac is built on these crates (Windows is coming through the Microsoft Store). Get it at keyfold.app/download; signed builds are also on the Releases page.
What is here
Crate | What it does |
Argon2id key derivation, XChaCha20-Poly1305 envelope encryption, the tamper-evident vault format, rolling backups, the Recovery Kit, | |
The JSON-line protocol between the | |
The |
Related MCP server: keyvault
Use it with an AI agent (MCP)
keyfold mcp lets Claude Code, Cursor, Codex, Gemini CLI and other MCP clients use your API keys without the model seeing them. Its seven tools list project and key names, write a .env file you approve, run a command with the keys injected, store a key, create a project and import a .env file. None of them returns a secret value. Every request waits for your click in the Keyfold app, which shows the command or file the keys are for.
Install Keyfold for Mac. In the app, open Settings › General › Command line and MCP and click Install, which puts
keyfoldon yourPATH.Add the server to your client:
claude mcp add --scope user keyfold -- keyfold mcpCursor (.cursor/mcp.json): { "mcpServers": { "keyfold": { "command": "keyfold", "args": ["mcp"] } } }
A command you approve can still print a key, and the model reads what it prints; the MCP guide covers that and one-hour approvals. The server needs the Keyfold app running and unlocked on the same Mac. The Dockerfile builds it on Linux only so that MCP directories can read its tool list.
MCP Registry name: mcp-name: io.github.codewithkolin/keyfold
Docs
Vault format: every byte of the file, and how it is authenticated.
Threat model: what Keyfold protects against, and what it cannot.
MCP and CLI guide: connecting an AI agent without showing it your keys.
Build and test
cargo test --workspace
cargo clippy --workspace --all-targets -- -D warnings
cargo build --release -p keyfold-cli # the `keyfold` binaryRust stable, no other toolchain needed.
Security
Please report vulnerabilities privately; see SECURITY.md.
Licence
AGPL-3.0-only. See the LICENSE file in each crate. The Keyfold desktop app around these crates is proprietary.
This server cannot be deployed
Maintenance
Related MCP Connectors
Project management MCP for AI agents with safe task reads and writes.
- MaShop MCPOAuthapp.mashop
Build, deploy and manage MaShop e-commerce projects from Claude, Cursor or any MCP client.
Share one project context across ChatGPT, Claude, Telegram and any MCP client.
Connect MCP clients to 2,000+ AI models without managing provider API keys.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables secure API key management for development projects by storing keys in OS keychains, auto-generating .env files and SDK client code, and providing AI-assisted key management through Claude Code integration.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to securely manage API keys and secrets via the MCP protocol, with encrypted storage at rest and a simple CLI and Python SDK.1MIT
- AlicenseNot gradedqualityDmaintenanceEncrypts and stores API keys and environment variables locally, providing them to AI agents via MCP with tools for listing, describing, getting secrets, and running commands with secret values redacted.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI coding agents to securely store and retrieve encrypted API keys via MCP tools.3 npmMIT