Skip to main content
Glama
W1seGit

Typst Universe MCP Server

by W1seGit

Typst Universe MCP Server

npm version License: MIT

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_packages

Search for Typst packages by query, category, or kind

📦 get_package_details

Get detailed info about a specific package

📂 list_categories

List all available package categories

get_featured_packages

Get featured/popular packages

Related MCP server: Pub.dev MCP Server

Installation

npm install -g typst-universe-mcp

From source

git clone https://github.com/W1seGit/typst-universe-mcp.git
cd typst-universe-mcp
npm install
npm run build

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

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

Or if installed from source:

{
  "mcpServers": {
    "typst-universe": {
      "command": "node",
      "args": ["/path/to/typst-universe-mcp/dist/index.js"]
    }
  }
}

Other MCP Clients

The server uses stdio transport. Start it with:

npx typst-universe-mcp
# or
node /path/to/dist/index.js

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.

Returns a list of featured/popular packages. No parameters required.

Development

# Install dependencies
npm install

# Run in development mode
npm run dev

# Build for production
npm run build

# Run production build
npm start

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.

Available Tools

4 tools
get_package_detailsA

Get detailed information about a specific Typst package, including its description, authors, categories, repository link, import code, and version history.

ParametersJSON Schema
NameRequiredDescriptionDefault
packageNameYesThe exact name of the package (e.g., "cetz", "polylux", "fletcher")

TDQS

A3.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It describes what information is returned but does not address key behavioral aspects such as error handling (e.g., what happens if the package doesn't exist), rate limits, authentication needs, or whether it's a read-only operation. The description adds some value by listing the data fields, but misses critical operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, well-structured sentence that efficiently lists all key information points without redundancy. It is front-loaded with the main purpose and follows with specific details, making it easy to parse. Every part of the sentence adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (1 parameter, no output schema, no annotations), the description is adequate but incomplete. It covers the purpose and data returned, but lacks behavioral details (e.g., error cases) that would be important for an agent to use it correctly. Without annotations or output schema, the description should do more to compensate, but it only partially meets this need.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with the parameter 'packageName' fully documented in the schema. The description does not add any parameter-specific details beyond what the schema provides (e.g., it doesn't clarify format constraints or provide examples beyond the schema's examples). Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Get detailed information') and resource ('a specific Typst package'), with explicit listing of the information included (description, authors, categories, etc.). It distinguishes from sibling tools like 'get_featured_packages' (which lists packages) and 'search_packages' (which searches) by focusing on detailed metadata for a single package.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when detailed package metadata is needed, but does not explicitly state when to use this tool versus alternatives like 'search_packages' or 'list_categories'. It provides context by specifying the type of information returned, but lacks explicit guidance on exclusions or prerequisites.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_categoriesA

List all available package categories in Typst Universe.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A3.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. While it indicates this is a read operation ('List'), it doesn't mention any behavioral traits like whether results are paginated, sorted, cached, or if there are rate limits. For a tool with zero annotation coverage, this leaves significant gaps in understanding how it behaves.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that directly states the tool's purpose without any wasted words. It's perfectly front-loaded and appropriately sized for a simple list operation with no parameters.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (no parameters, no output schema, no annotations), the description is complete enough to understand the basic purpose. However, without annotations or output schema, it lacks details about return format, pagination, or other behavioral aspects that would help an agent use it effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters with 100% schema description coverage, so the schema already fully documents the input structure. The description appropriately doesn't add parameter information since none are needed, earning a baseline score of 4 for not introducing unnecessary complexity.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('List') and resource ('all available package categories in Typst Universe'), distinguishing it from sibling tools that focus on packages rather than categories. It provides a precise verb+resource combination that leaves no ambiguity about what the tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context by specifying 'all available package categories,' suggesting this is for browsing categories rather than searching packages. However, it doesn't explicitly state when to use this tool versus alternatives like get_featured_packages or search_packages, leaving some inference required for the agent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

search_packagesB

Search for Typst packages in the Typst Universe. You can search by query text, filter by category, and specify the kind (packages or templates).

ParametersJSON Schema
NameRequiredDescriptionDefault
queryNoSearch query text to find packages (e.g., "math", "diagram", "table")
kindNoType of items to search for. Defaults to "packages".packages
categoryNoFilter by category (e.g., "visualization", "math", "text")
limitNoMaximum number of results to return. Defaults to 20.

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions search capabilities but lacks details on critical behaviors: it doesn't specify if this is a read-only operation (implied but not stated), how results are returned (e.g., pagination, sorting), rate limits, authentication needs, or error handling. For a search tool with zero annotation coverage, this leaves significant gaps in understanding its operational traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized with two sentences that efficiently convey the tool's purpose and key parameters. It's front-loaded with the main action ('Search for Typst packages'), and the second sentence adds useful context without redundancy. Every sentence earns its place, though it could be slightly more structured (e.g., bullet points for parameters).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (search with filters), 100% schema coverage, and no output schema, the description is partially complete. It covers the basic purpose and parameters but lacks behavioral details (e.g., result format, pagination) and explicit usage guidelines vs. siblings. Without annotations or output schema, more context on what to expect from the search results would improve completeness for effective agent use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, providing clear details for all 4 parameters (e.g., 'query' for search text, 'kind' with enum and default, 'category' for filtering, 'limit' with default). The description adds minimal value beyond the schema by listing the parameters ('search by query text, filter by category, and specify the kind') but doesn't explain semantics like how 'query' interacts with 'category' or what 'limit' entails in practice. Baseline 3 is appropriate as the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Search for Typst packages') and resource ('Typst Universe'), making the purpose immediately understandable. It distinguishes from siblings like 'get_featured_packages' (which likely shows curated items) and 'get_package_details' (which retrieves specific package info) by emphasizing search functionality. However, it doesn't explicitly mention how it differs from 'list_categories' (which might list categories without searching).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage through phrases like 'You can search by query text, filter by category, and specify the kind,' suggesting when to use this tool for searching with filters. However, it doesn't provide explicit guidance on when to choose this over alternatives like 'get_featured_packages' (e.g., for curated vs. search-based results) or 'list_categories' (e.g., for browsing categories vs. searching within them). No exclusions or prerequisites are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 4 tool updates
    • First observedget_featured_packages
    • First observedget_package_details
    • First observedlist_categories
    • First observedsearch_packages

TDQS

A3.7/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a clearly distinct purpose with no overlap: get_featured_packages retrieves curated/popular packages, get_package_details provides in-depth information on a specific package, list_categories enumerates available categories, and search_packages enables filtered searching. An agent can easily distinguish between these functions without confusion.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern (get_featured_packages, get_package_details, list_categories, search_packages) with clear, descriptive verbs (get, list, search) and nouns (packages, categories). There are no deviations in style or convention.

Tool Count5/5

With 4 tools, this server is well-scoped for its purpose of interacting with the Typst Universe package repository. Each tool earns its place by covering essential operations: browsing featured packages, viewing details, exploring categories, and searching. This count avoids bloat while providing complete core functionality.

Completeness4/5

The tool set covers the core browsing and discovery workflows for a package repository (list, get details, search, filter by category), with no obvious dead ends. A minor gap exists in the lack of tools for package management actions like installation or version updates, but this is reasonable for a read-only discovery server focused on the Typst Universe.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Enables AI assistants to search, analyze, and retrieve detailed information about Dart and Flutter packages from pub.dev. Supports package discovery, version management, dependency analysis, and documentation access.
    6
    13
    5
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to fetch, explore, and analyze source code from any Python package on PyPI, including listing files, reading specific code, and searching packages across all published versions.
    MIT