# Levirge Brain MCP server

> Provides persistent shared memory for AI agents to store knowledge, skills, todos, and facilitate agent-to-agent handoffs.

- Repository: https://github.com/levirge/brain
- Page: https://hostedmcp.org/servers/levirge/brain
- Transport: remote
- Stars: 0
- Latest version: 26.10.17

## Install

### Claude Code

```sh
claude mcp add --transport http brain https://brain.levirge.com/mcp
```

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

```json
{
  "mcpServers": {
    "brain": {
      "url": "https://brain.levirge.com/mcp"
    }
  }
}
```

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

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

### VS Code CLI

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

### Codex

```sh
codex mcp add brain --url https://brain.levirge.com/mcp
```

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

```toml
[mcp_servers.brain]
url = "https://brain.levirge.com/mcp"
```

### Gemini CLI

```sh
gemini mcp add -s user --transport http brain https://brain.levirge.com/mcp
```

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

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

## FAQ

### How does the memory retrieval work?

It uses search-first memory with semantic search and reranking to ensure agents cite sources instead of hallucinating.

### What is the authentication method?

The server uses OAuth sign-in upon the first connection.
