Pymupdf4llm MCP Server

PyMuPDF Utilities for LLM/RAG

Local serverstdioPython

What is the Pymupdf4llm MCP Server?

PyMuPDF Utilities for LLM/RAG

The short version

PyMuPDF4LLM is a lightweight extension for PyMuPDF that converts documents into structured Markdown, JSON, and plain text optimised for RAG pipelines, vector embeddings, and LLM ingestion. It handles multi-column layouts, tables, images, headers, and scanned pages with automatic OCR — all powered by the MuPDF C engine.

  • One import, three output formats — — Markdown, JSON, and plain text out of the box
  • No GPU, no cloud — — runs on any machine that can run Python
  • Layout-aware — — multi-column pages, reading-order reconstruction, table detection
  • Smart OCR — — automatically OCRs only the regions that need it, skipping clean text
  • Framework integrations — — drop-in support for LlamaIndex and LangChain
  • Page chunking — — chunk output by page with full metadata per chunk, ready for vector stores

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Pymupdf4llm MCP Server

{
  "mcpServers": {
    "pymupdf4llm": {
      "command": "uvx",
      "args": ["pymupdf4llm"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • “Use Pymupdf4llm to Configuration.”

Frequently asked questions

PyMuPDF Utilities for LLM/RAG Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.