Developer docs · 1 of 4

Connect an agent to paper

about 7 minutes · beta, checked against the code on 13 November 2026

What you get

paper runs a remote MCP server. An AI app such as Claude, ChatGPT, Claude Code or Codex connects to it, you sign in to paper and choose what the app may touch, and the app can then find, read and (if you allow it) edit your paper documents, sheets, slides, forms and sites.

  • Address: https://paper.primitiveai.com.au/mcp
  • Transport: Streamable HTTP. There is no local (stdio) server for paper documents.
  • Sign-in: OAuth 2.1 with PKCE (S256). The token goes in the Authorization: Bearer header only. Cookies and tokens in the query string are refused.

Agent connections are in beta. We have connected paper end to end with Claude and ChatGPT. Claude Code and Codex use the same connection but have had less testing, so expect rough edges.

Before you start

  • A paper account at paper.primitiveai.com.au.
  • An AI app that supports remote MCP connectors. We have set paper up with Claude, ChatGPT, Claude Code and Codex. Nothing needs installing on your computer.

Step 1: Decide what the agent should touch

paper asks you three things when an app connects. Decide them before you start:

  • Which kinds: documents, sheets, slides, forms, sites. Tick only what the task needs.
  • Read only, or Read and edit. The card starts on Read only. Edit covers creating, editing, renaming and moving. Moving items to the bin is never offered to an app.
  • For how long: 1, 7 or 30 days.

Form responses are separate and off by default, because they hold other people's answers. Leave them off unless the task is about responses.

Access is per kind across your account, not per document or folder. If you only want an agent near one document, keep that work in a separate account for now.

Step 2: Add the connector

In paper, open the corner and go to Connected AI → Add AI to copy the address. Then add it to your app:

  • Claude Code:
    claude mcp add --transport http --scope user paper https://paper.primitiveai.com.au/mcp
  • Codex:
    codex mcp add paper --url https://paper.primitiveai.com.au/mcp
  • Claude (desktop or web): Settings → Connectors → Add custom connector, then paste the address.
  • ChatGPT: Settings → Apps & Connectors, add a custom connector with the address.

Step 3: Sign in and approve the card

The first time the app uses paper, it opens a paper sign-in. After you sign in you see the approval card. It shows:

  • The app's name, with the note that the app supplied it and paper hasn't verified it.
  • Where paper will send you back to, with a warning if that's an address on your own computer.
  • The kinds, Read only or Read and edit, the form-responses box and the number of days.

Choose, then approve. Cancel sends the app a refusal. An app that asked for read access can still be given edit here, and an app that asked for edit can be held to read.

Behind the card: access tokens last at most an hour, refresh tokens rotate and end with the connection, and a sign-in request expires after 10 minutes. If a code or refresh token is ever replayed, paper ends the whole connection.

Step 4: Try a first task

Start with something read-only: “find my notes from last week and open one”, or “read the first ten rows of my budget sheet”.

With Read and edit, try a small change, such as adding a paragraph or creating a new document. Here is how edits behave:

  • Edits that add or change content save straight away, with a receipt. The agent can undo its latest change.
  • Removing content, rewriting a whole document, or undoing waits for you. paper shows it under Waiting for you, and you approve or decline within 10 minutes.
  • Every edit names the version it read. If the item changed in the meantime, the edit is refused and the agent has to open it again.

Review and disconnect

Connected AI lists each app with what it may touch, when access ends and when it was last used.

To stop an app, press Disconnect. Its access and every token end at once, any change still waiting for you drops off the list, and the app's next call is refused. Edits it already saved stay where they are.

Our server keeps a record of each agent action (what, where, allowed or refused, and when) with before-and-after versions for edits. A full history screen for you to browse is still to come.

Security notes

  • paper tells the model that anything it reads in your documents is your data, not instructions. That helps, but no tool can fully stop a document from trying to mislead a model. Treat the approval step as your real safeguard.
  • The model can't approve its own deletions. Approval only happens in paper, by you.
  • Each connection is limited to 240 requests a minute.

Troubleshooting

  • “Invalid or expired access token”: the connection ran out or was disconnected. Remove the connector and add it again.
  • “This connection is not allowed to do that, or the item is not available to it.” The kind isn't ticked, or the connection is read-only. Reconnect and choose differently.
  • “The item changed since you read it.” Someone edited it. Ask the agent to open it again.
  • “The person has not approved this change yet.” Check Waiting for you in paper. Requests expire after 10 minutes.
  • “Too many requests”: wait a minute.
  • “This connection request is unavailable.” The sign-in took too long. Start again from your AI app.

Let an agent use a pass login →