pdf2mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OPENAI_API_KEY | Yes | OpenAI API key for embeddings | |
| PDF2MCP_OCR_DPI | No | DPI for OCR rendering | 300 |
| PDF2MCP_DATA_DIR | No | Directory for vector database | data |
| PDF2MCP_DOCS_DIR | No | Directory containing PDF files | docs |
| PDF2MCP_CHUNK_SIZE | No | Target chunk size in tokens | 500 |
| PDF2MCP_OCR_ENABLED | No | Enable OCR for scanned/image-only pages | true |
| PDF2MCP_SEARCH_MODE | No | Search mode: semantic, hybrid, or keyword | semantic |
| PDF2MCP_SERVER_HOST | No | Host to bind to | 127.0.0.1 |
| PDF2MCP_SERVER_NAME | No | MCP server name | pdf-docs |
| PDF2MCP_SERVER_PORT | No | Port to bind to | 8000 |
| PDF2MCP_OCR_LANGUAGE | No | Tesseract language code | eng |
| PDF2MCP_CHUNK_OVERLAP | No | Overlap between chunks in tokens | 50 |
| PDF2MCP_EMBEDDING_MODEL | No | OpenAI embedding model | text-embedding-3-small |
| PDF2MCP_OPENAI_BASE_URL | No | OpenAI API base URL (for Azure, local proxies, or compatible providers) | https://api.openai.com/v1 |
| PDF2MCP_SERVER_TRANSPORT | No | Transport protocol | streamable-http |
| PDF2MCP_DEFAULT_NUM_RESULTS | No | Default search results count | 5 |
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
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_docsA | Search across ALL ingested PDFs for relevant passages. |
| search_in_docA | Search within a SINGLE document for relevant passages. |
| read_pageA | Read the full content of a specific page from a document. |
| read_sectionA | Read the full content of a named section from a document. |
| list_docsA | List all ingested PDFs available for search. |
| get_sectionsA | Get the table of contents (section headings) of a document. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| summarize_document | Generate 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_documents | Compare 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_findings | Extract 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_dive | Perform 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_overview | Generate 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
| Name | Description |
|---|---|
| get_status | Current status of the documentation server. |
TDQS
Scored across 6 tools
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.
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.
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.
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.