RM

rsp2k/mcp-pdf

效率工作流

本页由 AI 翻译,技术细节请以原文为准。 查看原文

11 stars 3 forks 质量 66 趋势 26MIT

🔒 Secure FastMCP server for comprehensive PDF processing - text extraction, OCR, table extraction, forms, annotations, and more

概览

52 tools for text extraction, OCR, tables, forms, XFA, annotations, markdown↔PDF, and more MCP PDF extracts content from PDFs using multiple libraries with automatic fallbacks. If one method fails, it tries another. - via PyMuPDF, pdfplumber, or pypdf (auto-fallback) - via Camelot, pdfplumber, or Tabula (auto-fallback) - for scanned documents via Tesseract - - extract, fill, and create PDF forms - - merge, split, reorder pages - - sticky notes, highlights, stamps - - extract to SVG for schematics and technical drawings - - PDF ↔ Markdown (PDF→MD via PyMuPDF, MD→PDF via pandoc) - - Schema extraction for dynamic Adobe LiveCycle forms that no open-source library can render uvx caches tool installs aggressively. After upgrading to a new release, force a refresh with uvx --refresh mcp-pdf (or uvx --refresh --from "mcp-pdf[markdown]" mcp-pdf if you're using extras).

README

以下为原文 README 节选,完整内容请查看原文。


What It Does

MCP PDF extracts content from PDFs using multiple libraries with automatic fallbacks. If one method fails, it tries another.

Core capabilities:

  • Text extraction via PyMuPDF, pdfplumber, or pypdf (auto-fallback)
  • Table extraction via Camelot, pdfplumber, or Tabula (auto-fallback)
  • OCR for scanned documents via Tesseract
  • Form handling - extract, fill, and create PDF forms
  • Document assembly - merge, split, reorder pages
  • Annotations - sticky notes, highlights, stamps
  • Vector graphics - extract to SVG for schematics and technical drawings
  • Format conversion - PDF ↔ Markdown (PDF→MD via PyMuPDF, MD→PDF via pandoc)
  • XFA forms - Schema extraction for dynamic Adobe LiveCycle forms that no open-source library can render

Quick Start

# Run from PyPI (one-shot, no permanent install)
uvx mcp-pdf

# Add to Claude Code — note the `--` separator before uvx
claude mcp add pdf-tools -- uvx mcp-pdf

# Include the markdown_to_pdf tool (requires pandoc on host)
claude mcp add pdf-tools -- uvx --from "mcp-pdf[markdown]" mcp-pdf

uvx caches tool installs aggressively. After upgrading to a new release, force a refresh with uvx --refresh mcp-pdf (or uvx --refresh --from "mcp-pdf[markdown]" mcp-pdf if you’re using extras).


Tools

Content Extraction

Tool What it does
在 GitHub 查看完整 README

安装

uvx mcp-pdf
新手?先看 mcpskill.org 教程 →