2Dream
2Dream › MCP server for page layout

An MCP server for page layout, vector graphics and books

With the hosted 2Dream MCP server, an AI agent produces real documents: pages, vector shapes, images and running copy that flows through linked frames. The result is not a screenshot or a block of Markdown — it is an editable document with a link.

What the tools cover

Documents and pages

d2_doc_create starts a document in a preset such as A4, Letter, square social or HD; pages are added and removed as the layout grows. All lengths are millimetres.

Vector objects

d2_node_add places rectangles, ellipses, lines, polygons, SVG paths, images and text frames — each with fill, stroke, opacity, rotation and shadow.

Running copy

d2_text_story takes the whole text once and the frames in reading order; the copy flows from frame to frame and reports an overflow estimate.

Corporate identity

d2_ci_get and d2_ci_set hold colours with roles, fonts and logo variants, so everything an agent adds stays on brand.

Blueprints

d2_expose_start creates a report, yearbook, menu, letter, flyer or web page as wireframe frames with prompts; d2_wire_fill fills them one by one.

Share links

d2_doc_share returns a flipbook viewer link, a sign-and-confirm link, or a 24-hour sandbox copy that a person can edit without an account.

The book author

A book is handed over as a manuscript, never as a layout. The agent plans the chapters with d2_book_create, then submits them one by one with d2_book_submit; every reply names the next unit of work. Illustrations are described, generated and placed with d2_book_image. d2_book_typeset then sets the pages with deterministic code: chapter openers on right-hand pages, running heads and folios, a table of contents with page numbers, footnotes and cross-references.

Layouts exist for novels, non-fiction, textbooks, children's books, coffee-table books, documentation, paperbacks and poetry. The finished book opens in the 2Dream editor, where it is re-set with exact font metrics and can be converted to ordinary editable frames.

Connect your agent

Claude Code

claude mcp add --transport http show-real https://api.show-real.com/mcp \
  --header "Authorization: Bearer t3d_YOUR_KEY"

Claude Desktop (through the mcp-remote bridge, in claude_desktop_config.json)

{ "mcpServers": { "show-real": { "command": "npx",
  "args": ["-y", "mcp-remote", "https://api.show-real.com/mcp",
           "--header", "Authorization: Bearer t3d_YOUR_KEY"] } } }

Any HTTP client — plain JSON-RPC 2.0 over HTTPS

curl -s https://api.show-real.com/mcp \
  -H "Authorization: Bearer t3d_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

The address https://api.2dream.studio/mcp reaches the same server; one key drives 2Dream and Tangibl3D.

Try it without an account

There is a keyless endpoint for experiments: https://api.show-real.com/mcp/sandbox. Send a header X-Agent-Id: my-agent so your projects stay together, or append ?agent=my-agent to the URL when your client cannot set headers — that form works as a custom connector URL in claude.ai. Sandbox projects are visible only to the same agent id and are deleted automatically after 24 hours.

claude mcp add --transport http show-real-sandbox https://api.show-real.com/mcp/sandbox \
  --header "X-Agent-Id: my-agent"

A workflow that works

  1. d2_doc_create — choose the preset and the number of pages
  2. add the large shapes first, then text, then images; keep text frames generous
  3. d2_doc_describe to read back objects and bounding boxes; d2_doc_svg for a quick rendering
  4. adjust with d2_node_update, d2_node_transform, d2_node_order and d2_node_group
  5. d2_doc_share — hand the link to a person
  • Full documentation — quickstart, concepts, live tool reference, limits and changelog
  • llms.txt — the same in a form agents can read directly
  • docs.json — live tool registry (JSON, CORS open)

Questions and answers

Can an AI agent create a real page layout?

Yes. Connected to the 2Dream MCP server, an agent creates multi-page documents with vector shapes, images and flow text in linked frames. The document stays editable in the 2Dream editor and exports as PDF.

Can an agent write and typeset a whole book?

Yes. The book author tools accept chapter manuscripts and illustration briefs and typeset them into pages with running heads, page numbers and a table of contents.

How does a person receive the result?

As a link: a flipbook viewer, a document to sign, or an editable 24-hour sandbox copy that needs no account. Owners also get a deep link into the editor.

Which clients are supported?

Claude Code, Claude Desktop via mcp-remote, Cursor, Windsurf, Continue and any client that speaks MCP over HTTP with a request header. The sandbox endpoint also works as a custom connector URL in claude.ai.

Is it the same server as the 3D tools?

Yes. One hosted server exposes the 2Dream tools (d2_*) and the Tangibl3D tools (t3d_*), with one API key and one sandbox.

Let your agent lay out the page

Start in the sandbox, or sign in and create an API key in the account menu.

Open the documentationAbout 2Dream