🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

mcp-pymupdf

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mcp-pymupdf

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

pipPyPI
Version
0.1.1
Weekly downloads
67
Maintainers
1

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

Keywords

ai

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts