Typst MCP Server
Provides access to Typst documentation through search, browsing, and reading capabilities, enabling assistance with Typst syntax, functions, and typesetting features.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Typst MCP Serverhow do I create a table with custom borders?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: microCMS Document MCP Server
Quickstart
Run the following command to add the Typst MCP server to your project-scope Claude Code configuration:
claude mcp add typst-mcp -s project -- uv run --with "git+https://github.com/FujishigeTemma/typst-mcp" typst-mcp serveOr manually add it to your .mcp.json configuration file:
{
"mcpServers": {
"typst-mcp": {
"type": "stdio",
"command": "uv",
"args": [
"run",
"--with",
"git+https://github.com/FujishigeTemma/typst-mcp"
"typst-mcp",
"serve"
],
"env": {}
},
}
}2. Start using Typst capabilities
Once configured, you can ask Claude Code to help you with Typst documentation. For example:
Add a Tabel of Contents to index.typExplain this Typst syntax: #set page(paper: "a4", margin: 2cm)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:
{
"name": "typst_search",
"arguments": {
"query": "table formatting"
}
}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:
{
"name": "typst_browse",
"arguments": {
"depth": 2,
"sub_directory": "reference"
}
}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:
{
"name": "typst_read",
"arguments": {
"path": "reference/layout/table.md"
}
}Development
Setting up development environment
git clone https://github.com/FujishigeTemma/typst-mcp.git
cd typst-mcp
uv sync --devRunning tests
uv run --frozen pytestCode formatting
uv run --frozen ruff format .
uv run --frozen ruff check . --fixType checking
uv run --frozen tyLicense
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
Available Tools
3 toolstypst_browseC
Browse the Typst documentation structure as a hierarchical tree
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Maximum depth to traverse (default: 0 for full depth) | |
| sub_directory | No | Subdirectory to explore (default: '.' for root) | . |
TDQS
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. It mentions the output format ('hierarchical tree') but doesn't describe what the tree contains, how it's structured, whether it's read-only, or any performance considerations like rate limits or data size. This leaves significant gaps for a tool that likely returns complex documentation data.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
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 redundant information. It's appropriately sized and front-loaded, with every word contributing to understanding the tool's function.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of browsing documentation as a hierarchical tree, no annotations, and no output schema, the description is incomplete. It doesn't explain what the tree output looks like, how to interpret it, or any behavioral traits, making it inadequate for an agent to use the tool effectively without trial and error.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already fully documents both parameters ('depth' and 'sub_directory') with descriptions and defaults. The description adds no additional parameter semantics beyond what the schema provides, meeting the baseline for high schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('browse') and resource ('Typst documentation structure') with the specific format 'as a hierarchical tree', which distinguishes it from typical file browsing. However, it doesn't explicitly differentiate from sibling tools like 'typst_read' or 'typst_search' in terms of purpose.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like 'typst_read' or 'typst_search'. It lacks context about use cases, prerequisites, or exclusions, leaving the agent to infer usage based on tool names alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
typst_readC
Read the content of a specific Typst documentation file
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative path to the documentation file |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden for behavioral disclosure. It states this is a read operation but doesn't clarify what 'read' entails—whether it returns raw content, formatted text, metadata, or error handling. For a tool with zero annotation coverage, this leaves significant gaps in understanding its behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, clear sentence that directly states the tool's function without any fluff. It's appropriately sized and front-loaded, with every word contributing to understanding the purpose.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the lack of annotations and output schema, the description is incomplete for a tool that reads documentation files. It doesn't explain what format the content is returned in, how errors are handled, or any limitations (e.g., file size, supported formats). For a read operation with no structured output documentation, this leaves the agent with insufficient context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema has 100% description coverage, with the 'path' parameter documented as 'Relative path to the documentation file'. The description adds no additional parameter semantics beyond what the schema already provides, so it meets the baseline for high schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Read') and resource ('Typst documentation file'), making the purpose immediately understandable. However, it doesn't differentiate from sibling tools like 'typst_browse' or 'typst_search', which likely also involve reading documentation content in different ways.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus its siblings ('typst_browse' and 'typst_search'). It doesn't mention prerequisites, alternatives, or exclusions, leaving the agent to infer usage context from tool names alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
typst_searchC
Search through Typst documentation for specific topics, functions, or syntax
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search term or phrase to find in Typst documentation |
TDQS
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 states the tool searches documentation but doesn't describe how results are returned (e.g., format, pagination), performance traits (e.g., rate limits), or any constraints (e.g., search scope, authentication needs). This leaves significant gaps for a tool with no annotation coverage.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
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 unnecessary words. It is appropriately sized and front-loaded, with every part contributing to clarity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the lack of annotations and output schema, the description is incomplete. It doesn't explain what the search returns (e.g., links, summaries), how to interpret results, or any behavioral nuances. For a search tool with no structured data beyond the input schema, more context is needed to guide effective use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, with the single parameter 'query' documented as a search term or phrase. The description adds no additional meaning beyond this, such as syntax examples or search behavior details. With high schema coverage, the baseline score of 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.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose as searching through Typst documentation for topics, functions, or syntax, providing a specific verb ('search') and resource ('Typst documentation'). However, it doesn't explicitly differentiate from sibling tools like 'typst_browse' or 'typst_read', which likely have related but distinct purposes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus its siblings ('typst_browse' and 'typst_read'), nor does it mention any prerequisites, exclusions, or alternative scenarios. Usage is implied through the action of searching, but explicit context is lacking.
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. Dates show when Glama detected each change.
3 tool updates
v1.0.0- First observed
typst_browse - First observed
typst_read - First observed
typst_search
TDQS
Each tool has a clearly distinct purpose: browse for exploring the documentation hierarchy, read for accessing specific file content, and search for finding information by query. There is no overlap in functionality, making tool selection straightforward for an agent.
All tool names follow a consistent 'typst_verb' pattern (typst_browse, typst_read, typst_search), using snake_case and clear action verbs. This predictability enhances usability and reduces cognitive load.
With 3 tools, the server is well-scoped for its purpose of interacting with Typst documentation. Each tool serves a distinct and essential function (browse, read, search), and there are no extraneous tools, making the set efficient and focused.
The tool surface fully covers the core needs for documentation interaction: browsing the structure, reading specific content, and searching for information. This provides a complete workflow without gaps, allowing agents to navigate and retrieve documentation effectively.
Maintenance
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
Search and read Rust documentation for the standard library and any crate on crates.io
Search and query nTop's knowledge base and engineering guides from AI applications.
Search, read, and ask the Nyuchi docs (docs.nyuchi.com); send feedback or raise issues.
Docs Q&A: search 169 data and AI guides, fetch any page as markdown. Read-only, keyless.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides tools for retrieving and processing documentation through vector search, enabling AI assistants to augment their responses with relevant documentation context.7221MIT
- AlicenseAqualityAmaintenanceProvides access to microCMS documentation, enabling AI assistants to search and retrieve the latest document content.31668MIT
- AlicenseAqualityAmaintenanceProvides AI agents with access to the Colyseus documentation, enabling searching, reading, and listing of documentation pages.314MIT
- AlicenseAqualityCmaintenanceEnables AI models to search, browse, and retrieve full content of OpenCode documentation pages.3185MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/FujishigeTemma/typst-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server