Skip to main content
Glama
EricBoix

PDF MCP Server

by EricBoix

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.txt

Related MCP server: pymupdf4llm-mcp

Launch

fastmcp run server.py --transport http

The MCP endpoint will be available at http://localhost:8000/mcp.

Options

Flag

Default

Description

--host

127.0.0.1

Bind address

--port

8000

Port

--reload

off

Restart on file changes (dev mode)

Example with custom port:

fastmcp run server.py --transport http --port 9000

Resources

Place PDF files in the same directory as server.py. Three resource URIs are exposed:

URI

Returns

pdf://list

List of all PDF filenames in the server directory

pdf://{filename}/info

Page count and metadata for the given PDF

pdf://{filename}/page/{page}

Extracted text of page {page} (1-indexed)

Example

pdf://list
pdf://my_document.pdf/info
pdf://my_document.pdf/page/1

Running and testing

Use fastmcp (on cli) to run the server (and select the transport form)

fastmcp run server.py --transport http

Inspecting can be done with

npx @modelcontextprotocol/inspector

and connect after giving the URL returned by fastmcp command (usually http://127.0.0.1:8000/mcp) with a Streamable http transport type.

References

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    An 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.
    5
    66
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    MCP server for exporting PDF to markdown, optimized for LLM consumption.
    69
    AGPL 3.0
  • F
    license
    Not graded
    quality
    D
    maintenance
    MCP server for extracting text from PDF files, supporting local files and URLs.

View all related MCP servers

Related MCP Connectors

  • MCP server for the PDFGate API. Generate PDFs, manage documents and handle e-signatures.

  • Streamable HTTP MCP server for Google Calendar and Sheets with OAuth login.

  • Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/EricBoix/mcp_test'

If you have feedback or need assistance with the MCP directory API, please join our Discord server