> ## 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.

# Quickstart: Cursor + MCP

> Publish documents from Cursor's AI chat via MCP.

<Info>Time to complete: \~5 minutes (includes creating an API key).</Info>

<Steps>
  <Step title="Create an API key">
    1. Sign in at [unfurl.pub](https://unfurl.pub).
    2. Open **[API keys](https://unfurl.pub/dashboard/api-keys)** in the dashboard.
    3. Add a label (e.g. `Cursor`) and create a key. **Copy the full `oodoc_…` secret** — it is shown only once. You will need it when the Unfurl authorize page opens after you connect MCP.
  </Step>

  <Step title="Add the MCP server to Cursor">
    Open your Cursor MCP settings and add:

    ```json theme={null}
    {
      "mcpServers": {
        "unfurl": {
          "url": "https://mcp.unfurl.pub/mcp"
        }
      }
    }
    ```

    Restart Cursor or reload the MCP servers. Complete OAuth in the browser and **paste your API key** on the Unfurl authorize page.
  </Step>

  <Step title="Publish from the Cursor chat">
    In Cursor's AI chat (Cmd+L / Ctrl+L), ask:

    > "Generate a technical design doc for the auth refactor and publish it to Unfurl"

    Cursor will generate the HTML and call the Unfurl MCP tool to publish it.
  </Step>

  <Step title="Get your link">
    The response will include:

    * `document_id` — unique identifier for future updates
    * `version_id` — identifier for this specific version
    * `share_url` — the live link to send to clients
  </Step>
</Steps>

## Updating from Cursor

Reference the `document_id` in a follow-up prompt:

> "Update the auth design doc on Unfurl (document\_id: abc-123) with the new session management approach"

Same link, new content.

## What's next?

<CardGroup cols={2}>
  <Card title="publish_document" icon="code" href="/api-reference/publish-document" />

  <Card title="get_document" icon="code" href="/api-reference/get-document" />
</CardGroup>
