Skip to main content

MCP server for reading PDFs using PyMuPDF. Supports local files and URLs.

Project description

mcp-pymupdf

An MCP server for reading PDFs using PyMuPDF. Supports local files and URLs.

Installation

pip install mcp-pymupdf

Tools

read_pdf

Extract text from a PDF file or URL.

{
  "source": "/path/to/file.pdf",
  "max_pages": 50,
  "max_bytes": 200000
}

get_page

Extract text from a specific page range.

{
  "source": "https://example.com/paper.pdf",
  "start_page": 3,
  "end_page": 8
}

get_metadata

Retrieve PDF metadata without reading full text.

{
  "source": "/path/to/file.pdf"
}

Usage with Claude Desktop

Add to your Claude Desktop config:

{
  "mcpServers": {
    "pdf": {
      "command": "mcp-pymupdf"
    }
  }
}

Notes

  • Scanned or image-based PDFs cannot be read without OCR
  • Mathematical notation may render as plain text approximations
  • URLs are downloaded to a temp file and deleted after reading

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_pymupdf-0.1.0.tar.gz (62.2 kB view details)

Uploaded Source

Built Distribution

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

mcp_pymupdf-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file mcp_pymupdf-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_pymupdf-0.1.0.tar.gz
  • Upload date:
  • Size: 62.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for mcp_pymupdf-0.1.0.tar.gz
Algorithm Hash digest
SHA256 93916bfdf65d4a785307d5470825c4d0051ae3dc0f3c9d39ce33b283a2e38279
MD5 e15f633922c0e3e8feada51f7348f9b5
BLAKE2b-256 ab6e827ea5ae2add38b0382da3e7965958a7d9713d272dcce4473fce15dff6cd

See more details on using hashes here.

File details

Details for the file mcp_pymupdf-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcp_pymupdf-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for mcp_pymupdf-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f28248095340d2c91dd1274cbe8d4f82b6c33126e5bdef03053187f18f3a643
MD5 094717780bd81d347c804d01c82e94eb
BLAKE2b-256 06397cb392ad07dc091faee1a506de9e5505452d6d8924303a7faf2adaf59ec1

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