# agent-memory MCP server

> Provides git-native, Markdown-based project memory for AI coding agents with human-in-the-loop review and secret scanning.

- Repository: https://github.com/xChuCx/agent-memory
- Page: https://hostedmcp.org/servers/xchucx/agent-memory
- Transport: stdio
- Stars: 15
- License: Apache-2.0
- Latest version: 0.6.1

## Install

### Claude Code

```sh
claude mcp add agent-memory -- npx -y @xchucx/agent-memory
```

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

```json
{
  "mcpServers": {
    "agent-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@xchucx/agent-memory"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "agent-memory": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@xchucx/agent-memory"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"agent-memory","type":"stdio","command":"npx","args":["-y","@xchucx/agent-memory"]}'
```

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

```json
{
  "mcpServers": {
    "agent-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@xchucx/agent-memory"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add agent-memory -- npx -y @xchucx/agent-memory
```

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

```toml
[mcp_servers.agent-memory]
command = "npx"
args = ["-y", "@xchucx/agent-memory"]
```

### Gemini CLI

```sh
gemini mcp add -s user agent-memory npx -- -y @xchucx/agent-memory
```

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

```json
{
  "mcpServers": {
    "agent-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@xchucx/agent-memory"
      ]
    }
  }
}
```

## FAQ

### Does it use a cloud database or vector DB?

No, it runs fully locally without requiring a cloud service or a vector database.

### Can I review changes before they are applied?

Yes, changes are staged for human review, allowing you to inspect the exact diff before applying them.

### Does it protect my secrets?

Yes, the server includes a scan to ensure secrets and PII are removed before anything is written to memory.
