Provides access to Typst documentation through search, browsing, and reading capabilities, enabling assistance with Typst syntax, functions, and typesetting features.
Typst MCP Server
A Model Context Protocol (MCP) server that provides Typst documentation to Claude Code and other MCP clients.
Prerequisites
Python 3.12 or higher
uv package manager
Quickstart
Run the following command to add the Typst MCP server to your project-scope Claude Code configuration:
Or manually add it to your .mcp.json configuration file:
2. Start using Typst capabilities
Once configured, you can ask Claude Code to help you with Typst documentation. For example:
Documentation
Tools
typst_search
Search through Typst documentation for specific topics, functions, or syntax.
Parameters:
query(string): Search term or phrase to find in Typst documentation
Returns: List of relevant documentation sections with titles, descriptions, and file paths.
Example:
typst_browse
Browse the Typst documentation structure as a hierarchical tree.
Parameters:
depth(integer, optional): Maximum depth to traverse (default: 0 for full depth)sub_directory(string, optional): Subdirectory to explore (default: "." for root)
Returns: Tree structure of documentation files and directories.
Example:
typst_read
Read the content of a specific Typst documentation file.
Parameters:
path(string): Relative path to the documentation file
Returns: Full content of the specified documentation file in markdown format.
Example:
Development
Setting up development environment
Running tests
Code formatting
Type checking
License
MIT License - see LICENSE file for details.
Related Projects
Typst - The Typst typesetting system
MCP Python SDK - Model Context Protocol SDK for Python
Claude Code - AI-powered coding assistant