PDF Modifier logo

PDF Modifier

Inspect PDF layouts, preserve font styling, replace text with plain strings or regex, and manage clickable links through MCP.

Install PDF Modifier

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

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "pdf-modifier": {
      "command": "uvx",
      "args": [
        "pdf-modifier"
      ]
    }
  }
}

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

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

PDF Modifier MCP server lets AI agents inspect PDF structure, examine font properties, list hyperlinks, and replace text while retaining document styling. It exposes four MCP tools for layout-aware editing, including regex replacements and clickable-link insertion or neutralization. Use it when automated PDF changes need more context than a simple text extraction pipeline, especially for targeted edits that should match surrounding fonts.

Use cases

  • Inspect a PDF’s text positions and fonts before editing
  • Replace draft labels or identifiers across PDF files
  • Redact variable values with regex-based replacements
  • Create or neutralize clickable PDF links
  • Batch-process scripted PDF text changes

Key features

  • Extracts page layout and text-element metadata
  • Reports font properties for matched terms
  • Replaces text with approximate style preservation
  • Supports regex-based replacements
  • Creates or neutralizes hyperlinks
  • Lists existing PDF hyperlinks

Tools4

What PDF Modifier lets your agent do. Expand a tool for its parameters.

Verified live~1.1k tokens of context

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.

16/16 checks healthy over the last 77d

What it can do

From the 4 tools this server returned when we ran it.

Makes network requests · 1Read-only tools · 4
Network at startup2 connections
Files written at startup16

Observed 2026-10-28 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 17d ago via OSV.dev · pdf-modifier (PyPI)

Adoption & maintenance

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

GitHub stars3Stargazers on the source repository.
Last commit14d agoMost recent push to the default branch.
Tools exposed4Callable tools this server registers over MCP.

How PDF Modifier works

What PDF Modifier does

PDF Modifier provides an MCP interface for examining and changing text-based PDF content. It is designed for edits where page layout and typographic appearance matter. Agents can inspect page dimensions, text placement, font information, and existing hyperlinks before applying changes.

The main editing operation finds text inside PDF text spans, covers the original content with a white redaction area, and writes the replacement at the detected position. Replacement styling is derived from the matched text, with Base 14 fonts used to approximate the original family and weight. Matching text of a similar length helps reduce the chance of overlap.

The project also includes a command-line interface and a web interface, but the MCP integration is the relevant entry point for agent-driven workflows. The command-line package supports batch processing and regex-based replacement outside MCP as well.

How it works

A typical workflow starts with read_pdf_structure. This returns each page’s dimensions and text elements, including their exact content, bounding boxes, insertion origins, font names, sizes, and color values. The structural output can be used to identify the precise text span that should be changed.

inspect_pdf_fonts searches the document for a supplied term and reports matching pages, nearby context, font details, and coordinates. Use it when an edit needs to reproduce the styling of a particular occurrence.

After inspection, modify_pdf_content accepts one or more replacements. It can match literal text within individual spans or interpret replacement keys as regular expressions when regex mode is enabled. A value formatted as text|URL creates a clickable link, while text|void(0) can neutralize an existing link during replacement.

list_pdf_hyperlinks inventories clickable URIs, including their target addresses, locations, and covered text when detectable. Running it before and after an edit can help verify link-related changes.

Setup and configuration

The package requires Python 3.12 or newer. Install it with:

Terminal
pip install pdf-modifier

For an MCP client using the uvx launcher, the documented Claude setup command is:

Terminal
claude mcp add -s user pdf-modifier -- uvx pdf-modifier

The MCP process is named pdf-modifier. The project also exposes a CLI command, pdf-mod, for scripted PDF modifications, including commands such as:

bash
pdf-mod modify input.pdf output.pdf -r "Draft=Final"

No environment variables are required by the documented setup. The repository is licensed under MIT.

Tools and capabilities

  • read_pdf_structure: Extract page geometry and detailed text-element metadata.
  • inspect_pdf_fonts: Find terms and report their surrounding font and position information.
  • modify_pdf_content: Replace literal or regex-matched text while applying detected styling.
  • list_pdf_hyperlinks: Locate existing clickable links and their PDF coordinates.
  • Multiple replacements can be submitted in one modification call.
  • Regex patterns are useful for changing variable dates, identifiers, or other repeated content.

Limitations and notes

Text matching occurs within individual text spans rather than across arbitrary combinations of spans. Replacement fonts are approximated with Base 14 families such as Helvetica, Times, and Courier, so the result may not reproduce every embedded font exactly. Keep replacement strings close in length to the originals to limit overlap with nearby content.

The structure inspection tool should be used before editing so that an agent can identify the correct text and its layout. Font inspection is useful when visual consistency depends on the exact styling of a target. Hyperlink text may be detectable separately from its target URI, so link verification should account for both pieces of information.

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 PDF Modifier

PDF Modifier is an MCP server that connects AI agents to PDF inspection and editing operations. Its tools read document structure, inspect fonts, list hyperlinks, and replace text with literal or regex matching while preserving approximate font styling and supporting clickable-link changes.

Install the Python package with `pip install pdf-modifier`, then register it with an MCP client using `uvx pdf-modifier`. The documented Claude command is `claude mcp add -s user pdf-modifier -- uvx pdf-modifier`, and Python 3.12 or newer is required.

Inspect the document first with `read_pdf_structure`, then call `modify_pdf_content` with the desired replacements. Literal matches are supported, and regex mode can target patterns such as dates or identifiers. Similar-length replacements help avoid overlap.

Yes, PDF Modifier is documented for use with Cursor through its MCP server interface. Register the `pdf-modifier` process with the client and launch it through `uvx pdf-modifier` after installing the package.

Yes, replacement text can create a clickable link by appending `|URL` to the text value. Appending `|void(0)` can neutralize an existing link, and `list_pdf_hyperlinks` can inventory links before or after modifications.

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 PreviewPDF Modifier AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/pdf-modifier?style=directory)](https://allmcps.com/mcp/pdf-modifier)
HTML Embed
<a href="https://allmcps.com/mcp/pdf-modifier"><img src="https://allmcps.com/api/badge/pdf-modifier?style=directory" alt="PDF Modifier on AllMCPs" /></a>