Setup

Cursor

Add it to Cursor.

Cursor talks to B.R.A.I.N. through a small local program called an MCP server. You install the client once, paste a short config, and restart Cursor. You never put your key in the chat.

Before you start

Install the B.R.A.I.N. client first, so the brain-mcp command exists, and so your key is saved privately.

In a terminal, brain-mcp --help should print a short help message. If it does not, finish the Mac or Windows guide first, including the PATH step.

1. Open your project in Cursor

Open the project folder you want to use with B.R.A.I.N.

2. Create or open the Cursor MCP file

In that project, create a folder named .cursor if it is not there, then a file named mcp.json inside it. The full name is .cursor/mcp.json. You can also add a server from Cursor's MCP settings; the file below is the copy-paste path.

3. Paste this config and save

Paste the block below into .cursor/mcp.json. If the file already has other servers, add the "brain" entry next to them, and keep the commas valid in JSON. Save the file, then restart Cursor.

Paste into .cursor/mcp.json
{
  "mcpServers": {
    "brain": { "command": "brain-mcp" }
  }
}

If Cursor cannot find brain-mcp, use the Python form instead. On a Mac, set "command" to python3 and "args" to ["/Users/YOU/.local/bin/brain-mcp"], with your home folder in place of YOU. On Windows, use python and ["C:\\Users\\YOU\\AppData\\Local\\brain-hosted\\brain-mcp.py"].

4. Check that it works

This is the quick test. Use any harmless fact you will recognize, or use this one.

This chat

Ask: Remember that the staging deploy runs on Fridays. Let it save that to B.R.A.I.N.

A brand new chat

Open a new chat, with no earlier messages. Ask: When does the staging deploy run? It should say Fridays.

If the new chat does not know, restart the app and use the fixes below. Do not paste your key into the chat.

If something goes wrong

The tools do not appear

Confirm brain-mcp --help works in a terminal. Restart Cursor. If the command is not on PATH, switch to the Python form above.

It cannot connect

Run brain selftest in a terminal. If that fails, your key may be missing or revoked. Get a new key from the dashboard and run the installer again. Do not paste the key into Cursor's chat.

The new chat does not remember

In the first chat, confirm the fact was actually saved. Try asking it to "save this to B.R.A.I.N." then retry the new chat.

Other ways to install

All paths · AI bots, including Grok Bot · Mac · Windows · Claude Code · Cursor · Claude Desktop · Gemini CLI · Direct API · Developers

Keep your key private

Never paste an API key into a chat, a ticket, or a note. Each bot has its own key, and you can pause or revoke it in the dashboard. Questions? Contact us.