# memgit

> memgit is a freemium MCP server for knowledge and memory. Versioned shared memory for Claude Code, Cursor and Codex, with diff and rollback. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $12 a month
- **Platforms:** CLI, macOS, Linux, Windows, vscode, self-hosted
- **Website:** https://memgit.dev
- **Repository:** https://github.com/code4161/memgit
- **MCP Registry name:** dev.memgit/memgit
- **Categories:** knowledge and memory, developer tools
- **Listing updated:** 2026-11-14

## About

Coding agents that keep their own memory tend to lose it when you switch machines, and to overwrite it without telling you. memgit stores each memory as a versioned object and each session as a checkpoint, so a changed rule shows up in a diff and a bad edit is undone by a rollback that itself becomes a new checkpoint.

It starts from what Claude Code already keeps, importing it on first run, and then serves the same store to Cursor, Codex, Windsurf, Gemini CLI or any MCP host. Only memories relevant to the task are loaded, and a session-start digest shows what the agent will see.

The local engine is MIT licensed, needs no account and runs offline. An optional paid cloud sync copies the store between machines and teammates with end-to-end encryption, deriving keys from your passphrase so the server holds ciphertext only.

## Features

- **Versioned memories:** Every memory and session is a checkpoint, with log and diff to see what an agent changed.
- **One-command rollback:** memgit rollback restores an earlier state and records the undo as a new checkpoint.
- **Cross-tool store:** Claude Code, Cursor, Codex, Windsurf and Gemini CLI read and write the same memory.
- **Relevant recall:** Only memories that match the task are loaded, plus a digest at session start.
- **Encrypted cloud sync:** Optional sync between machines and teammates, with keys derived from your passphrase.
- **Integrity check:** memgit fsck verifies every stored object by SHA-256.

## Good for

- Keep the same project rules across a laptop, a desktop and a server
- Catch and undo an agent that rewrote a team convention
- Share agent conventions with teammates
- Give a headless CI agent the same memory as your editor
- Measure what memory costs in context with memgit stats

## Install

### Claude Code (Terminal)

```sh
claude mcp add memgit -- npx -y memgit-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "memgit": {
      "command": "npx",
      "args": [
        "-y",
        "memgit-mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "memgit": {
      "command": "npx",
      "args": [
        "-y",
        "memgit-mcp"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "memgit": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "memgit-mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "memgit": {
      "command": "npx",
      "args": [
        "-y",
        "memgit-mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "memgit": {
      "command": "npx",
      "args": [
        "-y",
        "memgit-mcp"
      ]
    }
  }
}
```

## FAQ

### Does it work offline?

Yes. The CLI, store and MCP server run locally with no account, and with no cloud login or licence key memgit talks to nothing.

### What does cloud sync cost?

Sync is free for 14 days, starting when a second machine connects, then $12 a month or $99 a year. The local engine stays free.

### What happens if the cloud plan lapses?

Your data stays on your machine, readable and exportable.

### How do I add it to an MCP host?

Use the npx command with the memgit-mcp package; it needs Python 3.11 or newer on the PATH.

### Is memgit free?

memgit has a free plan, with paid plans for more usage or features. Paid plans start at $12 a month.

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

Run this command in your terminal: claude mcp add memgit -- npx -y memgit-mcp

### What are the best alternatives to memgit?

The closest alternatives to memgit 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.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.

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