Loading...

The Typst MCP server enables AI models to interact with the Typst typesetting system, offering tools for documentation access, LaTeX conversion, syntax validation, and image generation.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
The Typst MCP server enables AI models to interact with the Typst typesetting system, offering tools for documentation access, LaTeX conversion, syntax validation, and image generation.
The Typst MCP server is relatively safe for read-only operations like documentation access. However, the LaTeX conversion and Typst code execution tools introduce moderate risks, especially if user inputs are not carefully validated. Running the server in a sandboxed environment like Docker is recommended.
Performance depends heavily on the complexity of the Typst code and the efficiency of Pandoc for LaTeX conversion. Image generation can be resource-intensive.
Cost is primarily related to compute resources used for code conversion and image rendering. There are no direct API costs.
{
"mcpServers": {
"typst": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"ghcr.io/johannesbrandenburger/typst-mcp:latest"
]
}
}
}list_docs_chapters()Lists all chapters available in the Typst documentation.
Read-only access to documentation content.
get_docs_chapter(route)Retrieves the content of a specific chapter from the Typst documentation.
Read-only access to documentation content.
latex_snippet_to_typst(latex_snippet)Converts a LaTeX code snippet into Typst code using Pandoc.
Conversion process may introduce vulnerabilities or unexpected behavior.
check_if_snippet_is_valid_typst_syntax(typst_snippet)Validates whether a given Typst code snippet has correct syntax.
Performs syntax checking without executing the code.
typst_to_image(typst_snippet)Renders a Typst code snippet into a PNG image.
Image rendering can consume significant resources and potentially expose vulnerabilities.
None
cloud
The Typst MCP server is relatively safe for read-only operations like documentation access. However, the LaTeX conversion and Typst code execution tools introduce moderate risks, especially if user inputs are not carefully validated. Running the server in a sandboxed environment like Docker is recommended.
The level of autonomy should be carefully configured, especially when using the LaTeX conversion and image generation tools. Sandboxing is recommended to mitigate potential risks.
Production Tip
Monitor resource consumption, especially during image generation, to prevent denial-of-service issues.
No, this server does not require an API key.
No, this server does not provide direct file editing capabilities.
Yes, the Typst code execution is sandboxed, but it's still important to validate inputs.
The server uses Pandoc for LaTeX conversion, so it supports the LaTeX versions supported by Pandoc. The Typst version depends on the installed Typst executable.
You need to ensure that the desired Typst version is installed and accessible in the server's execution environment.
The server currently only supports generating PNG images. PDF generation is not directly supported.
Check the server logs for error messages from Pandoc. Ensure that the LaTeX code is valid and compatible with Pandoc.