Skip to main content
Glama

Unsliced MCP

Give an AI assistant a local tool for turning Markdown or HTML into searchable PDFs. Long tables break only between complete rows and repeat their headers. Chinese text can be searched and copied.

简体中文 · Use Unsliced in a browser

Use the released tool

Requires Node.js 22 or newer. Add unsliced as a local stdio MCP server:

{
  "mcpServers": {
    "unsliced": {
      "command": "npx",
      "args": ["-y", "unsliced-pdf-mcp"]
    }
  }
}

Ask your assistant to create a PDF and provide Markdown or HTML. Files are saved locally, by default under Documents/Unsliced. Use UNSLICED_OUTPUT_DIR to choose another folder. Remote images are not fetched; embed them as data URLs instead. Chromium may be downloaded on the first run if no suitable browser is installed.

Related MCP server: mcp-server-pdfnoodle

Development

Build a local package, run acceptance, or update the pinned engine.

The shared pagination engine is maintained in Unsliced. This project uses a fixed, built copy of the engine, not a second source implementation.

MIT and BreakFlow copyright · Font license (OFL)

Available Tools

1 tool
create_pdf用 Unsliced 生成 PDFA

当用户需要可搜索、可复制、自动分页的 PDF 时使用。必须把完整原稿传入 markdown 或 html 的其中一个字段,不要缩写、删减或改写,再给出 filename。默认 A4。普通报告用 Markdown。涉及流程图、卡片、复杂版面或内联 SVG 时,请提交包含样式和图形的完整 HTML。图片请用内嵌 data URL。HTML 可用 data-unsliced-root 指定排版容器。返回本机文件路径和中文排版体检。请直接调用本工具,避免自行写 jsPDF 或 html2canvas。

Inputs: filename (required), html, markdown, paper_size.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 1 tool

    Disambiguation5/5

    There is only one tool, so an agent cannot misselect between competing options. Its purpose — rendering complete Markdown/HTML source into a searchable, paginated PDF — is unambiguous.

    Naming Consistency5/5

    The single name create_pdf follows a clean verb_noun snake_case convention. There are no competing names or style mixes to create inconsistency.

    Tool Count3/5

    A one-tool surface is thin, and the rubric's typical sweet spot is 3-15 tools. The tool is substantive rather than trivial and the narrow scope keeps it focused, but the set offers no granularity at all.

    Completeness3/5

    Core conversion is covered (Markdown and HTML input, embedded images, layout root, filename, returned local path plus a typography check). However, there are no exposed operations or parameters for page size beyond the A4 default, margins, headers/footers, page numbering, or previewing and validating before writing a file, which leaves some real user needs as dead ends.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers