Skip to content
nexdoc.design Docs

MCP server

Connect Claude, ChatGPT, or Cursor to NexDoc Design via the Model Context Protocol.

Package: @nexdoc/mcp-server. Agent instructions: nexdoc-mcp skill.

Two transports, one tool set:

TransportAuthBest for
Streamable HTTP (remote)OAuthHosted connector at https://mcp.nexdoc.design/mcp
stdio (local)NXD_API_KEYCursor, Claude Desktop, Claude Code

Tools

ToolPurpose
create_designCreate/reuse a job and start a run
update_designNew run with edit instructions
check_runOne-shot status (fresh viewer_url)
refresh_previewNew preview link if the old one expired
wait_for_runPoll until terminal (or timeout)
notify_run_emailEmail the account owner when an in-progress run finishes (when the server exposes this tool)
list_runsRuns for a job
export_designpdf or htmldownload_url (standard download)
publish_design / unpublish_designPublic URL — only when the user asks
list_formatsFormat catalog
get_balanceWallet summary

Add a remote MCP server named nexdoc at:

code
https://mcp.nexdoc.design/mcp

The client opens a browser for OAuth. No API key is stored in the client.

Local stdio (API key)

Create a key at app.nexdoc.design/keys. Never print the secret.

code
{
  "mcpServers": {
    "nexdoc": {
      "command": "npx",
      "args": ["-y", "@nexdoc/mcp-server"],
      "env": {
        "NXD_API_KEY": "nxd_live_..."
      }
    }
  }
}

Example prompt

Create a business card for Jane Doe, Founder at Acme. Dark minimal layout. Wait until it finishes and give me the viewer URL and a PDF download link.

The agent should call create_designwait_for_run → return viewer_urlexport_design (PDF for a card). Do not call publish_design unless the user asks to publish.