# memgit MCP server

> Provides version-controlled, searchable AI memory that syncs across machines and tools using a Git-inspired content-addressed store.

- Repository: https://github.com/code4161/memgit
- Page: https://hostedmcp.org/servers/code4161/memgit
- Transport: stdio
- Stars: 4
- License: MIT
- Latest version: 0.16.0

## Install

### Claude Code

```sh
claude mcp add memgit -- npx -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"
      ]
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

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

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.memgit]
command = "npx"
args = ["-y", "memgit-mcp"]
```

### Gemini CLI (`~/.gemini/settings.json`)

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

## FAQ

### How does memgit handle memory across different machines?

It syncs memory end-to-end encrypted across your laptop, desktop, and servers using the memgit cloud.

### Can I undo a mistake made by an AI agent in my memory?

Yes, you can use the rollback command to restore a previous state or use diff to see what changed.

### Does memgit work with tools other than Claude Code?

Yes, it is compatible with Cursor, Codex, Windsurf, Gemini CLI, and any MCP host.

### How do I seed memgit with my existing codebase?

You can use the onboard command to mine your repository for history, stack, and documentation to create an initial set of memories.

### Is my data safe if I stop paying for the cloud service?

Yes, the local engine and store are never gated, and a lapsed plan does not lock your data; it remains readable and exportable on your machine.
