# brainbox MCP server

> Provides procedural memory for AI coding agents by learning file patterns, tool chains, and error-fix procedures using Hebbian learning.

- Repository: https://github.com/thebasedcapital/brainbox
- Page: https://hostedmcp.org/servers/thebasedcapital/brainbox
- Transport: stdio
- Stars: 14
- License: MIT
- Latest version: 0.1.6

## Install

### Claude Code

```sh
claude mcp add brainbox -- npx -y brainbox-hebbian
```

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

```json
{
  "mcpServers": {
    "brainbox": {
      "command": "npx",
      "args": [
        "-y",
        "brainbox-hebbian"
      ]
    }
  }
}
```

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

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

### VS Code CLI

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

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

```json
{
  "mcpServers": {
    "brainbox": {
      "command": "npx",
      "args": [
        "-y",
        "brainbox-hebbian"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add brainbox -- npx -y brainbox-hebbian
```

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

```toml
[mcp_servers.brainbox]
command = "npx"
args = ["-y", "brainbox-hebbian"]
```

### Gemini CLI

```sh
gemini mcp add -s user brainbox npx -- -y brainbox-hebbian
```

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

```json
{
  "mcpServers": {
    "brainbox": {
      "command": "npx",
      "args": [
        "-y",
        "brainbox-hebbian"
      ]
    }
  }
}
```

## FAQ

### Is BrainBox a vector database or RAG?

No, it is not a vector database or RAG; it uses Hebbian learning on a local SQLite graph.

### Does my data leave my machine?

No, everything stays local with zero API cost and no GPU required.

### How does it handle errors?

It creates an error-to-fix immune system by linking failed commands to the edits that successfully fixed them.

### What tools are included in the MCP server?

The server includes 8 tools: record, recall, explain, error, resolve, predict_next, stats, and decay.
