pdf-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PDF_MCP_PORT | No | HTTP server port. | 10201 |
| OAUTH_BASE_URL | No | Public URL of the server (for HTTP transport). | |
| OAUTH_STATE_DIR | No | Directory for OAuth state persistence. | |
| PDF_MCP_DB_PATH | No | SQLite database location. | ~/.local/share/pdf-mcp/pdf.db |
| GITHUB_CLIENT_ID | No | GitHub OAuth app client ID (for HTTP transport). | |
| PDF_MCP_MCP_PATH | No | MCP endpoint path (set to / behind a path-stripping proxy). | /mcp |
| PDF_MCP_LOG_LEVEL | No | Logging level. | INFO |
| PDF_MCP_TRANSPORT | No | Transport mode: stdio or http. | stdio |
| PDF_MCP_VAULT_PATH | No | Directory containing your PDFs. | ~/Documents/PDFs |
| OAUTH_ALLOWED_USERS | No | Comma-separated GitHub usernames allowed to authenticate. | |
| GITHUB_CLIENT_SECRET | No | GitHub OAuth app client secret (for HTTP transport). | |
| PDF_MCP_TOGETHER_API_KEY | No | Optional API key that enables faster bulk embedding and LLM relevance scoring. |
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": true
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/ui": {}
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| rename_pdfC | Rename a PDF file in the filing cabinet. Args: old_filename: Current filename new_filename: New filename |
| reindex_pdfsA | Reindex all PDFs in the filing cabinet. Use this after adding new PDFs or if search results seem stale. |
| read_pdfA | Extract text from a PDF, optionally specific pages. Args: filename: PDF filename (e.g., "2024-01-15 Invoice.pdf") pages: Optional page range (e.g., "1-3", "5", "1,3,5"). Omit for all pages. |
| get_pdf_infoB | Get metadata about a PDF without extracting full text. Args: filename: PDF filename |
| search_pdfsA | Search across all indexed PDFs using full-text and semantic search. Combines FTS5 keyword matching with vector similarity search, reranks with a cross-encoder, and filters by LLM relevance scoring. Args: query: Search query (natural language or keywords) limit: Maximum number of results |
| list_pdfsB | List PDFs in the filing cabinet, optionally filtered by filename pattern. Args: pattern: Optional filename substring to filter by (e.g., "mortgage", "2024") limit: Maximum number of results |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Each tool targets a distinct action on a distinct aspect of the PDF domain: rename, reindex, read (text extraction), info (metadata), search, and list. The closest pair, read_pdf vs get_pdf_info, is clearly separated by their descriptions (full text vs metadata without extraction), and list_pdfs vs search_pdfs differ by enumeration vs query.
All six tools follow a consistent verb_noun snake_case pattern (rename_pdf, reindex_pdfs, read_pdf, get_pdf_info, search_pdfs, list_pdfs) with no style mixing or vague names.
Six tools is well within the ideal 3-15 range and each earns its place across file management, retrieval, and maintenance. No redundant or trivial tools are present.
The surface covers reading, metadata, search, listing, rename, and reindexing, but lacks a delete/remove operation despite having rename, and no add/import tool (likely handled externally given reindex_pdfs). These are minor gaps an agent can work around for the stated purpose.