Pdfops CLI logo

Pdfops CLI

MCP access to 31 JSON-based PDF tools for reading, editing, OCR, forms, security, and document creation.

Install Pdfops CLI

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "pdfops-cli": {
      "command": "npx",
      "args": [
        "-y",
        "pdfops-cli"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y pdfops-cli

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

pdfops-cli MCP server exposes 31 PDF operations through a single JSON-based MCP interface, including text extraction, tables, OCR, redaction, forms, signatures, page manipulation, and document inspection. It runs through the pdfops CLI, with relative paths resolved from the working directory and an optional root directory to restrict file access. Reach for it when an agent needs local PDF processing without Python or separate PDF libraries; OCR additionally requires Tesseract. The same binary also works as a standalone CLI and Rust library.

Use cases

  • Extract tables from local PDFs as Markdown or CSV
  • Redact matching text and verify its removal
  • Scan documents for scripts, attachments, and hidden content
  • Fill PDF forms and apply digital signatures
  • Merge, split, reorder, or render document pages

Key features

  • 31 JSON-based PDF tools
  • Text, table, layout, image, and OCR extraction
  • Verified redaction and document sanitization
  • Form filling, encryption, decryption, and signatures
  • Page editing, stamping, annotation, and compression
  • Optional directory confinement with --root

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

9/9 checks healthy over the last 33d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 17d ago via OSV.dev · pdfops-cli (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads73Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How Pdfops CLI works

What pdfops-cli does

pdfops-cli gives MCP clients access to a broad set of local PDF operations through the pdfops command. Each tool accepts JSON-compatible arguments and returns one JSON document, making the interface suitable for agent workflows that need structured results rather than terminal-oriented output.

The tool set covers document inspection, text and table extraction, page rendering, OCR, annotations, signatures, forms, metadata, encryption, sanitization, and PDF creation. It can also combine, split, reorder, rotate, compress, stamp, redact, or modify documents. Redaction removes matching content rather than drawing a visual cover over it, then verifies the result.

How it works

The MCP process is started over stdio with the mcp subcommand. Tool names follow the CLI commands, such as pdf_info, pdf_text, and pdf_redact, and use the corresponding CLI arguments. Relative file paths are interpreted from the server's working directory.

Use --root to confine file access to a directory. Paths outside that directory are rejected, including paths embedded in document content. Each MCP call runs in its own process, while commands also operate with memory and time limits. The project tests its commands against a corpus of malformed and hostile PDFs.

Setup and configuration

The npm package can be run without a global install:

Terminal
npx -y pdfops-cli mcp

A global npm installation is also available with npm install -g pdfops-cli. The npm package acts as a launcher, downloading and checking the platform binary on first use. Node.js 18 or newer is required for the npm installation path. Other distribution options include prebuilt archives, Cargo installation, and Docker.

A basic MCP configuration is:

config.json
{
  "mcpServers": {
    "pdfops": {
      "command": "npx",
      "args": ["-y", "pdfops-cli", "mcp"]
    }
  }
}

To limit access to one directory, add "--root", "/path/to/documents" to the argument list. OCR requires the tesseract program. The ocr-langs and ocr-install commands check available languages and can fetch language data; ocr-install --engine can install Tesseract where supported without administrator access.

Tools and capabilities

The available operations include:

  • Inspect PDFs with page counts, dimensions, metadata, encryption status, outlines, forms, annotations, signatures, scripts, attachments, automatic actions, hidden text, and other scan results.
  • Extract text, search for strings or regular expressions, inspect layout coordinates and fonts, and read tables as rows, Markdown, or CSV.
  • Render pages to PNG, extract embedded images, and run OCR with an optional searchable output copy.
  • Create PDFs from Markdown; merge, split, reorder, duplicate, delete, and rotate pages.
  • Add stamps, watermarks, headers, footers, page numbers, links, notes, highlights, underlines, images, and QR codes.
  • Replace text, redact content, edit metadata, and compress files with optional image re-encoding or downscaling.
  • Fill form fields, encrypt or decrypt PDFs, digitally sign documents, and sanitize active content such as scripts, risky actions, attachments, XFA, and media.

Limitations and notes

OCR is the main feature with an external dependency: Tesseract must be available, along with suitable language data. The npm package requires Node.js 18 or newer, while building from source requires Rust 1.92 or newer. The Docker image includes Tesseract with English support; additional language data can be installed as needed. The server processes local files, so the MCP client's working directory and any configured root determine which paths the agent can use.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Pdfops CLI

pdfops-cli is an MCP server that connects AI clients to local PDF files through the pdfops command-line binary. Its main tools handle inspection, text and table extraction, OCR, rendering, redaction, forms, signatures, page editing, encryption, sanitization, and PDF creation, returning structured JSON results for agent workflows.

Run `npx -y pdfops-cli mcp` from an MCP client configuration. You can also install it globally with `npm install -g pdfops-cli`, use Cargo or a prebuilt archive, or run the Docker image. The npm route requires Node.js 18 or newer.

Yes, pdfops-cli works with Cursor through a standard stdio MCP configuration. Add a server named `pdfops` with command `npx` and arguments `-y`, `pdfops-cli`, and `mcp`; relative paths then resolve from the server's working directory.

Add `--root` followed by the permitted directory to the MCP arguments. The server rejects paths outside that directory, including paths found inside a document, and resolves relative paths against the configured root.

No. Tesseract is required only for OCR operations; the other PDF tools do not need it. Use `ocr-langs` to check availability, or `ocr-install` to obtain language data and optionally install the OCR engine.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPdfops CLI AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/pdfops-cli?style=directory)](https://allmcps.com/mcp/pdfops-cli)
HTML Embed
<a href="https://allmcps.com/mcp/pdfops-cli"><img src="https://allmcps.com/api/badge/pdfops-cli?style=directory" alt="Pdfops CLI on AllMCPs" /></a>