Skip to content

Environment Variables

Only one variable is required (PDF_SPEC_DIR); every other server starts with none.

VariableServerRequiredPurpose
PDF_SPEC_DIRpdf-specRequiredDirectory of the specification PDF corpus
PDF_SPEC_CACHE_DIRpdf-specOptionalWhere the on-disk index cache lives (v0.5.0+). Default ${XDG_CACHE_HOME:-~/.cache}/pdf-spec-mcp, about 18 MB for the whole corpus
PDF_SPEC_CACHEpdf-specOptionaloff (also 0 / false) disables cache reads and writes
PDF_READER_CONCURRENCYpdf-readerOptionalCap on concurrent remote fetches in read_url. Default 4
PDF_READER_RENDER_TIMEOUT_MSpdf-readerOptionalPer-page budget for render_page. Default 20,000 ms; a page that overruns is named in the omissions instead of taking the server down
PDF_VERIFY_VERAPDFpdf-verifyOptionalveraPDF executable path (falls back to PATH lookup → built-in rules)
PDF_VERIFY_TRUST_ANCHORSpdf-verifyOptionalDirectory of trust anchor certificates (PEM/DER)
PDF_WRITER_FONTpdf-writerEffectively required for CJK outputDefault font (single-face .ttf/.otf)

Development only: TEST_FONT_PATH (enables pdf-writer's font-dependent tests)

Where these go

Each variable belongs in the env block of its own server's entry in the MCP configuration — see Getting Started for a worked configuration per server.

MIT Licensed