PDF MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PDF MCP Serverlist all PDFs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PDF MCP Server
An MCP server that exposes PDF files as resources, page by page, over Streamable HTTP.
Setup
Create and activate a virtual environment, then install dependencies:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtRelated MCP server: pymupdf4llm-mcp
Launch
fastmcp run server.py --transport httpThe MCP endpoint will be available at http://localhost:8000/mcp.
Options
Flag | Default | Description |
|
| Bind address |
|
| Port |
| off | Restart on file changes (dev mode) |
Example with custom port:
fastmcp run server.py --transport http --port 9000Resources
Place PDF files in the same directory as server.py. Three resource URIs are exposed:
URI | Returns |
| List of all PDF filenames in the server directory |
| Page count and metadata for the given PDF |
| Extracted text of page |
Example
pdf://list
pdf://my_document.pdf/info
pdf://my_document.pdf/page/1Running and testing
Use fastmcp (on cli) to run the server (and select the transport form)
fastmcp run server.py --transport httpInspecting can be done with
npx @modelcontextprotocol/inspectorand connect after giving the URL returned by fastmcp command (usually http://127.0.0.1:8000/mcp) with a Streamable http transport type.
References
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for the PDFGate API. Generate PDFs, manage documents and handle e-signatures.
HTML-to-PDF MCP server — render pixel-faithful PDFs from HTML.
Host your MCP tool over streamable HTTP in one command.
MCP server for Api2Pdf — generate PDFs & images from HTML, URLs or office files; merge, barcodes.
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP server for reading, rendering, and searching PDF files, specifically optimized for LLMs to extract text, tables, and technical diagrams. It enables metadata retrieval, multi-format text extraction, and page-to-image rendering using PyMuPDF.577MIT

pymupdf4llm-mcpofficial
AlicenseNot gradedqualityBmaintenanceMCP server for exporting PDF to markdown, optimized for LLM consumption.1,982 PyPI71AGPL 3.0- FlicenseNot gradedqualityDmaintenanceMCP server for extracting text from PDF files, supporting local files and URLs.-
- AlicenseAqualityDmaintenanceMemory-efficient MCP server for reading and splitting large PDF files page by page using PyMuPDF.3MIT