MCP
Rightbrain speaks the Model Context Protocol (MCP), the open standard for connecting AI applications to external tools. This page covers the outbound direction: exposing Rightbrain tasks as MCP tools that external clients discover and run.
Two directions, one protocol. This page is about exposing Rightbrain as an MCP server so tools like Claude and Cursor can call your work. For the other direction, where a Rightbrain agent connects out to an external MCP server as a client, see Connections.
What you get
When you expose a task over MCP, compatible clients can discover and run it as a native tool. Rightbrain runs the task with its configured model, prompt, and schema, then returns the structured result.
Expose a task over MCP
A task is served over MCP once it is flagged for agent exposure. Clients authenticate with a bearer credential that resolves to a user with access to the project; an API key is the simplest option for machine clients.
Flag the task for exposure
Set the task’s exposed_to_agents flag. The MCP gateway advertises every exposed task in the project as a callable tool.
The MCP gateway
Under the hood, exposed tasks are served through Rightbrain’s MCP gateway over Streamable HTTP. Clients that let you add a server by URL connect to the project-scoped gateway endpoint:
Send the API key or OAuth access token as a bearer credential:
The gateway advertises each enabled task as a tool. Tool calls run the task and stream results back to the client.