Skip to content
MCP server

Robrain

Self-hosted decision memory that warns coding agents before they repeat a rejected idea

Runs locally

Robrain is a freemium MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.

Pricing
Freemium
Platforms
CLI, Self-hosted
Runs
Locally
Version
2.8.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add robrain --env PERCEPTION_API_KEY='<PERCEPTION_API_KEY>' -- npx -y robrain

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "robrain": {
      "command": "npx",
      "args": [
        "-y",
        "robrain"
      ],
      "env": {
        "PERCEPTION_API_KEY": "<PERCEPTION_API_KEY>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "robrain": {
      "command": "npx",
      "args": [
        "-y",
        "robrain"
      ],
      "env": {
        "PERCEPTION_API_KEY": "<PERCEPTION_API_KEY>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "robrain": {
      "command": "npx",
      "args": [
        "-y",
        "robrain"
      ],
      "env": {
        "PERCEPTION_API_KEY": "<PERCEPTION_API_KEY>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "robrain": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "robrain"
      ],
      "env": {
        "PERCEPTION_API_KEY": "<PERCEPTION_API_KEY>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add robrain --env PERCEPTION_API_KEY='<PERCEPTION_API_KEY>' -- npx -y robrain

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.robrain]
command = "npx"
args = ["-y", "robrain"]
env = { PERCEPTION_API_KEY = "<PERCEPTION_API_KEY>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "robrain": {
      "command": "npx",
      "args": [
        "-y",
        "robrain"
      ],
      "env": {
        "PERCEPTION_API_KEY": "<PERCEPTION_API_KEY>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "robrain": {
          "command": "npx",
          "args": [
            "-y",
            "robrain"
          ],
          "env": {
            "PERCEPTION_API_KEY": "<PERCEPTION_API_KEY>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e PERCEPTION_API_KEY='<PERCEPTION_API_KEY>' robrain npx -- -y robrain

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "robrain": {
          "command": "npx",
          "args": [
            "-y",
            "robrain"
          ],
          "env": {
            "PERCEPTION_API_KEY": "<PERCEPTION_API_KEY>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "robrain": {
          "command": "npx",
          "args": [
            "-y",
            "robrain"
          ],
          "env": {
            "PERCEPTION_API_KEY": "<PERCEPTION_API_KEY>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "robrain": {
          "command": "npx",
          "args": [
            "-y",
            "robrain"
          ],
          "env": {
            "PERCEPTION_API_KEY": "<PERCEPTION_API_KEY>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "robrain": {
          "command": "npx",
          "args": [
            "-y",
            "robrain"
          ],
          "env": {
            "PERCEPTION_API_KEY": "<PERCEPTION_API_KEY>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "robrain": {
          "command": "npx",
          "args": [
            "-y",
            "robrain"
          ],
          "env": {
            "PERCEPTION_API_KEY": "<PERCEPTION_API_KEY>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "robrain": {
          "command": "npx",
          "args": [
            "-y",
            "robrain"
          ],
          "env": {
            "PERCEPTION_API_KEY": "<PERCEPTION_API_KEY>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "robrain": {
          "command": "npx",
          "args": [
            "-y",
            "robrain"
          ],
          "env": {
            "PERCEPTION_API_KEY": "<PERCEPTION_API_KEY>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • PERCEPTION_API_URLPerception API URL. Optional — read from ~/.robrain/config.json after `npx robrain up`.
  • PERCEPTION_API_KEYPerception API key. Optional — read from ~/.robrain/config.json after `npx robrain up`.

About Robrain

RoBrain records the decisions a team and its agents make, along with what was rejected and why, who decided and when. Before an agent acts again, it surfaces the earlier rejection. Capture is passive: session turns are sensed, and a Perception service extracts each decision into Postgres, where rows can carry a structured rejected[] field.

The README says its VetoBench run found frontier models re-proposed a rejected approach in 3 to 9 of 9 tasks without the warning, versus 0 of 159 with veto warnings in context across six models. Those are the project's own figures. A batch Synthesis step reads the whole corpus to flag contradictions and stance drift.

The free self-hosted path runs npx robrain@latest up and needs Anthropic and OpenAI keys by default, with other provider setups documented. A managed cloud is included with paid Rory Plans plans and adds team sharing and rule pushing to production agents built on Vercel's eve. It wires into Claude Code, Cursor, GitHub Copilot, Codex CLI and Hermes.

What it does

Structured vetoes
Rejected approaches are stored with rationale, author, date and source turn.
Passive capture
Decisions are extracted from sessions without manual tagging.
Corpus synthesis
Batch scans find contradictions and drift across sessions.
Self-hosted Postgres
Everything runs on your own database in the free option.
Claude Code plugin
Hooks add capture and pre-task warnings.
Production agent governance
On cloud, admins push reviewed rules to agents built on eve.

Good for

  • Stop an agent re-suggesting a dependency you removed for a CVE
  • Hand a design decision from one teammate's editor to another's
  • Audit who decided what and from which turn
  • Push approved rules to production agents

Pricing

Freemium

Self-hosted is free and open source; managed cloud comes with paid Rory Plans plans (prices not shown)

Robrain FAQ

What do I need to self-host?

Docker for the stack plus Anthropic and OpenAI keys by default; other providers are supported.

Which editors work?

Claude Code, Cursor, GitHub Copilot in VS Code, Codex CLI and Hermes.

Is the cloud option free?

It is included with paid Rory Plans plans; self-hosting is free.

Does data leave my machine?

The README says self-hosted RoBrain keeps everything on your machine.

How do I add Robrain to Claude Code?

Run this command in your terminal: claude mcp add robrain --env PERCEPTION_API_KEY='<PERCEPTION_API_KEY>' -- npx -y robrain

What are the best alternatives to Robrain?

The closest alternatives to Robrain are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers