Skip to main content
Glama
pdf-mcp
by jkp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PDF_MCP_PORTNoHTTP server port.10201
OAUTH_BASE_URLNoPublic URL of the server (for HTTP transport).
OAUTH_STATE_DIRNoDirectory for OAuth state persistence.
PDF_MCP_DB_PATHNoSQLite database location.~/.local/share/pdf-mcp/pdf.db
GITHUB_CLIENT_IDNoGitHub OAuth app client ID (for HTTP transport).
PDF_MCP_MCP_PATHNoMCP endpoint path (set to / behind a path-stripping proxy)./mcp
PDF_MCP_LOG_LEVELNoLogging level.INFO
PDF_MCP_TRANSPORTNoTransport mode: stdio or http.stdio
PDF_MCP_VAULT_PATHNoDirectory containing your PDFs.~/Documents/PDFs
OAUTH_ALLOWED_USERSNoComma-separated GitHub usernames allowed to authenticate.
GITHUB_CLIENT_SECRETNoGitHub OAuth app client secret (for HTTP transport).
PDF_MCP_TOGETHER_API_KEYNoOptional 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

CapabilityDetails
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

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 6 tools

Disambiguation5/5

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.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivitySlowing
ResponsivenessNo recent community issues