Skip to content
MCP server

memgit

Versioned shared memory for Claude Code, Cursor and Codex, with diff and rollback

Runs locallyStatus and history
Pricing
Freemium
Platforms
CLI, macOS, Linux
Runs
Locally
Version
0.16.0
Listing updated
3 days ago

About memgit

memgit is a freemium MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.

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.

Install

Run in a terminal

claude mcp add memgit -- npx -y memgit-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "memgit": {
      "command": "npx",
      "args": [
        "-y",
        "memgit-mcp"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "memgit": {
      "command": "npx",
      "args": [
        "-y",
        "memgit-mcp"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

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

Add to ~/.codeium/windsurf/mcp_config.json

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

Add to your client's MCP settings (most use this shape)

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

What it does

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

Pricing

Freemium, from $12 a month

Free MIT CLI; cloud sync $12/mo or $99/yr after a 14-day trial

Prices change. Check memgit.dev before you buy.

memgit 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 to memgit

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools