Free online Typst MCP server for AI assistants.

Connect ChatGPT, Claude, or another MCP-compatible client to render Typst documents, convert Markdown, HTML, and LaTeX to Typst, validate snippets, return resource links, and read Typst docs without installing a compiler locally.

Your MCP Endpoint URL:

https://typst.grenz.net/mcp
converted.typ
#set page(margin: 2cm)
#set text(size: 11pt)

= Converted Report

Markdown, HTML, and LaTeX can become
editable Typst before rendering.

report.pdf

Token-protected resource links, default 6h lifespan

Lean document tools for AI clients

A focused free online Typst MCP server for rendering, conversion, validation, and Typst reference lookup.

PDF

Instant Rendering

Compiles complete Typst source code to PDF, SVG, or PNG instantly. Handles complex math, styling, and formatting natively.

TPL

Template System

Pre-loaded with templates for simple reports, formal letters, and lab protocols. Just pass the variables, the server handles the layout.

URL

Context Optimized

Returns token-protected download URLs to prevent context window overflow. Tokens survive service restarts until expiry. Files expire automatically: 6 hours by default, optionally up to 48 hours per render call.

DOC

Built-in Typst Docs

Lets connected LLMs list and retrieve official Typst documentation chapters before generating or fixing source code.

TEX

LaTeX Conversion

Converts LaTeX snippets to Typst through Pandoc, making it easier for models and users to migrate formulas and examples.

MD

Document Conversion

Converts Markdown, GitHub-Flavored Markdown, HTML, and complete LaTeX documents to Typst, or renders them directly to PDF, SVG, or PNG.

OK

Syntax Validation

Validates Typst snippets with the real Typst CLI and returns structured compiler diagnostics for fast correction loops.

Available MCP Tools

These tools are automatically exposed to your LLM when connecting. Render tools support optional lifespan_hours: default 6, maximum 48. File upload bridging, including ChatGPT local file handoff, is experimental and depends on the MCP client; inline source and HTTPS URLs remain the most stable inputs.

open_typst_renderer

ChatGPT UI

Opens an optional ChatGPT Apps UI for rendering, conversion, validation, docs lookup, and file helper workflows. The standard MCP tools remain usable in every client.

no arguments optional UI resource

render_typst

Core

Renders raw Typst source code to your desired format. Returns a token-protected URL, attachment metadata, and an MCP resource link for compatible clients.

source (str) format (enum) filename (str) lifespan_hours (num)

render_typst_file

Files

Compile a document from a bridged ChatGPT file upload, public HTTPS URL, server-side path, or inline source fallback.

file (obj) url (str) path (str) source (str) format (enum) lifespan_hours (num)

render_typst_from_template

Generator

Quickly generate structured documents by passing variables to predefined Typst templates.

template (enum) variables (dict) format (enum) lifespan_hours (num)

convert_document_to_typst

Convert

Converts Markdown, GFM, HTML, or full LaTeX documents into editable Typst source through Pandoc.

input_format (enum) source (str) file/url/path

render_converted_document

Convert + render

Converts Markdown, GFM, HTML, or LaTeX to Typst, then renders the result directly to PDF, SVG, or PNG with a protected download URL.

input_format (enum) format (enum) filename (str) lifespan_hours (num)

list_docs_chapters

Docs

Lists Typst documentation chapters so the model can choose the most relevant reference page before writing Typst code.

refresh_cache (bool)

get_docs_chapter

Docs

Retrieves one Typst documentation chapter by route, including readable text and source URL.

route (str)

get_docs_chapters

Docs

Retrieves multiple Typst documentation chapters in one call for broader reference context.

routes (str[])

latex_snippet_to_typst

Convert

Converts one LaTeX snippet to Typst through Pandoc, with a math fallback for bare formula snippets.

latex_snippet (str)

latex_snippets_to_typst

Convert

Converts a batch of LaTeX snippets to Typst and returns per-snippet success or error details.

latex_snippets (str[])

check_if_snippet_is_valid_typst_syntax

Validate

Compiles one Typst snippet to verify syntax and returns structured compiler diagnostics on failure.

typst_snippet (str)

check_if_snippets_are_valid_typst_syntax

Validate

Validates multiple Typst snippets and returns per-snippet diagnostics for quick iteration.

typst_snippets (str[])