MCP Setup
Connect Claude, Claude Code, Cursor, or any other MCP client to /api/mcp and make Motion Graphics videos from a chat.

Supported auth modes

  • Browser sign-in (OAuth) for clients that can open a login window, like Claude. No key involved.
  • An API key in the x-api-key header for Claude Code, Cursor, and your own agents.
  • Create keys under Connect an AI assistant in the dashboard.
  • Don't paste MCP API keys into shared or public chats. Rotate keys immediately if exposed.

Use the www endpoint directly. Some MCP/HTTP clients do not preserve custom headers (like x-api-key) across redirects to a different host, which can cause 401s. Always use https://www.brainrotshorts.com/api/mcp.

Available tools

/api/mcp has 10 Motion Graphics tools and nothing else, so your assistant always picks the right one. When it connects, the server also tells it the steps to follow, from script to finished video.

Still making character or gameplay-background shorts from an assistant? Use https://www.brainrotshorts.com/api/mcp/all instead. It has the Motion Graphics tools plus the older short-video tools, with the same sign-in and the same keys.

Motion Graphics tools

  • motion_graphics_option_list
  • motion_graphics_project_list
  • motion_graphics_project_create
  • motion_graphics_project_get
  • motion_graphics_project_update
  • motion_graphics_narration_generate
  • motion_graphics_estimate
  • motion_graphics_generate
  • motion_graphics_rate
  • motion_graphics_project_delete

Older short-video tools (only at /api/mcp/all)

  • project_get
  • project_list
  • character_list
  • background_list
  • caption_style_list
  • render_status
  • render_latest_url
  • project_create
  • project_update
  • project_scene_update
  • script_ideate
  • script_generate
  • project_apply_script
  • render_start
  • project_delete

Direct MCP client example

If you self-host on another domain, replace https://www.brainrotshorts.com with your own app origin.

{
  "mcpServers": {
    "brainrotshorts": {
      "url": "https://www.brainrotshorts.com/api/mcp",
      "headers": {
        "x-api-key": "brs_your_mcp_api_key"
      }
    }
  }
}

Claude Code

One command adds the server to Claude Code with your key in the header:

claude mcp add --transport http brainrotshorts https://www.brainrotshorts.com/api/mcp \
  --header "x-api-key: brs_your_mcp_api_key"

Cursor

Paste the direct client example above into ~/.cursor/mcp.json (every project) or .cursor/mcp.json (one project). Cursor lists the server under Settings → MCP with a green dot once it connects.

Approval behavior

motion_graphics_generate needs approved=true and the buildSnapshot object returned by motion_graphics_estimate, passed back verbatim. It is the video and price the user approved, sealed and valid for an hour; any change to the project since the quote, an edited snapshot, or the copy from motion_graphics_project_get is refused rather than built, and the server never charges more than the quote. Builds follow the studio's rules unchanged: one build at a time per account, the same plan gates, and the included videos on Pro. A build usually takes 30 to 90 minutes on High and 1 to 2½ hours on Max, so check for the result every few minutes.

On /api/mcp/all, render_start follows the same rule: it does not queue anything unless approved=true is passed.

Troubleshooting

401 after redirect / origin mismatch

  • Cause: Calling the non-www endpoint (https://brainrotshorts.com/api/mcp) triggers a redirect to the www host. Some clients drop the x-api-key header on cross-host redirects.
  • Fix: Use https://www.brainrotshorts.com/api/mcp directly (no redirect). If your client has a setting like “preserve headers on redirect”, enable it.