Provides access to the Typst Universe package registry, enabling search for packages and templates, retrieval of package details including authors and version history, browsing categories, and discovering featured packages in the Typst ecosystem.
Typst Universe MCP Server
An MCP (Model Context Protocol) server that provides AI assistants with access to the Typst Universe package registry. This allows AI models to search for packages, get package details, and explore the Typst ecosystem.
Features
This MCP server provides the following tools:
Tool | Description |
π
| Search for Typst packages by query, category, or kind |
π¦
| Get detailed info about a specific package |
π
| List all available package categories |
β
| Get featured/popular packages |
Installation
From npm (recommended)
From source
Configuration
Claude Desktop
Add this to your Claude Desktop config file:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Or if installed from source:
Other MCP Clients
The server uses stdio transport. Start it with:
Usage Examples
Once connected to an AI assistant, you can ask:
"Search for Typst packages for creating diagrams"
"Get details about the cetz package"
"What categories are available in Typst Universe?"
"Show me featured Typst packages"
"Find math-related Typst packages"
"Search for presentation templates"
Tool Details
search_packages
Search for packages in Typst Universe.
Parameters:
query(string, optional): Search text (e.g., "math", "diagram")kind(string, optional):"packages"or"templates"(default:"packages")category(string, optional): Filter by category (e.g., "visualization", "math")limit(number, optional): Max results to return (default: 20)
get_package_details
Get detailed information about a specific package.
Parameters:
packageName(string, required): The exact package name (e.g., "cetz", "polylux")
Returns: Description, authors, categories, repository link, import code, and version history.
list_categories
Lists all available package categories in Typst Universe. No parameters required.
get_featured_packages
Returns a list of featured/popular packages. No parameters required.
Development
Requirements
Node.js >= 18.0.0
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Disclaimer
This project is not affiliated with Typst GmbH. It uses web scraping to access publicly available information from Typst Universe.