# ModelBrain MCP server

> Provides a private memory layer for AI assistants that stores and recalls information locally on your computer.

- Repository: https://github.com/ModelBrain/modelbrain-mcp
- Page: https://hostedmcp.org/servers/modelbrain/modelbrain-mcp
- Transport: stdio, remote
- Stars: 0
- License: MIT
- Latest version: 0.1.5

## Install

### Claude Code

```sh
claude mcp add modelbrain-mcp -- npx -y modelbrain-mcp
```

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

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

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

```json
{
  "servers": {
    "modelbrain-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "modelbrain-mcp"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"modelbrain-mcp","type":"stdio","command":"npx","args":["-y","modelbrain-mcp"]}'
```

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

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

### Codex

```sh
codex mcp add modelbrain-mcp -- npx -y modelbrain-mcp
```

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

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

### Gemini CLI

```sh
gemini mcp add -s user modelbrain-mcp npx -- -y modelbrain-mcp
```

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

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

## FAQ

### Do I need to install anything extra if I use Claude Desktop or Cursor?

No, ModelBrain's own app registers itself directly with Claude Desktop, Claude Code, and Cursor.

### What happens if I run the server without having ModelBrain installed?

The launcher will start and show the tools, but every tool call will return a message stating that ModelBrain is not installed.

### How can I secure the connection with client tokens?

You can mint a token using the modelbrain_admin tool and add it to your client's environment block as MODELBRAIN_CLIENT_TOKEN.
