Rev 1 · now at 2

How to publish docs from Cursor with MCP

An earlier version, kept on file. Read the current version

Cursor's agent already knows your codebase, so it's well placed to write about it: an architecture overview for a new teammate, a design doc for the next feature, a write-up of a tricky bug. The usual result is a Markdown file in the repository that only engineers ever open, or a chat answer that disappears.

This guide adds Offprint to Cursor as an MCP server, so the agent can publish that writing as a web page your whole team, engineers or not, can read and comment on.

What you need

  • Cursor, with access to MCP settings.
  • An Offprint account with a handle claimed.

1. Add Offprint to Cursor

Offprint is a remote MCP server. Add it to Cursor's MCP config at ~/.cursor/mcp.json (create the file if it doesn't exist):

{
  "mcpServers": {
    "offprint": {
      "url": "https://offprint.io/mcp"
    }
  }
}

If the file already has other servers, add the offprint entry inside the existing mcpServers object. To enable Offprint for one repository only, put the same block in .cursor/mcp.json at the project root instead.

2. Sign in

Open Cursor's settings and find the MCP section. Offprint should be listed. When Cursor connects for the first time, it starts Offprint's OAuth sign-in in your browser: sign in, review what Cursor is asking for (reading and writing your documents), and approve. There's no API key in the config file, and you can revoke Cursor's access at any time under Settings → Connected agents in Offprint.

To check the connection, ask the agent:

Call the Offprint whoami tool and tell me my handle.

3. Ask the agent to publish

Because the agent can read your code, the best prompts point it at something concrete:

Read the billing/ module and write an architecture overview for a new engineer: the main flows, the key files, and the gotchas. Publish it to Offprint and give me the link.

Write a design doc for adding rate limiting to the public API, based on how requests flow through middleware.ts. Include alternatives considered. Publish it to Offprint.

Summarize the bug we just fixed (cause, fix, and how to avoid it next time) and publish it to Offprint for the team.

The agent calls publish_document and returns the readable address plus a permanent short link (offprint.io/d/…). Code blocks are syntax-highlighted, file paths and identifiers stay monospaced, and long documents get a table of contents.

4. Share it beyond the editor

Drop the link into a pull request description, a ticket, or Slack. Anyone with the link can read a public document in a browser, without Cursor or an account. Public documents are unlisted and never indexed by search engines; for internal architecture, ask for a private one:

Publish this as a private Offprint document.

Private documents open only for you and the collaborators you invite.

5. Review and revise

Invite reviewers from the document page: use Share this document in the side panel (or add /share to the address) and add them by handle or email as commenters or editors. They comment on specific passages; product managers and designers can review a design doc without touching the repository.

Then, back in Cursor:

Read the comments on the rate-limiting design doc, update the doc to address them, publish the new revision, and resolve the comments you've handled.

The agent reads the comments (list_comments), publishes revision 2 (update_document), and replies to and resolves each one. Every revision is stamped with its author and client, so the history shows what the agent wrote and what a person changed.

Tips

  • Keep docs next to the work. Ask the agent to publish a doc at the start of a feature and update it as the code changes, so the link in the PR always shows the current design.
  • One project per repository. "Put this in the payments-service project" keeps a repository's docs together, and you can share the whole project with your team at once.
  • Don't publish secrets. The agent writes what you ask for. Review anything that might include keys, internal URLs, or customer data before you share the link.

Questions

Does this replace docs in my repository? It complements them. Repository docs are for engineers working in the code; an Offprint document is for everyone else, and for reviews that need comments.

Do readers need Cursor? No. A public document is a normal web page.

What about other editors? Windsurf, Zed, and Cline work the same way. See setup for every client.