Skip to content
Agentmart
Submit a tool

PDF Modifier

Modify PDF text, replace with regex, and analyze layout while preserving fonts.

Connector by mlorentedev · GitHub account verified by the MCP Registry

IndexedMITLocal (stdio)★ 3
Write a review

Install

Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.

npx agentmarket install connector/mlorentedev-pdf-modifier-mcp

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Modify PDF text, replace with regex, and analyze layout while preserving fonts.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this server can do and what it asks for, from its tool list, install config and code. Checked Oct 25, 2026.

Tools
4 read · 2 write · 0 delete
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Tools by what they do 6

Read from the source code; the running server may list different tools.

Read 4 · Look things up without changing anything.

  • extract_embedded_fonts
  • inspect_pdf_fonts
  • list_pdf_hyperlinks
  • read_pdf_structure

Write 2 · Create, change, send or run things.

  • batch_modify_pdf_content
  • modify_pdf_content

Network hosts it talks to 6

  • api.nan.builders · found in code
  • api.openai.com · found in code
  • github.com · found in code
  • glama.ai · found in code
  • mlorentedev.github.io · found in code
  • raw.githubusercontent.com · found in code

Files it touches

  • /home/user/documents/invoice.pdf
  • /tmp/pdf-eval
  • Your home directory (~)
  • Any path the agent passes to its tools

Tools (6)

Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].

  • batch_modify_pdf_content

    Apply the same text replacements to multiple PDF files at once. Each file is processed independently -- a failure in one file does not stop the rest of the batch. Output files are written to ``output_dir`` using the same filename as the input. Args: input_paths: List of absolute paths to input PDF files. output_dir: Directory where modified PDFs will be saved. replacements: Dictionary mapping old text to new text. use_regex: If true, treat keys as regex patterns. password: Optional password if PDFs are encrypted. max_file_size: Maximum allowed input file size in bytes…

  • extract_embedded_fonts

    Extract metadata and buffers of all embedded fonts in a PDF. Use this tool to inspect which fonts are actually embedded in a document. Custom fonts (TrueType, OpenType) appear as Type0 with their binary buffer. Base 14 system fonts (Helvetica, Times, Courier) are NOT embedded and will not appear in the results. Args: input_path: Absolute path to the PDF file to inspect. password: Optional password if the PDF is encrypted. max_file_size: Maximum allowed input file size in bytes (default: 100 MB). Returns: JSON string with embedded font metadata including: - name: human-re…

  • inspect_pdf_fonts

    Search for specific text terms and report their font properties. Use this tool to understand the exact font styling of text you want to replace. This ensures replacements will match the surrounding document style as closely as possible. The tool searches through all pages and returns matches with: - Page number where the term was found - The search term that matched - Surrounding context (first 100 characters) - Font name (e.g., "Helvetica-Bold", "Times-Roman") - Font size in points - Origin coordinates for precise positioning Args: input_path: Absolute path to the PDF file to inspect. …

  • list_pdf_hyperlinks

    Extract all existing hyperlinks and clickable URIs from a PDF. Use this tool to inventory the links in a document before or after making modifications. It reports the target URI, its location (bbox), and the text covered by the link if detectable. Args: input_path: Absolute path to the PDF file to scan. password: Optional password if the PDF is encrypted. max_file_size: Maximum allowed input file size in bytes (default: 100 MB). Returns: JSON string with the inventory of found hyperlinks. Example: list_pdf_hyperlinks("/path/to/report.pdf")

  • modify_pdf_content

    Find and replace text in a PDF while preserving font styles. This tool performs text replacement by: 1. Locating all occurrences of the search text 2. Redacting the original text (white fill) 3. Inserting the replacement text with matched styling IMPORTANT BEHAVIORS: - Text is matched within individual text spans - Font style is approximated using Base 14 fonts (Helvetica, Times, Courier) - Replacement text should be similar length to avoid overlap - Multiple replacements can be specified in a single call HYPERLINK SUPPORT: - Append "|URL" to create a clickable link: "Click Here|https://exa…

  • read_pdf_structure

    Extract the complete structural content of a PDF document. Returns detailed information about each page including: - Page dimensions (width, height) - All text elements with their: - Exact text content - Bounding box coordinates (x0, y0, x1, y1) - Origin point for text insertion - Font name and size - Color value Use this tool FIRST to understand the document layout before making any modifications. The output helps identify exact text to target for replacements. Args: input_path: Absolute path to the PDF file to analyze. Must be a valid, accessible PDF file. …

Signals

Stars
3
Forks
2
Open issues
42
Weekly downloads
61
Last commit
Oct 22, 2026 (6 days ago)
Last release
Oct 14, 2026 (15 days ago)
Last package publish
Jun 24, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026) and the package registry.

Details

Registry name
io.github.mlorentedev/pdf-modifier-mcp
Version
1.6.0
Auth
No auth
Packages
pypi pdf-modifier-mcp
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from mlorentedev

Cite this page

PDF Modifier MCP server. Agent Mart. https://agentmart.dev/connectors/mlorentedev-pdf-modifier-mcp (last updated 2026-10-24)