Connect any MCP client, no code.
One Brain’s MCP server gives an agent six tools on your team’s files, skills and memories. Point a client at it with a key, or let each person sign in.
Integrations · MCP
The server.
One Brain’s MCP server is at <ONEBRAIN_URL>/mcp, which is https://api.useonebrain.com/mcp on the hosted One Brain (Streamable HTTP). It has six tools:
| Tool | Use it to |
|---|---|
search | Find files, skills and memories by meaning and by words. |
read | Read a file or a skill folder by path, or a memory by id. |
list | See a folder's children, or the skills you may use. |
remember | Save something worth keeping as a memory, in a folder or private. |
write | Create or change a file or a skill's file. |
forget | Retire a memory that is wrong or out of date, with a reason and an optional correction. |
write and forget change what the team relies on. Where a client can ask a person before a tool runs, have it ask for these two. A client signs in one of two ways:
- An agent key (
ob_...) as a Bearer token. The client then acts as that agent and sees what the key may see. Make one in the One Brain app under Agents, or withonebrain admin keys create <agent>. - OAuth. A client that connects without a key gets
401withWWW-Authenticate: Bearer resource_metadata="<ONEBRAIN_URL>/.well-known/oauth-protected-resource/mcp". It registers itself, signs the person in to One Brain, and from then on sees what that person may see.
To check a key from a shell:
curl -s "$ONEBRAIN_URL/mcp" \
-H "Authorization: Bearer $ONEBRAIN_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | jq -r '.result.tools[].name'It prints the six tool names.
eve.
In an eve agent, One Brain is a connection: one file, with eve alone.
// agent/connections/onebrain.ts
import { defineMcpClientConnection } from "eve/connections";
export default defineMcpClientConnection({
url: `${process.env.ONEBRAIN_URL ?? "https://api.useonebrain.com"}/mcp`,
description: "The team's One Brain: files, skills and memories.",
auth: { getToken: async () => ({ token: process.env.ONEBRAIN_API_KEY ?? "" }) },
approval: ({ toolName }) =>
toolName.endsWith("__write") || toolName.endsWith("__forget") ? "user-approval" : "not-applicable",
});The model finds the tools with eve__search and calls them as onebrain__search, onebrain__read, onebrain__list, onebrain__remember, onebrain__write and onebrain__forget. write and forget wait for a person’s approval. For each person’s own sign-in instead of one key, use Vercel Connect. The eve page has the package, which adds recall, capture and skills.
AI SDK.
The AI SDK’s MCP client turns One Brain’s six tools into AI SDK tools:
npm install ai @ai-sdk/mcpimport { createMCPClient } from '@ai-sdk/mcp';
import { generateText, isStepCount } from 'ai';
const mcp = await createMCPClient({
transport: {
type: 'http',
url: `${process.env.ONEBRAIN_URL ?? 'https://api.useonebrain.com'}/mcp`,
headers: { Authorization: `Bearer ${process.env.ONEBRAIN_API_KEY}` },
},
});
try {
const { text } = await generateText({
model,
tools: await mcp.tools(),
stopWhen: isStepCount(5),
prompt: 'Search One Brain: when does Northwind renew?',
});
console.log(text);
} finally {
await mcp.close();
}model is any AI SDK language model. To sign a person in with OAuth instead of a key, pass the MCP client an authProvider in place of headers; it runs the OAuth flow against One Brain. The AI SDK page has the package, with approval for write and forget, recall and capture.
Cloudflare Agents SDK.
An agent built with Cloudflare’s Agents SDK adds the server in onStart, with the key from the Worker’s ONEBRAIN_API_KEY secret. Its tools join the agent’s, named tool_onebrain_<tool>.
import { Think } from '@cloudflare/think';
export class Assistant extends Think<Env> {
waitForMcpConnections = true;
override async onStart() {
await this.addMcpServer('onebrain', 'https://api.useonebrain.com/mcp', {
id: 'onebrain',
transport: {
type: 'streamable-http',
headers: { Authorization: `Bearer ${this.env.ONEBRAIN_API_KEY}` },
},
});
}
}The Agents SDK stores an MCP server’s headers, and so the key, in plain text in the Durable Object’s SQLite storage. Use a key limited to what the agent needs. The SDK keeps the headers it stored first, so to change the key, remove the server with removeMcpServer('onebrain') and add it again. Without the headers, the person signs in with OAuth instead: the call returns an authUrl to send them to, and no key is stored. Call it from a request, or pass callbackHost, so the callback URL is right. The Cloudflare page has the package, which makes write and forget wait for the user and adds skills, memory and capture.
Cloudflare MCP server portal.
A portal puts One Brain beside your other MCP servers, behind Cloudflare Access, at one URL. A portal connects to a server by OAuth, not with a fixed header, so each person signs in to One Brain with their own account.
- In the Cloudflare dashboard, go to Zero Trust > Access controls > MCP Portals, open the MCP servers tab and select Add MCP server (or Add a server).
- Enter
One Brainas the Server name andhttps://api.useonebrain.com/mcpas the HTTP URL. Keep Authentication type on OAuth with automatic credentials, not Manual credentials: Cloudflare registers itself with One Brain. - Add Access policies for who may see the server in a portal.
- Select Save and connect server, then Continue under Authentication required, and sign in to One Brain. That account is the server’s admin credential, which Cloudflare uses to list its tools. Wait until the server is Ready.
- Select Add server portal, name it, pick a domain, and add the One Brain server. Keep Require user auth on, so each user signs in to One Brain and sees only what they may see. With it off, every portal user gets the admin account’s access.
- (Optional) Under the portal’s servers, select the value in Tools authorized and turn off
writeandforgetif the portal’s users should only read and remember. - Add Access policies for who may use the portal, and select Save portal. MCP clients connect at
https://<subdomain>.<domain>/mcp.
Workers AI Playground.
- Open the Workers AI Playground and stay in its Model mode.
- Select Custom MCP, then Add server. Enter
https://api.useonebrain.com/mcpas the Server URL and select Add server. - The server shows Authenticating until you sign in to One Brain in the window that opens.
One Brain’s tools are then listed, and the model in the chat can use them.
v0.
v0 uses MCP tools while it generates. You need access to v0 (on a v0 team, a seat). Connect One Brain with an agent key:
- In v0, open the + menu in the prompt form and select MCPs.
- Add a custom MCP server, with
https://api.useonebrain.com/mcpas its URL. - For its authentication, pick Bearer Token and paste a One Brain agent key (
ob_...). v0 acts as that agent, so give the agent the folders v0 should read. - Start a chat, or continue one: v0 considers the connected MCP servers and their tools.
Whether a tool call asks first follows the chat’s Ask, Auto or Full permission mode. The code v0 writes does not call One Brain: the tools are for v0 itself. See v0’s MCP docs.
Vercel Connect.
With Vercel Connect, each person who talks to an eve agent signs in to One Brain the first time the agent needs it, and the agent sees what that person may see. No key is stored in the project. In the agent’s project:
- Install Connect and link the project to Vercel:
npm install @vercel/connect vercel link - In the Vercel dashboard, open Connect and select Create Connector. In the Add Connection dialog, choose OAuth and keep Managed selected, not Bring Your Own.
- Enter
https://api.useonebrain.com/mcpas the Server URL and continue. Vercel reads One Brain’s OAuth metadata and registers itself, so there is no client ID to enter. - Name the connector, and note its UID: the code passes it to
connect(). - Attach the connector to the project and pull its variables:
vercel connect attach <connector UID> --yes vercel env pull - Write the connection:
// agent/connections/onebrain.ts import { connect } from "@vercel/connect/eve"; import { defineMcpClientConnection } from "eve/connections"; export default defineMcpClientConnection({ url: "https://api.useonebrain.com/mcp", description: "The team's One Brain: files, skills and memories.", auth: connect("<connector UID>"), approval: ({ toolName }) => toolName.endsWith("__write") || toolName.endsWith("__forget") ? "user-approval" : "not-applicable", });
The agent’s channel must say who the person is: without a signed-in person, the first call fails with principal_required. To use the same person’s access for recall and capture too, see each person’s own access on the eve page. Vercel’s Connect guide for eve has every option.
Any other client.
Any client that speaks MCP over Streamable HTTP connects at https://api.useonebrain.com/mcp, with an agent key as a Bearer token or by signing a person in with OAuth. In Claude and ChatGPT, One Brain is a connector; Cursor adds the MCP server; Claude Code, Codex and Gemini CLI run onebrain init.
Give every person and agent the same brain.
$25 a seat at launch. 14 days free, no card.