Endleaf renders Markdown or LaTeX (with TikZ, circuits, P&ID, plots, chemistry and zh-TW text) to PDF, HTML or DOCX, through a keyed MCP endpoint for AI agents and tools. It can also keep a document, so an agent can edit it in small checked changes and render any revision.

What it renders

  • XeLaTeX, with xeCJK and Noto CJK TC for zh-TW
  • Markdown prose with fenced figures, or a full LaTeX document
  • TikZ
  • P&ID (PIDcircuitTikZ)
  • circuits (circuitikz)
  • plots (pgfplots, 2D and 3D)
  • chemistry (chemfig, mhchem)
  • Gantt (pgfgantt)
  • floor plans (tikz-dimline, tikzscale)
  • SysML interconnection diagrams (sysml-tikz)
  • tikz-cd, forest, automata, mind maps, tikz-timing and bytefield, on their own or inside a full document
  • siunitx, and the TikZ libraries shapes, arrows.meta, positioning and calc
  • PDF, HTML and DOCX (in HTML and DOCX, diagrams appear as images)
  • A4, Letter or A3, portrait or landscape; a wide figure can go on its own landscape page
  • Automatic landscape covers wide figures in sysml, fulldoc, document-shell, circuits, plots, chemistry, gantt, floorplan, pidcircuit, tikzcd, forest, automata, mindmap, tikztiming and bytefield; an explicit orientation always overrides it
  • \cite resolves to a number such as [1]
  • TeX warning counts, and for a failed render the first error's cause with a Fix line
  • A fit report for each picture: how far it overhangs, the scale that would fit, and its smallest text against the 7 pt floor
  • A SysML diagram with overlapping parts is refused, with the reason
  • Upload a source once with uploadSource, then render it by reference

Documents

A document is kept until you delete it. It uses two languages: the document grammar holds its structure and every change, and LaTeX holds the text, math and pictures inside each part. Endleaf writes the headings, floats, captions and layout.

  • Save a document from a LaTeX body or a starter template. Endleaf splits it into parts: title, sections, paragraphs, figures, tables, equations and references.
  • Edit it with small changes. Each change is checked and shown as a diff first, and becomes a new revision when applied.
  • Read a page-by-page view of the last render: what is on each page, how full it is, and what runs past the text width.
  • Compare any two revisions.
  • Render any revision to PDF.
  • Delete a document with all its revisions.

Playbooks

Fifteen playbooks, one per kind.

documentShell
Markdown prose with fenced figures.
pidcircuit
ISO 14617 P&ID drawings with PIDcircuitTikZ.
circuits
circuitikz schematics and siunitx quantities.
plots
2D and 3D plots with pgfplots.
chemistry
chemfig structures and mhchem formulae.
gantt
Gantt charts with pgfgantt.
floorplan
Floor plans with tikz-dimline and tikzscale.
sysml
SysML interconnection diagrams with sysml-tikz.
fulldoc
One PDF with title, sections, prose and mixed figures.
tikzcd
Commutative diagrams with tikz-cd.
forest
Trees, including syntax trees and directory trees.
automata
Finite automata and state machines.
mindmap
Mind maps with the TikZ mindmap library.
tikztiming
Digital timing diagrams with tikz-timing.
bytefield
Protocol headers and bit or byte field diagrams.

A documentShell TikZ picture body can use tikz-cd, forest, automata, mindmap, tikz-timing and bytefield with no new worker package. Named playbooks for those kinds also remain valid.

Access

For help, email support@inkmirage.xyz. Paid plans are not available yet.

Use it

Point an MCP client at https://endleaf.inkmirage.xyz/mcp and send your key in the Authorization header.

{
  "mcpServers": {
    "endleaf": {
      "url": "https://endleaf.inkmirage.xyz/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

Tools: renderDocument, listPlaybooks, getPlaybook, guide, getQuota, uploadSource.

Free tier: 50 jobs a day, 5 a minute, 256 KiB.

Inline sources are not kept. Uploaded sources are deleted after 24 hours.