Typst MCP Server
@johannesbrandenburger
About Typst MCP Server
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.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"typst-mcp": {
"command": "python",
"args": [
"server.py"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Typst MCP Server?
Typst MCP Server is an MCP (Model Context Protocol) implementation that helps AI models interact with Typst, a markup-based typesetting system. It provides tools for converting between LaTeX and Typst, validating Typst syntax, and generating PNG images from Typst code.
How to use Typst MCP Server?
Clone both this repository and the Typst repository, generate the documentation JSON file, install dependencies with uv sync, then run python server.py or use Docker. Configure the server in your AI platform’s MCP settings (e.g., Claude Desktop, Cursor, VS Code Agent Mode) by specifying the command and arguments.
Key features of Typst MCP Server
- Converts LaTeX snippets to Typst using Pandoc
- Validates whether Typst code is syntactically correct
- Renders Typst code to PNG images for preview
- Lists all chapters in the Typst documentation
- Retrieves specific chapters from the Typst documentation
- Supports batch conversion and validation of multiple snippets
Use cases of Typst MCP Server
- AI assistants generating and checking Typst documents
- Converting existing LaTeX projects to Typst format
- Validating Typst code before outputting it to users
- Previewing complex Typst illustrations before sending
- Querying Typst documentation to answer user questions
FAQ from Typst MCP Server
What does Typst MCP Server do that Pandoc alone does not?
Beyond LaTeX-to-Typst conversion, it provides Typst syntax validation, PNG rendering, and direct access to Typst documentation – all integrated into AI workflows via MCP tools.
What runtime or dependencies are required?
You need Python with uv, a clone of the Typst repository (for documentation generation), and optionally Docker. Pandoc must be installed for LaTeX conversion.
Where does the documentation data live?
The Typst documentation is generated locally from the Typst source code and stored as a JSON file (main.json) in the typst-docs folder of this repository.
What are the known limitations of Typst MCP Server?
The schema of the Typst documentation is not stable and may change at any time; the server must be updated accordingly. Currently all functionality is implemented as MCP tools because other primitives (resources, prompts) are not yet supported in client IDEs like Cursor and VS Code.
How does the server handle authentication or transport?
The server uses MCP stdio transport (no authentication required) and exposes all features as tools for AI models to call.
Frequently asked questions
What does Typst MCP Server do that Pandoc alone does not?
Beyond LaTeX-to-Typst conversion, it provides Typst syntax validation, PNG rendering, and direct access to Typst documentation – all integrated into AI workflows via MCP tools.
What runtime or dependencies are required?
You need Python with `uv`, a clone of the Typst repository (for documentation generation), and optionally Docker. Pandoc must be installed for LaTeX conversion.
Where does the documentation data live?
The Typst documentation is generated locally from the Typst source code and stored as a JSON file (`main.json`) in the `typst-docs` folder of this repository.
What are the known limitations of Typst MCP Server?
The schema of the Typst documentation is not stable and may change at any time; the server must be updated accordingly. Currently all functionality is implemented as MCP tools because other primitives (resources, prompts) are not yet supported in client IDEs like Cursor and VS Code.
How does the server handle authentication or transport?
The server uses MCP stdio transport (no authentication required) and exposes all features as tools for AI models to call.
Basic information
More Other MCP servers
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
Unity MCP ✨
justinpbarnettUnity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
Mcp
browsermcpBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
ghidraMCP
LaurieWiredMCP Server for Ghidra
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
Comments