PDF Modifier
Modify PDF text, replace with regex, and analyze layout while preserving fonts.
Connector by mlorentedev · GitHub account verified by the MCP Registry
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.
About
Reviews
Write a reviewNo 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_fontsinspect_pdf_fontslist_pdf_hyperlinksread_pdf_structure
Write 2 · Create, change, send or run things.
batch_modify_pdf_contentmodify_pdf_content
Network hosts it talks to 6
api.nan.builders· found in codeapi.openai.com· found in codegithub.com· found in codeglama.ai· found in codemlorentedev.github.io· found in coderaw.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_contentApply 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_fontsExtract 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_fontsSearch 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_hyperlinksExtract 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_contentFind 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_structureExtract 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
- Repository
- github.com/mlorentedev/pdf-modifier-mcp
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
More from mlorentedev
- 0.770score
Hive Vault
mlorentedev
On-demand Obsidian vault access for AI coding assistants — 17 tools, 5 resources, 4 prompts.
ConnectorAFreshness: ALocal★ 11↓ 2.3K/wkClaude Code +5 - 0.754score
PDF Modifier
mlorentedev
Modify PDF text, replace with regex, and analyze layout while preserving fonts.
ConnectorAFreshness: ALocal★ 3↓ 2.1K/wkClaude Code +5
Cite this page
PDF Modifier MCP server. Agent Mart. https://agentmart.dev/connectors/mlorentedev-pdf-modifier-mcp (last updated 2026-10-24)