Skip to main content

PDF form manipulation toolkit built with MCP and PyMuPDF

Project description

MCP PDF Forms

A PDF form manipulation toolkit built with MCP and PyMuPDF.

Features

  • Find PDF files across multiple directories
  • Extract form field information from PDF files
  • Visualize form fields in PDF documents

Installation

# Install package from PyPI
pip install mcp_pdf_forms

# Or install from source
git clone https://github.com/Wildebeest/mcp_pdf_forms.git
cd mcp_pdf_forms
pip install -e .

Server

The server component provides PDF-related tools via MCP's API:

# Start the server with one or more directories to scan for PDFs
uv run -m mcp_pdf_forms.server examples

Or to add to claude-code:

claude mcp add pdf-forms uv run -- --with mcp-pdf-forms -m mcp_pdf_forms.server .

Usage

Once installed, you can use the package to work with PDF forms. The package provides tools through the MCP interface.

PDF Discovery Tool

The PDF Discovery tool helps you find PDF files across specified directories.

  • Input: Directory paths to search for PDFs
  • Output: List of PDF files found in the specified directories
  • Usage: Use this to quickly locate all PDF files in your project or specified folders

Form Field Extraction Tool

The Form Field Extraction tool extracts information about all form fields in a PDF document.

  • Input: Path to a PDF file
  • Output: Detailed information about each form field including field name, type, position, and other properties
  • Usage: Use this to analyze form structure and understand the fields available for filling

Field Highlight Visualization Tool

The Field Highlight tool creates a visual representation of form fields in the PDF.

  • Input: Path to a PDF file
  • Output: Modified PDF with all form fields highlighted for easy identification
  • Usage: Use this to visually inspect the layout and position of form fields in your document

Libraries Used

  • MCP - Machine Conversation Protocol framework
  • PyMuPDF - Python bindings for MuPDF, a high-performance PDF library

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_pdf_forms-0.1.2.tar.gz (4.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_pdf_forms-0.1.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file mcp_pdf_forms-0.1.2.tar.gz.

File metadata

  • Download URL: mcp_pdf_forms-0.1.2.tar.gz
  • Upload date:
  • Size: 4.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for mcp_pdf_forms-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bef4153dc0b63411764af434c22c6b4b6923b62b87282cb159b033d2e19fd590
MD5 c80943af86aeb9d94f25fef809db3a49
BLAKE2b-256 bdf197e5a4e186e6f385becd9358a3e54c61d8e40774850ef1b8a5be31e4cbe8

See more details on using hashes here.

File details

Details for the file mcp_pdf_forms-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: mcp_pdf_forms-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for mcp_pdf_forms-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9fd624f669caa4bb139a83459bb5880f432eedcf6b903d138b06d4e020c28464
MD5 aacebb66508f1c0131d6ead3d8348d21
BLAKE2b-256 12bad63193183f0c0779ed9f8b54920b7fc26801ab0a87c2f3a04505dc77e5ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page