Typst

v1.0.0Developer Toolsstable

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

llmmcppandoctypst
Share:
154
Stars
0
Downloads
0
Weekly
0/5

What is Typst?

Typst is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 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 a...

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

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Typst MCP Server is an MCP (Model Context Protocol) implemen

Use Cases

Convert between LaTeX and Typst markup
Validate and generate Typst documents
Typeset documents with markup-based system
LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 16, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx typst

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Typst

The Typst MCP Server enables AI assistants to work with Typst, a modern markup-based typesetting system designed as an alternative to LaTeX. It provides tools to convert LaTeX snippets to Typst syntax using Pandoc, validate Typst code for correctness, render Typst documents to PNG images, and browse the official Typst documentation — all from within an AI chat interface. Technical writers, academics, and developers migrating from LaTeX to Typst use it to accelerate document authoring and learn Typst syntax through guided AI assistance.

Prerequisites

  • Python 3.10+ with the uv package manager installed
  • Typst CLI installed (see typst.app for installation instructions)
  • Pandoc installed for LaTeX-to-Typst conversion (pandoc.org/installing.html)
  • Git for cloning the repository and generating the documentation bundle
  • An MCP-compatible client such as Claude Desktop, Claude Code, or Cursor
1

Clone the typst-mcp repository

Download the server source code from GitHub.

git clone https://github.com/johannesbrandenburger/typst-mcp.git
cd typst-mcp
2

Install Typst and Pandoc

Install both required external tools. Typst is available via cargo or system package managers; Pandoc from pandoc.org.

# Install Typst via cargo:
cargo install typst-cli

# Install Pandoc on macOS:
brew install pandoc
3

Generate the Typst documentation bundle

Clone the Typst source repo and run the docs generation command to produce the main.json file that the MCP server uses for documentation lookup.

git clone https://github.com/typst/typst.git ../typst
cd ../typst
cargo run --package typst-docs -- --assets-dir ../typst-mcp/typst-docs --out-file ../typst-mcp/typst-docs/main.json
cd ../typst-mcp
4

Install Python dependencies

Install all Python dependencies using uv sync.

uv sync
5

Configure your MCP client

Add the server to your MCP client configuration. Use 'mcp install server.py' for Claude Desktop or add a manual config block for other clients.

mcp install server.py
6

Alternatively, run via Docker

If you prefer Docker, pull and run the pre-built image without any local dependency setup.

docker pull ghcr.io/johannesbrandenburger/typst-mcp:latest
docker run ghcr.io/johannesbrandenburger/typst-mcp:latest

Typst Examples

Client configuration

Add this to your claude_desktop_config.json to run the Typst MCP server. Replace the path with the absolute path to your typst-mcp directory.

{
  "mcpServers": {
    "typst": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/absolute/path/to/typst-mcp",
        "python",
        "server.py"
      ]
    }
  }
}

Prompts to try

Use these prompts to convert, validate, and render Typst documents through your AI assistant.

- "Convert this LaTeX equation to Typst: \\frac{\\partial u}{\\partial t} = \\nabla^2 u"
- "Is this valid Typst syntax? #set text(font: \"Libertinus Serif\", size: 12pt)"
- "Render this Typst snippet as an image: #align(center)[= My Document Title]"
- "Show me the Typst documentation chapter on tables"
- "Convert my LaTeX bibliography \\bibliographystyle{plain} \\bibliography{refs} to Typst's citation format"

Troubleshooting Typst

LaTeX conversion fails with 'pandoc not found' error

Pandoc must be installed and on your PATH before the server can convert LaTeX to Typst. Install it from pandoc.org or via your package manager ('brew install pandoc' on macOS, 'apt install pandoc' on Ubuntu), then restart your MCP client.

Typst rendering fails or produces no output image

Verify the Typst CLI is installed and accessible: run 'typst --version' in your terminal. If it is not found, install it with 'cargo install typst-cli' or download a binary from github.com/typst/typst/releases. The server needs 'typst' on the PATH.

Documentation tools return empty results or errors

The typst-docs/main.json file must be generated before running the server. Follow step 3 to clone the Typst repo and run the docs generation command. Without this file the list_docs_chapters and get_docs_chapter tools will not function.

Frequently Asked Questions about Typst

What is Typst?

Typst is a Model Context Protocol (MCP) server that 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 It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Typst?

Follow the installation instructions on the Typst GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Typst?

Typst works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Typst free to use?

Yes, Typst is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "typst": { "command": "npx", "args": ["-y", "typst"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Typst?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides