unsliced
# 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.
[简体中文](README.zh-CN.md) · [Use Unsliced in a browser](https://harrythex42.github.io/unsliced-web/)
## Use the released tool
Requires Node.js 22 or newer. Add `unsliced` as a local **stdio** MCP server:
```json
{
"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.
## Development
[Build a local package, run acceptance, or update the pinned engine](https://github.com/harrythex42/unsliced-mcp/blob/main/docs/development.md).
The shared pagination engine is maintained in [Unsliced](https://github.com/harrythex42/Unsliced). This project uses a fixed, built copy of the engine, not a second source implementation.
[MIT and BreakFlow copyright](LICENSE) · [Font license (OFL)](engine/assets/fonts/OFL.txt)
TDQS
Scored across 1 tool
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.
The single name create_pdf follows a clean verb_noun snake_case convention. There are no competing names or style mixes to create inconsistency.
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.
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.