# Unsliced

> Unsliced is an open-source MCP server for files and documents. Local MCP server that turns Markdown or HTML into searchable PDFs without splitting tables. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Windows, Linux
- **Repository:** https://github.com/harrythex42/unsliced
- **MCP Registry name:** io.github.harrythex42/unsliced
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-11-23

## About

Unsliced plans page breaks across the whole document rather than filling one page at a time. Tables break only between complete rows and repeat their header on continuation pages, while diagrams, cards and images are kept whole whenever they fit.

It runs locally as a stdio MCP server launched through npx, so it works with any MCP client that can start a local process. The output contains real selectable text rather than screenshots, and Chinese text is supported with a bundled font.

It suits people who generate reports, invoices or documentation with an AI assistant and need the printed or exported PDF to look clean across page boundaries.

## Features

- **Whole-document page breaks:** Chooses breaks across the entire document by weighing the cost of each possible layout.
- **Table-aware splitting:** Splits tables only between complete rows and repeats the header on each continuation page.
- **Keeps visuals intact:** Holds diagrams, cards and images on one page when they fit, and keeps headings with the content that follows.
- **Searchable PDF output:** Produces PDFs with real text that can be searched and copied.
- **Chinese font support:** Includes a bundled font so Chinese text renders without extra setup.

## Good for

- Export a Markdown report from an AI assistant as a PDF without cut-off table rows
- Turn HTML pages with diagrams into print-ready PDFs that keep figures whole
- Produce searchable PDF invoices or reports that stay compact across pages
- Generate bilingual English and Chinese PDF documents from assistant output

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add unsliced -- npx -y unsliced-pdf-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

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

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

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

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add unsliced -- npx -y unsliced-pdf-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.unsliced]
command = "npx"
args = ["-y", "unsliced-pdf-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

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

Or run: gemini mcp add -s user unsliced npx -- -y unsliced-pdf-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

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

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

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

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

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

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "unsliced": {
      "command": "npx",
      "args": [
        "-y",
        "unsliced-pdf-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

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

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

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

## FAQ

### How do I install Unsliced?

Install Node.js 22 or newer, then add a local stdio MCP server that launches with npx -y unsliced-pdf-mcp. Setup snippets are provided for Claude Desktop, Cursor and OpenCode.

### Where are the generated PDFs saved?

By default PDF files go to Documents/Unsliced. Source archiving is off by default and can be enabled with the UNSLICED_KEEP_SOURCE=1 environment variable.

### Does the PDF contain selectable text?

Yes. The output uses real text, so it can be searched and copied, unlike raster-slice exports.

### Is Unsliced free?

Yes. Unsliced is open source, so you can use and self-host it for free.

### How do I add Unsliced to Claude Code?

Run this command in your terminal: claude mcp add unsliced -- npx -y unsliced-pdf-mcp

### What are the best alternatives to Unsliced?

The closest alternatives to Unsliced are MintPDF, MCP Pdf, Pdf It, Document Parser and Markdown.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [MintPDF](https://ai-powered.com/mcp/mintpdf): MintPDF is a freemium MCP server for files and documents.
- [MCP Pdf](https://ai-powered.com/mcp/mcp-pdf): MCP Pdf is an open-source MCP server for files and documents.
- [Pdf It](https://ai-powered.com/mcp/pdf-it): Pdf It is an open-source MCP server for files and documents.
- [Document Parser](https://ai-powered.com/mcp/document-parser): Document Parser is a freemium MCP server for files and documents.
- [Markdown](https://ai-powered.com/mcp/markdown-4): Markdown is an open-source MCP server for files and documents.
- [PDF Generator](https://ai-powered.com/mcp/pdf-generator): PDF Generator is an open-source MCP server for files and documents.
- [PDF Card MCP](https://ai-powered.com/mcp/pdf-card-mcp): PDF Card MCP is an open-source MCP server for files and documents.
- [Markdown Formatter](https://ai-powered.com/mcp/markdown-formatter): Markdown Formatter is an open-source MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/unsliced
