Skip to main content
Glama
nano-pdf-mcp
by eren0315

Nano PDF MCP

A memory-efficient Model Context Protocol (MCP) server for reading and splitting large PDF files.
Built with fastmcp and pymupdf (PyMuPDF).

English | 한국어

Tools

Tool

Description

get_pdf_info

Retrieves file metadata and total page count — Use this before calling read_pdf

read_pdf

Extracts text by streaming the specified page range

split_pdf

Creates a new PDF with only the specified pages

save_markdown_summary

Saves AI-summarized content to a .md file

1. get_pdf_info(filepath) → Check total page count
2. read_pdf(filepath, start_page, end_page) → Read text
3. save_markdown_summary(output_filepath, markdown_content) → Save summary

Related MCP server: pdf-mcp

Installation

No need to clone or install locally!
If uv is installed, it runs instantly with a single command below.

Installing uv (If not installed)

  • macOS / Linux:

    curl -LsSf https://astral.sh/uv/install.sh | sh
  • Windows:

    powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Claude Desktop

Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "nano-pdf-mcp": {
      "command": "uvx",
      "args": ["nano-pdf-mcp"]
    }
  }
}

Antigravity

Add the following to your .gemini/settings.json:

{
  "mcpServers": {
    "nano-pdf-mcp": {
      "command": "uvx",
      "args": ["nano-pdf-mcp"]
    }
  }
}

Architecture

  • Memory Efficiency: Streams and processes large PDFs page by page (no full loading into memory)

  • Fast Splitting: Copies only C-level pointers via insert_pdf — no re-encoding

  • Safe Logging: All logs are output to stderr (prevents stdio communication pollution)

  • Clear Errors: Instantly returns error messages for invalid ranges/paths

Available Tools

3 tools
read_pdfA

Reads text from a specific range of pages in a PDF file in a memory-efficient way. It streams pages one by one without loading the entire document into memory.

Inputs: end_page (required), filepath (required), start_page (required). Returns: result

save_markdown_summaryA

Saves organized, AI-summarized, or extracted markdown content to a file. Use this tool after reading a PDF to document findings without retaining the original PDF's garbage layout.

Inputs: output_filepath (required), markdown_content (required). Returns: result

split_pdfA

Creates a new PDF containing only the specified page ranges from the source PDF. This operation is extremely memory efficient as it copies C-level pointers rather than re-encoding the content.

Inputs: filepath (required), page_ranges (required), output_filename (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: read_pdf extracts text, save_markdown_summary saves a summary, and split_pdf creates a new PDF from page ranges. No overlap in functionality.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern in snake_case (read_pdf, save_markdown_summary, split_pdf), making them predictable and easy to understand.

    Tool Count4/5

    With 3 tools, the server is somewhat minimal but still appropriate for its focused purpose of PDF text extraction and splitting. It could benefit from additional tools like merge or annotation, but the count is reasonable.

    Completeness3/5

    The tool set covers basic PDF operations (reading, splitting, saving output) but lacks common features like merging, converting formats, or extracting images, leaving notable gaps for a general PDF tool.

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables comprehensive PDF analysis and manipulation including page size analysis, chapter extraction, splitting, compression, merging, and conversion to images. Provides both MCP server interface for AI assistants and Streamlit web interface for direct user interaction.
      -
    • 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
      83
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server for extracting text from PDF files, supporting local files and URLs.
      -