Docs

The MCP server

One remote MCP server for ChatGPT, Claude and Grok: its address, signing in with OAuth 2.1, each person’s own tools, and errors.

View as Markdown

Openbook runs one remote MCP server. Each person adds it to ChatGPT, Claude or Grok once, signs in as themselves, and sees only the tools their access allows.

Server address
https://api.withopenbook.com/mcp

It speaks Streamable HTTP and answers with JSON rather than a stream. Every request carries the person’s bearer token.

Signing in

OAuth 2.1 with PKCE, through Openbook’s own authorization server at https://api.withopenbook.com. Tokens only work at Openbook: they’re issued for the resource https://api.withopenbook.com/mcp, which is also the default when a request names none.

StepRequestWhat comes back
1POST /mcp with no token401 and WWW-Authenticate: Bearer resource_metadata="https://api.withopenbook.com/.well-known/oauth-protected-resource", scope="openbook"
2GET /.well-known/oauth-protected-resourceThe resource, https://api.withopenbook.com/mcp, its authorization server and the scope openbook
3GET /.well-known/oauth-authorization-serverThe endpoints, PKCE with S256, client_id_metadata_document_supported: true and a registration_endpoint
4A client ID metadata document, or POST /oauth/registerYour client. Apps that can’t keep a secret register without one, with token_endpoint_auth_method: none.
5GET /oauth/authorizeThe person signs in, then a code at your redirect URI. Send code_challenge with code_challenge_method=S256, and scope=openbook.
6POST /oauth/tokenAn access token, and a refresh token for grant_type=refresh_token later

Who signs in

People sign in on Openbook’s own pages in the browser, never in a chat: with a passkey, a code emailed to their confirmed address, or a US mobile number and a code sent by text. Someone new adds their US mobile number, checked with a code sent by text, and their name and email, which a code sent there confirms. After an emailed or texted code, they save a passkey. Openbook is US only for now.

Tokens

  • Access tokens are ES256 JWTs and last an hour.
  • Refresh tokens last 180 days. They’re issued even when a client doesn’t ask for offline_access, since clients don’t always ask.
  • Disconnecting the app on Manage Account, or deleting the account, stops its tokens at once.
  • There are no API keys or organization-wide tokens: every token is one person’s.

Tools

tools/list returns only the tools this person can use right now, each with a title, a description written for clients like ChatGPT, a JSON Schema for its parameters, and readOnlyHint or destructiveHint annotations. The list changes as their access does, and every call is checked again, whatever a client has cached. See the tool reference.

{
  "jsonrpc": "2.0",
  "id": 7,
  "method": "tools/call",
  "params": {
    "name": "search_contacts",
    "arguments": {
      "query": "coach"
    }
  }
}
{
  "jsonrpc": "2.0",
  "id": 7,
  "result": {
    "content": [{ "type": "text", "text": "{\"items\":[…]}" }],
    "structuredContent": { "items": […] }
  }
}

A result carries the tool’s output twice: as JSON text, and as structuredContent for apps that read it.

Instructions

The server gives every client these instructions when it connects:

Errors

A tool that fails returns a normal result with isError: true. Its text is a JSON error with a stable code and a message written to be shown to people, the same as the HTTP API’s errors.

isError result text
{ "error": { "code": "budget_exhausted", "message": "That's all 3 searches for today. Try again tomorrow." } }

Requests reach people on their own

When a call creates something for someone else, like a request for a field, Openbook delivers it to them: as an MCP event to an app watching Openbook for them, like ChatGPT, by email, or both, as each person chooses on Manage Account, and by email whenever no app is watching or a delivery fails. Opening a link from an event or an email changes nothing until the person taps.

MCP Events

Openbook implements the webhook delivery of the draft MCP Events extension, which ChatGPT supports in Work chats. On protocol revision 2026-07-28, server/discover lists events in its capabilities, and the same endpoint answers events/list, events/subscribe and events/unsubscribe for the person signed in.

EventWhen
request.receivedSomeone asked the person for a field on a contact.
answer.receivedA request or an ask of theirs was answered.
ask.receivedSomeone they know asked whether they know a person.
suggestion.receivedSomeone suggested a change to a contact they can edit.
approval.neededAn invite, a request to join, or an add waits for their approval.
group.changingHide from search is turning off for a group they own at the end of its 30 days without a plan, or has.
  • Events take no arguments. Each carries kind, id, a one-line summary and, where there is a page for it, a link, never a field’s value. Summaries quote what other people entered, so treat them as data.
  • Subscribe with delivery: { mode: "webhook", url, secret }: an https URL on the public internet and a Standard Webhooks whsec_ secret of 24 to 64 bytes. Openbook first POSTs a signed { "type": "verification", "challenge": … } there and expects the challenge back.
  • Deliveries are signed with Standard Webhooks’ webhook-id, webhook-timestamp and webhook-signature headers, plus X-MCP-Subscription-Id. One that fails is tried twice more within about an hour, never after a 410 or 413.
  • Subscriptions last a day, or what the app asks for between an hour and a week, and subscribing again refreshes them. They end when the person disconnects the app or chooses email only.
  • Refusals use the draft’s codes as ChatGPT reads them: -32011 an unknown event, -32012 not allowed (like a person who chose email only), -32013 too many subscriptions, -32014 a delivery mode Openbook doesn’t offer, -32015 a callback that fails verification, and -32602 invalid parameters.
  • An event grants nothing itself: answering goes through the tools or Openbook’s pages, as the person says, in the chat or in the instructions of the task that watches for them.
An event
{
  "eventId": "evt_2b7c…",
  "name": "request.received",
  "timestamp": "2026-10-20T16:05:00Z",
  "data": {
    "kind": "request",
    "id": "r_19c",
    "summary": "Mo asked you for Ida Moss’s mobile number",
    "link": "https://withopenbook.com/a/…"
  },
  "cursor": null
}