Cursor Integration

Set up Brain MCP with Cursor IDE for context-aware AI coding.

1. Add to Cursor MCP Config

Edit .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "brain": {
      "command": "mcporter",
      "args": ["serve", "brain"]
    }
  }
}

2. Verify Connection

Open Cursor and check that brain-mcp tools appear in the MCP panel. You should see 25 tools available.

3. Use It

Type “use brain” in any Cursor conversation to activate context. Examples:

“use brain — what decisions have I made about the auth system?”
“use brain — load my context for this project”
“use brain — what was I working on with embeddings last week?”

Tips

  • • Use tunnel_state at the start of each coding session
  • • Use switching_cost before jumping between projects
  • • Use semantic_search to find past decisions about similar problems