MCP.so
登录

Typst MCP Server

@johannesbrandenburger

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

johannesbrandenburger

关于 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 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "typst-mcp": {
      "command": "python",
      "args": [
        "server.py"
      ]
    }
  }
}

Typst MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

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

常见问题

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.

评论

其他 分类下的更多 MCP 服务器