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
IDA Pro MCP
mrexodiaAI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.
ICSS
chokcoco不止于 CSS
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
Activepieces
activepiecesAI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
Comments