# Brain Memory MCP server

> Provides persistent, scored memory for AI agents by allowing Claude and other clients to read, write, and manage a shared brain.

- Repository: https://github.com/omelas-tech/brain
- Page: https://hostedmcp.org/servers/omelas-tech/brain
- Transport: remote
- Stars: 3
- License: MIT
- Latest version: 0.5.1

## Install

### Claude Code

```sh
claude mcp add --transport http brain https://mcp.brainmemory.ai/mcp
```

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

```json
{
  "mcpServers": {
    "brain": {
      "url": "https://mcp.brainmemory.ai/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "brain": {
      "type": "http",
      "url": "https://mcp.brainmemory.ai/mcp"
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"brain","type":"http","url":"https://mcp.brainmemory.ai/mcp"}'
```

### Codex

```sh
codex mcp add brain --url https://mcp.brainmemory.ai/mcp
```

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

```toml
[mcp_servers.brain]
url = "https://mcp.brainmemory.ai/mcp"
```

### Gemini CLI

```sh
gemini mcp add -s user --transport http brain https://mcp.brainmemory.ai/mcp
```

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

```json
{
  "mcpServers": {
    "brain": {
      "url": "https://mcp.brainmemory.ai/mcp",
      "type": "http"
    }
  }
}
```

## Tools (6)

- `brain_recall`
- `brain_status`
- `brain_use`
- `brain_memorize`
- `brain_forget`
- `brain_verify`

## FAQ

### How does the memory stay consistent with my local CLI?

The connector uses the same engine bridge as the CLI, ensuring scoring is byte-for-byte identical with zero reimplementation.

### Does the server require a login every time?

No, sessions renew silently for approximately one month using rotating refresh tokens.
