Skip to main content
Glama

read_pdf

Extract text content, metadata, and page counts from PDF files using relative paths or URLs within your project context.

Instructions

Reads content/metadata from PDFs. Paths must be relative to the project root. Project root can be set via: 1) --root command line argument, 2) PDF_READER_MCP_ROOT environment variable, or 3) process.cwd() (default). Absolute paths in the path parameter are rejected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourcesYesAn array of PDF sources to process, each can optionally specify pages.
include_full_textYesInclude the full text content of each PDF (only if 'pages' is not specified for that source).
include_metadataYesInclude metadata and info objects for each PDF.
include_page_countYesInclude the total number of pages for each PDF.

Other Tools

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/cydynamic/pdf-reader-mcp'

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