> ## Documentation Index
> Fetch the complete documentation index at: https://00doc-web.vercel.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# API reference

> MCP tools for publishing and retrieving Unfurl documents from Claude, Cursor, and other MCP clients.

# API reference

Unfurl exposes **four MCP tools** on the remote server. Your AI client calls them the same way it calls any other MCP tool — no REST boilerplate in the chat.

<Info>
  **Endpoint:** `https://mcp.unfurl.pub/mcp` — add this URL in Claude or Cursor. Follow **Before you start** to generate an API key and complete OAuth on the Unfurl authorize page.
</Info>

## Tools

<CardGroup cols={2}>
  <Card title="publish_document" icon="upload" href="/api-reference/publish-document">
    Create a document or push a new version to an existing `document_id`.
  </Card>

  <Card title="get_document" icon="download" href="/api-reference/get-document">
    Fetch metadata and optional HTML for a document you already published.
  </Card>

  <Card title="update_document" icon="pen" href="/api-reference/update-document">
    Change title or description without publishing new HTML.
  </Card>

  <Card title="delete_document" icon="trash" href="/api-reference/delete-document">
    Permanently delete a document and its share links.
  </Card>
</CardGroup>

## REST API

The same operations are available over HTTP if you prefer scripts or custom integrations. See [REST API (v1)](/api-reference/rest-api).

## Before you start

1. **Unfurl account** — Sign in at [unfurl.pub](https://unfurl.pub).
2. **API key** — Open **[Dashboard → API keys](https://unfurl.pub/dashboard/api-keys)**. Create a key with a label (e.g. `MCP`), then **copy the full `oodoc_…` secret** — it is displayed only once. You will paste it on the Unfurl authorize page when your AI client connects to MCP.
3. **MCP connection** — Add the endpoint `https://mcp.unfurl.pub/mcp` in Claude or Cursor and complete OAuth in the browser.

<CardGroup cols={2}>
  <Card title="MCP overview" icon="plug" href="/core-concepts/mcp-overview" />

  <Card title="Claude quickstart" icon="robot" href="/getting-started/quickstart-claude" />
</CardGroup>
