Unofficial PDF toolkit (merge/split/compress/OCR/convert/watermark/protect/...) via iLoveAPI.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
18 PDF operations for Claude Code, Claude Desktop, and any MCP client β via iLoveAPI.
Install Β· Tools Β· Recipes Β· Architecture Β· Security Β· FAQ
Disclaimer.
pdf-toolkit-mcpis an independent, community-built open-source client. It is not affiliated with, endorsed, sponsored, or certified by iLovePDF SL. The project talks to the public iLoveAPI REST service using your project credentials β nothing is proxied, resold, or relicensed. "iLovePDF" and "iLoveAPI" are trademarks of iLovePDF SL; this project does not claim ownership of those marks.
| Manual iLoveAPI | Raw @ilovepdf/ilovepdf-nodejs | pdf-toolkit-mcp | |
|---|---|---|---|
| Callable from Claude Code / Claude Desktop / any MCP client | β | β | β |
| JWT signing + 5-step lifecycle handled for you | β | β | β |
| Validated Zod schemas (no bad inputs reach the API) | β | β | β |
| Path sandboxing against traversal | β | β | β |
Structured error codes (RATE_LIMITED, PLAN_LIMIT, β¦) | β | partial | β |
| Progress notifications during long OCR tasks | β | β | β |
| Bundled Claude Code skill with multi-step pipelines | β | β | β |
Zero-setup install via npx -y | β | β | β |
Free for personal use. iLoveAPI's free tier grants ~2,500 credits / month; this MCP itself is MIT-licensed and costs nothing.
After installation, just talk to Claude. The model figures out which tools to call:
Project public key and Project secret key.Restart Claude Code and all 18 tools appear in the picker. Verify with /mcp β you should see pdf-toolkit: connected (18 tools).
pdf-workflow skill)The plugin auto-configures the MCP server and installs a skill that teaches Claude five canonical multi-step PDF pipelines (see Workflow recipes).
claude_desktop_config.json)Edit claude_desktop_config.json (%APPDATA%\Claude\ on Windows, ~/Library/Application Support/Claude/ on macOS):
Restart Claude Desktop β the π icon should show pdf-toolkit connected.
The server speaks the standard MCP JSON-RPC 2.0 framing over stdio. Wire it into Cursor, Windsurf, mcphub, mcp-inspector, or anything else that speaks MCP.
.mcpb bundle (drag-and-drop)Grab pdf-toolkit-mcp-<version>.mcpb from the latest GitHub Release and drag it into Claude Desktop β Settings β Extensions. Claude will prompt for your iLoveAPI keys via the user_config section of the bundled manifest. No npx, no Node, no terminal.
Bundles ship unsigned (no publisher certificate yet). macOS Gatekeeper / Windows SmartScreen may warn on first install; verify the SHA-256 in the release notes before accepting.
The server is indexed on the official MCP Registry under io.github.EigenCharlie/pdf-toolkit-mcp. Clients that browse the registry (Claude Desktop extension pane, VS Code MCP picker, mcphub, etc.) can install it without any manual config β they'll point at the npm package and prompt for the two iLoveAPI env vars automatically.
All 18 tools are exposed with strict Zod schemas, additionalProperties: false, and return both a text summary and a file:// resource URI so the client can surface the output.
| Tool | What it does | Key inputs |
|---|---|---|
merge_pdf | Combine β₯ 2 PDFs in order | input_files[], output_path? |
split_pdf | Split by page ranges ("1-3,5-7") or fixed chunk size | input_file, ranges?, fixed_range? |
extract_pdf_pages | Keep a specific subset of pages | input_file, pages ("1,3,5-9") |
| Tool | Output | Notes |
|---|---|---|
pdf_to_word | .docx | Scanned PDFs β run ocr_pdf first for best results |
pdf_to_excel | .xlsx | Works best on tabular source PDFs |
pdf_to_powerpoint | .pptx | One slide per PDF page |
pdf_to_jpg | .zip of .jpg | mode: "pages" renders pages; "extract" pulls embedded images |
| Tool | Accepts | Notes |
|---|---|---|
office_to_pdf | .doc, .docx, .xls, .xlsx, .ppt, .pptx | Server-side rendering |
html_to_pdf | .html, .htm | Local HTML only; external assets may not resolve |
image_to_pdf | .jpg, .jpeg, .png | One image per page, preserves order |
| Tool | What it does | Key inputs |
|---|---|---|
rotate_pdf | Rotate pages 90 / 180 / 270Β° clockwise | rotation, pages? (default: all) |
add_page_numbers | Stamp numbered footer/header | starting_number, vertical_position, horizontal_position |
add_watermark | Text or image watermark | mode: "text" + text, OR mode: "image" + image_file |
| Tool | What it does | Key inputs |
|---|---|---|
unlock_pdf | Remove known password | input_file, password |
protect_pdf | Add password | input_file, password |
| Tool | What it does | Notes |
|---|---|---|
repair_pdf | Attempt structural repair on damaged PDFs | Useful before further processing |
ocr_pdf | Run OCR to make scans searchable | languages[] (e.g. ["eng"], ["spa"], ["eng","spa"]). β± Can exceed 60s on image-heavy PDFs |
All tools accept absolute or CWD-relative paths for
input_file(s)and an optionaloutput_path(file or directory). Defaults place the result next to the first input with a timestamped name.
The bundled pdf-workflow skill (skills/pdf-workflow/SKILL.md) teaches Claude five canonical multi-step pipelines. You can also run these manually β just describe the end state and Claude chains the tools for you.
src/api/tasks.ts)The server emits MCP notifications/progress at each boundary so your client can render a live progress bar for slow operations (OCR, large merges).
| Variable | Required | Default | Description |
|---|---|---|---|
ILOVEAPI_PROJECT_PUBLIC_KEY | β | β | Project public key from developer.ilovepdf.com |
ILOVEAPI_PROJECT_SECRET_KEY | β | β | Project secret key. Never logged. Used for local JWT signing. |
ILOVEAPI_SANDBOX_ROOT | β | β | Absolute path. When set, all input/output paths must resolve inside this directory β traversal attempts throw PATH_TRAVERSAL. |
PDF_TOOLKIT_DEBUG | β | β | Set to 1 to emit verbose stderr logs (request shape, phase timings). Secrets never logged. |
Every failure surfaces a PdfToolkitError with a stable machine-readable code:
| Code | Trigger | What to tell the user |
|---|---|---|
MISSING_CREDENTIALS | Env vars not set | Point them at developer.ilovepdf.com |
INVALID_INPUT | HTTP 400 / Zod parse failure | Fix the arguments |
AUTH_FAILED | HTTP 401 | Regenerate the project keys |
PLAN_LIMIT | HTTP 402 | Free tier exhausted or tool not in plan |
NOT_FOUND | HTTP 404 | Input file or task missing |
RATE_LIMITED | HTTP 429 | Back off and retry |
TASK_LIMIT | SDK TaskLimit error | Too many concurrent tasks |
PATH_TRAVERSAL | Path escapes ILOVEAPI_SANDBOX_ROOT | Reject the request |
API_ERROR | Unmapped iLoveAPI error | Check data.http_status + data.iloveapi_code |
pdf-toolkit-mcp is designed to be safe to install on a developer machine:
api.ilovepdf.com via the official SDK.console.log. JSON-RPC over stdio would corrupt on any stray stdout write, so every log line goes through process.stderr.@ilovepdf/ilovepdf-nodejs SDK self-signs JWTs with your secret key β no secret leaves the machine.ILOVEAPI_SANDBOX_ROOT to constrain the server to a single directory tree; any path resolving outside throws before the API is ever called.html_to_pdf rejects .exe; image_to_pdf only accepts common raster formats, etc.| Command | What it does |
|---|---|
npm run build | Compile TypeScript β dist/ |
npm run dev | Watch-mode build |
npm run typecheck | tsc --noEmit β fast error surface |
npm run lint | ESLint on src/ + tests/ |
npm test | Vitest unit suite (no network) |
npm run test:integration | Real iLoveAPI calls (requires creds) |
npm run inspect | Launch MCP Inspector against the local build |
npm run build.PDF_TOOLKIT_DEBUG=1 in your shell before launching Claude Code for verbose stderr.claude mcp logs pdf-toolkit.client, paths, errors, and tools.merge. Fully mocked, no network. Run with npm test.tests/integration/smoke.test.ts spins up two minimal valid PDFs and exercises a real merge_pdf end-to-end. Gated on ILOVEAPI_*_KEY env vars; automatically skipped in PR CI for security.lint β typecheck β build β test on:
ubuntu-latest, windows-latest18, 20, 22Publishing is automated on tag push:
The publish workflow then:
--access public --provenance (supply-chain attestation).Repo secret required: NPM_TOKEN (npm automation token).
.mcpb) for Claude Desktop, marketplace manifest, MCP Registry submission (mcpName)anthropics/claude-plugins-official, publish an image-tools companion packHave a feature request? Open an issue.
Is this legal / safe / allowed by iLovePDF? Yes. It's a thin open-source client that uses your credentials β nothing is resold, relicensed, or proxied. The iLoveAPI Terms of Service explicitly permit open-source libraries using user-provided keys (several community SDKs have existed for years). This project does not ship any keys, does not use "iLovePDF"/"iLoveAPI" in its package name, and carries the required disclaimer.
Does it cost money? iLoveAPI offers ~2,500 credits per month free (enough for thousands of small ops). Heavier workloads need a paid iLoveAPI plan. This MCP itself is MIT and free forever.
Does it work offline? No. iLoveAPI is cloud-only, so every tool call requires internet access.
Can I pin a specific version?
Yes: claude mcp add pdf-toolkit -- npx -y pdf-toolkit-mcp@0.1.0.
Can I self-host?
Yes. Clone the repo, npm run build, and point your client at node ./dist/index.js. The server is entirely stateless.
What happens if iLoveAPI is down?
The tool returns a PdfToolkitError with code: "API_ERROR" and data.http_status. Claude can retry with exponential backoff on your behalf.
Can I use this without Claude? Yes β any MCP-compatible client works: Cursor, Windsurf, Zed, MCP Inspector, custom clients. The server is 100% spec-compliant.
Contributions welcome! Small checklist before opening a PR:
npm run lint && npm run typecheck && npm test β all green.runTask β writeOutputAndReport).Bug reports are even more welcome β include the tool name, the arguments, and (if safe to share) the stderr output.
Released under the MIT License Β© 2026 Carlos.
"iLovePDF" and "iLoveAPI" are trademarks of iLovePDF SL. This project is an independent, community-built client and is not affiliated with, endorsed by, sponsored by, or certified by iLovePDF SL. The package name intentionally avoids both marks.
@modelcontextprotocol/sdk, Zod, Vitest, ESLint β the toolchain this project stands on.Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/pdf-toolkit-mcp)<a href="https://allmcps.com/mcp/pdf-toolkit-mcp"><img src="https://allmcps.com/api/badge/pdf-toolkit-mcp?style=directory" alt="Pdf Toolkit Mcp on AllMCPs" /></a>