# Keepfold

> Keepfold is an open-source MCP server for files and documents. Local, Markdown-based memory that your AI apps read and write, kept on your own PC. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** Windows, macOS, Linux, CLI, VS Code, Self-hosted
- **Repository:** https://github.com/alenissacsam-2/keepfold
- **MCP Registry name:** io.github.alenissacsam-2/keepfold
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents), [agent memory](https://ai-powered.com/categories/agent-memory)
- **Listing updated:** 2026-11-27

## About

Keepfold stores what you tell AI apps and what you work on as linked plain-text notes in a folder you choose on your own computer. Apps connected through MCP can pull that context into a new chat, so you do not have to restate projects, preferences and past decisions each time.

Notes are saved automatically from your AI chats, and the folder opens as a standard Obsidian vault. Search combines keyword matching with a small local embedding model, and an optional local chat model can answer questions about your notes with sources. Coding tools such as Claude Code, Cursor and Codex receive your pinned lines and preferences when a chat starts.

It suits people who use several AI assistants and want their context kept locally in readable files. The project is free and open source under the MIT licence, but it is still in beta and currently has a Windows installer; macOS and Linux are set up through PyPI.

## Features

- **Shared memory across apps:** Connected AI apps read the same notes through MCP, so context carries from one tool to another.
- **Plain Markdown vault:** Notes are ordinary Markdown files with YAML front matter that any editor or Obsidian can open.
- **Automatic saving from chats:** Claude Code, Desktop and CLI chats are summarised into pages without a model, and decisions are queued for review.
- **Local search by meaning:** Keyword and embedding search run on the computer, with a one-time model download of about 150 MB.
- **Private notes and browsing controls:** Pages marked private are kept out of what AI apps receive, and browsing categories can be restricted per type.
- **Optional local chat:** A chat window answers questions about your notes with numbered sources when a local model such as Ollama is running.

## Good for

- Give a coding agent your project stack and coding preferences at the start of each chat
- Keep decisions from git commits and chats searchable across sessions
- Revise a course with a daily plan drawn from your own notes and mock tests
- Search your saved reading, papers and AI conversations by meaning
- Keep personal notes and history on your own machine instead of a cloud memory service

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add keepfold --env KEEPFOLD_VAULT='<KEEPFOLD_VAULT>' -- uvx keepfold
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "keepfold": {
      "command": "uvx",
      "args": [
        "keepfold"
      ],
      "env": {
        "KEEPFOLD_VAULT": "<KEEPFOLD_VAULT>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "keepfold": {
      "command": "uvx",
      "args": [
        "keepfold"
      ],
      "env": {
        "KEEPFOLD_VAULT": "<KEEPFOLD_VAULT>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "keepfold": {
      "command": "uvx",
      "args": [
        "keepfold"
      ],
      "env": {
        "KEEPFOLD_VAULT": "<KEEPFOLD_VAULT>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "keepfold": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "keepfold"
      ],
      "env": {
        "KEEPFOLD_VAULT": "<KEEPFOLD_VAULT>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add keepfold --env KEEPFOLD_VAULT='<KEEPFOLD_VAULT>' -- uvx keepfold
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.keepfold]
command = "uvx"
args = ["keepfold"]
env = { KEEPFOLD_VAULT = "<KEEPFOLD_VAULT>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "keepfold": {
      "command": "uvx",
      "args": [
        "keepfold"
      ],
      "env": {
        "KEEPFOLD_VAULT": "<KEEPFOLD_VAULT>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e KEEPFOLD_VAULT='<KEEPFOLD_VAULT>' keepfold uvx -- keepfold

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "keepfold": {
      "command": "uvx",
      "args": [
        "keepfold"
      ],
      "env": {
        "KEEPFOLD_VAULT": "<KEEPFOLD_VAULT>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "keepfold": {
      "command": "uvx",
      "args": [
        "keepfold"
      ],
      "env": {
        "KEEPFOLD_VAULT": "<KEEPFOLD_VAULT>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "keepfold": {
      "command": "uvx",
      "args": [
        "keepfold"
      ],
      "env": {
        "KEEPFOLD_VAULT": "<KEEPFOLD_VAULT>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "keepfold": {
      "command": "uvx",
      "args": [
        "keepfold"
      ],
      "env": {
        "KEEPFOLD_VAULT": "<KEEPFOLD_VAULT>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "keepfold": {
      "command": "uvx",
      "args": [
        "keepfold"
      ],
      "env": {
        "KEEPFOLD_VAULT": "<KEEPFOLD_VAULT>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "keepfold": {
      "command": "uvx",
      "args": [
        "keepfold"
      ],
      "env": {
        "KEEPFOLD_VAULT": "<KEEPFOLD_VAULT>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "keepfold": {
      "command": "uvx",
      "args": [
        "keepfold"
      ],
      "env": {
        "KEEPFOLD_VAULT": "<KEEPFOLD_VAULT>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "keepfold": {
      "command": "uvx",
      "args": [
        "keepfold"
      ],
      "env": {
        "KEEPFOLD_VAULT": "<KEEPFOLD_VAULT>"
      }
    }
  }
}
```

## FAQ

### Is Keepfold free?

Yes. It is free and open source under the MIT licence. The optional local model is free, and any cloud model is billed by the provider you choose.

### Does my data leave my computer?

No account or telemetry is used. Your notes stay in your chosen folder; an AI app you connect sees only what Keepfold returns to it, and a cloud model is used only if you turn one on.

### Which AI apps can connect?

Claude Desktop, Claude Code, Codex CLI, Gemini CLI, Cursor, VS Code (Copilot), Windsurf, Antigravity and LM Studio connect in one click. Zed, Cline, GitHub Copilot CLI and JetBrains Junie can also be connected.

### Which operating systems are supported?

The installer is for Windows 10 and 11. On macOS and Linux it is installed from PyPI with uv.

### How do I add Keepfold to Claude Code?

Run this command in your terminal: claude mcp add keepfold --env KEEPFOLD_VAULT='<KEEPFOLD_VAULT>' -- uvx keepfold

### What are the best alternatives to Keepfold?

The closest alternatives to Keepfold are Callosium, Memorinth, Kerno and Basic Memory.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Callosium](https://ai-powered.com/mcp/callosium): Callosium is an open-source MCP server for files and documents.
- [Memorinth](https://ai-powered.com/mcp/memorinth): Memorinth is a free MCP server for knowledge and memory.
- [Kerno](https://ai-powered.com/mcp/kerno): Kerno is a freemium MCP server for agent memory.
- [Basic Memory](https://ai-powered.com/mcp/basic-memory): Basic Memory is a freemium MCP server for files and documents.

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