# Keyfold

> Keyfold is a paid MCP server for security. Local vault MCP server that lets agents use API keys without ever seeing them. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** macOS, CLI
- **Website:** https://keyfold.app
- **Repository:** https://github.com/codewithkolin/keyfold
- **MCP Registry name:** io.github.codewithkolin/keyfold
- **Categories:** security, developer tools
- **Listing updated:** 2026-11-15

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

```sh
claude mcp add keyfold -- npx -y https://github.com/codewithkolin/keyfold/releases/download/v1.0.1/keyfold-1.0.1.mcpb
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "keyfold": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/codewithkolin/keyfold/releases/download/v1.0.1/keyfold-1.0.1.mcpb"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "keyfold": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/codewithkolin/keyfold/releases/download/v1.0.1/keyfold-1.0.1.mcpb"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "keyfold": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/codewithkolin/keyfold/releases/download/v1.0.1/keyfold-1.0.1.mcpb"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "keyfold": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/codewithkolin/keyfold/releases/download/v1.0.1/keyfold-1.0.1.mcpb"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "keyfold": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/codewithkolin/keyfold/releases/download/v1.0.1/keyfold-1.0.1.mcpb"
      ]
    }
  }
}
```

## Tools

- `list_projects`: Lists project and key names without returning secret values.

## 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

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/keyfold
