# pdf-toolkit-mcp [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/EigenCharlie/pdf-toolkit-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 278  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/pdf-toolkit-mcp

## Description
Unofficial PDF toolkit (merge/split/compress/OCR/convert/watermark/protect/...) via iLoveAPI.

## Tools
Capabilities this server exposes over MCP:

- **merge_pdf** — Merge two or more PDF files into a single PDF, preserving order. Outputs a .pdf file on disk and returns its path.
- **split_pdf** — Split a PDF into multiple PDFs by page ranges (e.g. "1-3,5-7") or into fixed-size chunks. Returns a .zip archive containing the resulting PDFs.
- **compress_pdf** — Reduce the file size of a PDF. Choose compression_level "low", "recommended" (default), or "extreme". Outputs a .pdf file on disk and returns its path.
- **pdf_to_word** — Convert a PDF to an editable Microsoft Word .docx document. Conversion quality depends on the source (scanned PDFs produce poor results; use ocr_pdf first if needed).
- **pdf_to_excel** — Convert a PDF to a Microsoft Excel .xlsx spreadsheet. Works best when the source PDF contains clear tabular data; non-tabular PDFs may produce messy results.
- **pdf_to_powerpoint** — Convert a PDF to a Microsoft PowerPoint .pptx presentation. Each PDF page becomes an editable slide; conversion quality depends on the source.
- **pdf_to_jpg** — Convert a PDF to JPG images. In "pages" mode (default) each page becomes a JPG; in "extract" mode only embedded images are pulled out. Returns a .zip archive of the images.
- **office_to_pdf** — Convert a Microsoft Office document (Word, Excel, or PowerPoint) to a PDF. Accepts .doc, .docx, .xls, .xlsx, .ppt, and .pptx files.
- **html_to_pdf** — Convert a local HTML file (.html or .htm) to a PDF. The HTML is rendered server-side; external assets referenced by the file may not be fetched.
- **image_to_pdf** — Combine one or more images (.jpg, .jpeg, .png) into a single PDF, one image per page, in the order provided.
- **rotate_pdf** — Rotate pages in a PDF by 90, 180, or 270 degrees clockwise. Target specific pages with "pages" (e.g. "1,3,5" or "1-5"), or rotate all pages by default.
- **add_page_numbers** — Stamp page numbers onto a PDF. Configure starting number, which pages to number, and placement (top/bottom + left/center/right).
- **extract_pdf_pages** — Extract a subset of pages from a PDF into a new PDF. Specify pages as a list or range, e.g. "1,3,5-7".
- **unlock_pdf** — Remove password protection from a PDF. Requires the correct password. Produces an unprotected .pdf file on disk.
- **protect_pdf** — Add password protection to a PDF. Anyone opening the output will need the supplied password.
- **add_watermark** — Stamp a text or image watermark onto every page of a PDF. For mode="text", provide `text`. For mode="image", provide `image_file` (.jpg/.jpeg/.png). Tune placement, rotation, and opacity as needed.
- **repair_pdf** — Attempt to repair a damaged or malformed PDF. Useful for scanned PDFs that fail to open or render correctly in some readers. Produces a .pdf file on disk.
- **ocr_pdf** — Run OCR on a PDF to make scanned text selectable/searchable. Accepts one or more language codes (e.g. "eng", "spa"). Large or image-heavy PDFs can take more than 60 seconds.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "pdf-toolkit-mcp": {
    "command": "npx",
    "args": ["-y","pdf-toolkit-mcp"],
    "env": {
      "ILOVEAPI_PROJECT_PUBLIC_KEY": "",
      "ILOVEAPI_PROJECT_SECRET_KEY": ""
    }
  }
}
```

**Requires environment variables:** `ILOVEAPI_PROJECT_PUBLIC_KEY`, `ILOVEAPI_PROJECT_SECRET_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What pdf-toolkit-mcp does

The pdf-toolkit-mcp MCP server gives an MCP-compatible agent a structured interface for common PDF workflows. It connects to the public iLoveAPI REST service using the project credentials you provide, rather than routing requests through a separate hosted proxy. The package is an independent, community-built client and is not affiliated with iLovePDF SL.

Its catalog covers 18 operations. These include merging documents, splitting by ranges or fixed chunks, extracting pages, converting between PDF and office formats, rendering PDFs to JPG, converting HTML or images to PDF, rotating pages, adding page numbers, applying text or image watermarks, unlocking and protecting files, repairing damaged PDFs, running OCR, and compressing output.

## How it works

The pdf-toolkit-mcp MCP server communicates over standard MCP JSON-RPC framing on stdio. An MCP client starts the package, then discovers the available tools and supplies validated arguments. Each tool uses strict schemas that reject unsupported properties and malformed inputs before the request reaches iLoveAPI.

For an operation, the server handles the API authentication and multi-step job lifecycle, uploads the selected input, retrieves the result, and writes the output to the requested location. Responses include a human-readable text result and a `file://` resource URI so clients can present the generated file. Local path handling includes sandboxing intended to prevent directory traversal.

Long-running OCR work can emit progress notifications. Multi-operation workflows can therefore be composed by the agent, such as merging files, compressing the result, and then protecting it with a password.

## Setup and configuration

Install Node.js 18 or newer and create an iLoveAPI project. The server requires these environment variables:

- `ILOVEAPI_PROJECT_PUBLIC_KEY`
- `ILOVEAPI_PROJECT_SECRET_KEY`

The package can be started with `npx -y pdf-toolkit-mcp`. In Claude Code, add it with `claude mcp add pdf-toolkit -- npx -y pdf-toolkit-mcp`. Claude Desktop can define the same command and environment values in `claude_desktop_config.json`. Other MCP clients that support stdio can launch the command directly.

The repository also documents a Claude Code plugin, a Claude Desktop `.mcpb` bundle, and installation through the MCP Registry. The plugin includes a `pdf-workflow` skill for five documented multi-step PDF pipelines. Bundle installations may trigger operating-system warnings because the releases are unsigned.

## Tools and capabilities

The pdf-toolkit-mcp catalog groups tools into several practical areas:

- Organization: merge PDFs, split by page ranges or chunk size, and extract selected pages.
- Conversion: create Word, Excel, PowerPoint, or JPG output from PDFs; convert office files, local HTML, or images to PDF.
- Editing: rotate pages, add numbered headers or footers, and apply text or image watermarks.
- Security: remove a known password or add password protection.
- Repair and OCR: attempt structural repair and make scanned documents searchable with selected languages.
- Compression: reduce PDF size using the documented compression workflow.

Inputs include local file paths, page specifications, output paths, passwords, watermark settings, and OCR language lists where applicable. The schemas are exposed to the MCP client, so an agent can select tools and arguments from their declared interfaces.

## Limitations and notes

The service depends on valid iLoveAPI project credentials, network access, and the limits of the selected iLoveAPI plan.

HTML conversion accepts local HTML files, but external assets may not resolve. PDF-to-Word conversion is expected to work best after OCR when the source is scanned, while PDF-to-Excel is best suited to tabular documents. Unlocking requires the existing password, and repair is an attempted recovery rather than a guarantee for every damaged file.

The package is MIT-licensed. Its use of iLoveAPI does not transfer ownership of the iLovePDF or iLoveAPI trademarks, and the project does not claim endorsement or certification by iLovePDF SL.

_Full upstream README: https://allmcps.com/mcp/pdf-toolkit-mcp/readme_

