Basic information
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.
Typst MCP Server is a MCP server in the Other category listed in the AddMCP.net directory, published by johannesbrandenburger. Supported transport: stdio. Runtime: python. License: MIT. The repository has 165 GitHub stars. Source code is hosted on github.com. Related topics: llm, mcp, pandoc, typst.
Setup
{
"mcpServers": {
"typst-mcp": {
"command": "python",
"args": [
"server.py"
]
}
}
}
{
"mcpServers": {
"typst-mcp": {
"command": "python",
"args": [
"server.py"
]
}
}
}
{
"servers": {
"typst-mcp": {
"command": "python",
"args": [
"server.py"
]
}
}
}
Typst MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"typst-mcp": {
"command": "python",
"args": [
"server.py"
]
}
}
}
Typst MCP Server tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
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
Frequently asked questions
1 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.
2 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.
3 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.
4 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.
5 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.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In