# MemoryGuard MCP server

> Provides a local-first governed memory backend that organizes, deduplicates, and secures shared context for coding agents.

- Repository: https://github.com/MerakOsiris/memoryguard
- Page: https://hostedmcp.org/servers/merakosiris/memoryguard
- Transport: stdio
- Stars: 4
- License: MIT
- Latest version: 0.7.15

## Install

### Claude Code

```sh
claude mcp add memoryguard -- uvx agent-memguard
```

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

```json
{
  "mcpServers": {
    "memoryguard": {
      "command": "uvx",
      "args": [
        "agent-memguard"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "memoryguard": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "agent-memguard"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"memoryguard","type":"stdio","command":"uvx","args":["agent-memguard"]}'
```

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

```json
{
  "mcpServers": {
    "memoryguard": {
      "command": "uvx",
      "args": [
        "agent-memguard"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add memoryguard -- uvx agent-memguard
```

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

```toml
[mcp_servers.memoryguard]
command = "uvx"
args = ["agent-memguard"]
```

### Gemini CLI

```sh
gemini mcp add -s user memoryguard uvx -- agent-memguard
```

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

```json
{
  "mcpServers": {
    "memoryguard": {
      "command": "uvx",
      "args": [
        "agent-memguard"
      ]
    }
  }
}
```

## FAQ

### Does MemoryGuard require an account or remote server?

No, it is a local-only solution with no remote server or account required.

### How does MemoryGuard handle sensitive information?

It can quarantine sensitive-looking content from active memory to prevent leaks.

### Can I use MemoryGuard with Cursor?

Yes, it supports Cursor and includes specific protection hooks for it.

### What happens if a memory write is incorrect?

The system preserves evidence and supersede chains so that changes and the reasons behind them are reversible.
