Skip to main content
Glama
pdf2mcp

pdf2mcp

by iSamBa

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENAI_API_KEYYesOpenAI API key for embeddings
PDF2MCP_OCR_DPINoDPI for OCR rendering300
PDF2MCP_DATA_DIRNoDirectory for vector databasedata
PDF2MCP_DOCS_DIRNoDirectory containing PDF filesdocs
PDF2MCP_CHUNK_SIZENoTarget chunk size in tokens500
PDF2MCP_OCR_ENABLEDNoEnable OCR for scanned/image-only pagestrue
PDF2MCP_SEARCH_MODENoSearch mode: semantic, hybrid, or keywordsemantic
PDF2MCP_SERVER_HOSTNoHost to bind to127.0.0.1
PDF2MCP_SERVER_NAMENoMCP server namepdf-docs
PDF2MCP_SERVER_PORTNoPort to bind to8000
PDF2MCP_OCR_LANGUAGENoTesseract language codeeng
PDF2MCP_CHUNK_OVERLAPNoOverlap between chunks in tokens50
PDF2MCP_EMBEDDING_MODELNoOpenAI embedding modeltext-embedding-3-small
PDF2MCP_OPENAI_BASE_URLNoOpenAI API base URL (for Azure, local proxies, or compatible providers)https://api.openai.com/v1
PDF2MCP_SERVER_TRANSPORTNoTransport protocolstreamable-http
PDF2MCP_DEFAULT_NUM_RESULTSNoDefault search results count5

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_docsA

Search across ALL ingested PDFs for relevant passages.

Use this when you don't know which document contains the answer.
Returns ranked results with source file, section title, and page numbers.
Each result includes the matching text passage.

To search within a specific document instead, use search_in_doc.
To browse a document's structure first, use get_sections.

Args:
    query: Natural language search query (e.g., 'safety requirements for
        outdoor installation').
    num_results: Number of results to return (default: 5, max: 20).
search_in_docA

Search within a SINGLE document for relevant passages.

Use this when you already know which PDF to search — avoids noise from
other documents. Returns ranked results with section title and page numbers.

Get valid filenames from list_docs first.

Args:
    query: Natural language search query (e.g., 'maximum torque settings').
    filename: The PDF filename to search within (e.g., 'manual.pdf').
    num_results: Number of results to return (default: 5, max: 20).
read_pageA

Read the full content of a specific page from a document.

Use this when you know which page you need — e.g., after seeing a page
reference in a search result or table of contents. Returns all text chunks
from that page in document order, grouped by section.

Get valid filenames from list_docs.

Args:
    filename: The PDF filename (e.g., 'manual.pdf').
    page: The page number to read (1-indexed).
read_sectionA

Read the full content of a named section from a document.

Use this after get_sections to read a section you're interested in.
Returns all text chunks for that section in document order, with page
numbers.

Get available section titles from get_sections first.

Args:
    filename: The PDF filename (e.g., 'manual.pdf').
    section_title: Exact section title as returned by get_sections
        (e.g., 'Safety Guidelines').
list_docsA

List all ingested PDFs available for search.

Start here to discover which documents are available. Returns filenames,
chunk counts, and file hashes. Use the filenames with search_in_doc,
get_sections, read_page, or read_section.
get_sectionsA

Get the table of contents (section headings) of a document.

Use this to understand a document's structure before diving in.
Returns numbered section titles in document order. Then use read_section
to read any section, or search_in_doc to search within the document.

Get valid filenames from list_docs first.

Args:
    filename: The PDF filename (e.g., 'manual.pdf').

Prompts

Interactive templates invoked by user choice

NameDescription
summarize_documentGenerate a comprehensive summary of a document. Guides the LLM through a multi-step workflow using available tools to read and synthesize all sections of the specified document. Args: filename: The PDF filename to summarize (e.g., 'manual.pdf').
compare_documentsCompare two documents side by side. Guides the LLM through reading both documents and producing a structured comparison. Args: filename1: First PDF filename to compare. filename2: Second PDF filename to compare.
extract_key_findingsExtract key findings, conclusions, and recommendations from a document. Guides the LLM through a targeted reading workflow focused on extractive analysis. Args: filename: The PDF filename to analyze (e.g., 'report.pdf').
deep_divePerform a deep analysis of a specific topic within a document. Guides the LLM through an exhaustive search and reading workflow to thoroughly analyze a topic. Args: filename: The PDF filename to analyze. topic: The topic to investigate in depth.
document_overviewGenerate a structured overview of a document's contents. Guides the LLM through building a comprehensive table of contents with brief descriptions. Args: filename: The PDF filename to overview (e.g., 'manual.pdf').

Resources

Contextual data attached and managed by the client

NameDescription
get_statusCurrent status of the documentation server.

TDQS

A4.4/5.0

Scored across 6 tools

Disambiguation5/5

Each tool occupies a distinct slot: discovery (list_docs), structure (get_sections), global vs. scoped search (search_docs vs. search_in_doc), and page vs. section reading (read_page vs. read_section). Descriptions explicitly cross-reference the alternatives, so an agent can pick correctly without guessing.

Naming Consistency5/5

All six tools follow a uniform snake_case verb_noun pattern (list_docs, get_sections, search_docs, search_in_doc, read_page, read_section). The one variation, search_docs vs. search_in_doc, is a meaningful scope distinction rather than an inconsistent convention.

Tool Count5/5

Six tools is tightly scoped to the PDF search-and-read domain, with no redundancy or filler. Every tool maps to a distinct step in a realistic retrieval workflow.

Completeness4/5

The read-side lifecycle is fully covered: discovery, table of contents, search at both scopes, and retrieval by page or section. Minor gaps exist around ingestion/registration of new PDFs and any metadata or table-specific extraction, which appear to be handled outside the tool surface.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues