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 is the same across clients — only the file and path differ.
{
"mcpServers": {
"typst": {
"args": [
"run",
"--rm",
"-i",
"ghcr.io/johannesbrandenburger/typst-mcp:latest"
],
"command": "docker"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
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.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in writing
A markdown editor — and the bridge to your LLM. Local-first, MIT, ~15 MB. Bundled MCP server lets Claude Code / Codex / Cursor drive your vault directly. 14 AI providers BYOK.
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
Define task-specific AI sub-agents in Markdown for any MCP-compatible tool.
一键同步文章到多个内容平台,支持今日头条、WordPress、知乎、简书、掘金、CSDN、typecho各大平台,一次发布,多平台同步发布。解放个人生产力
MCP Security Weekly
Get CVE alerts and security updates for Typst Mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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:
python server.py
Or install it in Claude Desktop with MCP:
mcp install server.py
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
{
"mcpServers": {
"typst": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"ghcr.io/johannesbrandenburger/typst-mcp:latest"
]
}
}
}
Or for local installation:
{
"mcpServers": {
"typst": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"ghcr.io/johannesbrandenburger/typst-mcp:latest"
]
}
}
}
Create `.c