# TruePath PDF [Health: Active]

**Category:** 📂 File Systems  
**Repository:** https://github.com/JoyTruepath/truepath-pdf-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 424  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/truepath-pdf

## Description
Local-only PDF tools for AI — extract text, search, split/merge, render pages. Files never leave.

## Tools
Capabilities this server exposes over MCP:

- **get_info** — Return page count, first-page size, encryption status, and embedded metadata (title, author, dates, producer, etc.) for a local PDF.
- **extract_text** — Extract plain text from a local PDF. Optionally restrict to a page range like "1-5" or "1,3,5-7". Output is split by page with === Page N === markers.
- **search** — Find a substring across the whole PDF. Returns each hit's page, offset within the page, and a snippet of surrounding text. Use for grep-style discovery before extracting full text.
- **split** — Split a PDF into multiple PDFs by page ranges. Each range becomes one output file written into outputDir.
- **merge** — Combine two or more PDFs into one, preserving page order. Outputs to a caller-specified path.
- **pages** — One-pass page editor. Delete pages, rotate specific pages by 90°/180°/270°, and reorder the result — in any combination. Page numbers in `rotate` refer to the SOURCE PDF; `reorder` refers to post-delete positions.
- **to_images** — Rasterize PDF pages as PNG or JPG at a chosen DPI. Useful for previews, OCR pipelines, or feeding pages back to a vision model.
- **extract_images** — Pull embedded images out of a PDF and write each as a PNG. Unsupported pixel layouts (e.g. CMYK, palettized) are skipped and reported.
- **open_in_truepath** — Hand a local PDF to the TruePath PDF Mac app via its truepath:// URL scheme so the user can finish work in a GUI (annotate, sign, fill forms, redact). The bridge is fire-and-forget — the app handles opening from there. Requires the app installed (https://joytruepath.com/truepath-pdf).

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

```json
"mcpServers": {
  "truepath-pdf": {
    "command": "npx",
    "args": ["-y","@truepathpdf/mcp-server"]
  }
}
```

## Documentation

## What TruePath PDF does

TruePath PDF exposes nine local PDF operations through MCP. The tools cover document inspection, text discovery and extraction, structural editing, rendering, embedded-image extraction, and handoff to the TruePath PDF Mac app. Input and output paths refer to files on the local machine.

The server is designed for workflows where PDF contents should remain on the Mac. It runs without network communication, telemetry, analytics, or phone-home behavior. Its available tools work offline and do not require a license key.

## How it works

An MCP client invokes a tool with a local PDF path and operation-specific arguments. `get_info` reports page count, first-page dimensions, whether page sizes are consistent, encryption status, and embedded metadata such as title, author, dates, producer, and PDF version.

For content workflows, `search` finds a substring throughout the document and returns page numbers, offsets, and nearby text. It can be used to locate relevant pages before calling `extract_text`, which returns plain text grouped by page. Page selection supports individual pages, ranges, and comma-separated combinations such as `1,3,5-7`.

Editing tools write new files rather than requiring a GUI. `split` creates one output PDF per requested range, while `merge` combines multiple PDFs in the supplied order. `pages` can delete, rotate, and reorder pages in one operation. `to_images` rasterizes selected pages to PNG or JPG at a chosen DPI, and `extract_images` writes embedded images as PNG files.

## Setup and configuration

Node.js 22.13 or newer is required. Run the package without a global install:

```bash
npx -y @truepathpdf/mcp-server
```

Alternatively, install it globally with `npm install -g @truepathpdf/mcp-server` and run `truepath-pdf-mcp`.

Claude Desktop can launch it through an MCP server entry using `npx` and the package name:

```json
{
  "mcpServers": {
    "truepath-pdf": {
      "command": "npx",
      "args": ["-y", "@truepathpdf/mcp-server"]
    }
  }
}
```

Restart Claude Desktop after changing its configuration. The server can also be used with Cursor and other MCP-aware clients.

## Tools and capabilities

- `get_info`: Inspect page count, dimensions, encryption, and embedded metadata.
- `extract_text`: Read all pages or a selected page range as plain text.
- `search`: Perform substring discovery with page, offset, and context details.
- `split` and `merge`: Create page-range outputs or combine PDFs in order.
- `pages`: Delete, rotate, and reorder pages in a single pass.
- `to_images`: Render pages as PNG or JPG at a selected DPI.
- `extract_images`: Export supported embedded images as PNG files.
- `open_in_truepath`: Send a local PDF to the TruePath PDF Mac app through its URL scheme.

`open_in_truepath` is a fire-and-forget handoff. The Mac app must be installed and must support the `truepath://` handler; the required handler was introduced in app version 1.0.1. The tool can use a custom scheme for re-branded engine builds.

## Limitations and notes

`extract_images` skips unsupported pixel layouts, including CMYK and palettized images, and reports those skips. The GUI handoff does not itself perform annotation, signing, form filling, or redaction; it opens the file in the Mac app so the user can complete those tasks there. The MCP shell is licensed under MIT.

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

