MCP server providing Typst markup tools for LaTeX conversion, syntax validation, and image rendering.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Typst MCP.
Typst MCP Server is an MCP (Model Context Protocol) implementation that helps AI models interact with Typst, a markup-based typesetting system. The server provides tools for converting between LaTeX and Typst, validating Typst syntax, and generating images from Typst code.
β οΈ Currently all the functionality is implemented as
tools, because Cursor and VS Code are not able to handle the other primitives yet.
The server provides the following tools:
list_docs_chapters(): Lists all chapters in the Typst documentation.
get_docs_chapter(route): Retrieves a specific chapter from the Typst documentation.
get_docs_chapters(routes: list) for retrieving multiple chapters at once.latex_snippet_to_typst(latex_snippet): Converts LaTeX code to Typst using Pandoc.
latex_snippets_to_typst(latex_snippets: list) for converting multiple LaTeX snippets at once.check_if_snippet_is_valid_typst_syntax(typst_snippet): Validates Typst code.
check_if_snippets_are_valid_typst_syntax(typst_snippets: list) for validating multiple Typst snippets at once.typst_to_image(typst_snippet): Renders Typst code to a PNG image.
Clone this repository
git clone https://github.com/johannesbrandenburger/typst-mcp.gitClone the typst repository
git clone https://github.com/typst/typst.gitRun the docs generation in the typst repository
cargo run --package typst-docs -- --assets-dir ../typst-mcp/typst-docs --out-file ../typst-mcp/typst-docs/main.json
main.json and the assets in the typst-docs folderInstall required dependencies: uv sync (install uv if not already installed)
Install Typst
Execute the server script:
Or install it in Claude Desktop with MCP:
Or use the new agent mode in VS Code:
Agent mode: available to all users and supports MCP
For Docker installation and usage, see DOCKER.md for detailed build information and instructions.
This MCP server can be integrated with various AI coding platforms. Below are configuration instructions for popular platforms:
Add the following to your Claude Desktop configuration file (claude_desktop_config.json):
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Or for local installation:
Create .cursor/mcp.json in your project root for project-specific configuration:
Or create ~/.cursor/mcp.json for global configuration. For local installation:
Create .roo/mcp.json in your project root for project-specific configuration:
Or edit global settings via Roo Code MCP settings view. For local installation:
Create or edit the opencode.json file in your project root:
For local installation:
Configure MCP servers in your Claude Code settings file (~/.claude/settings.json):
Or for local installation:
VS Code's Agent Mode has native MCP support (no extension required):
chat.agent.enabled).vscode/mcp.json in your workspace:For global configuration, add to your user profile via MCP: Open User Configuration command.
β οΈ The schema of the typst documentation is not stable and may change at any time. The schema is generated from the typst source code and is not guaranteed to be complete or correct. If the schema changes, this repository will need to be updated accordingly, so that the docs functionality works again.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/johannesbrandenburger-typst-mcp)<a href="https://allmcps.com/mcp/johannesbrandenburger-typst-mcp"><img src="https://allmcps.com/api/badge/johannesbrandenburger-typst-mcp?style=directory" alt="Typst MCP on AllMCPs" /></a>