Skip to main content

PDF To Text

io.github.Jim-Panse/pdf-to-text

v0.7.0Updated Oct 15, 2026stdio · npm

Extracts PDF text locally, with macOS PDFKit and Vision OCR fallbacks and optional AI retry.

Install

Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add pdf-to-text -e 'PDF_TO_TEXT_MCP_ROOT=<your-pdf-to-text-mcp-root>' -e AI_MAX_OUTPUT_TOKENS=32000 -e EXTRACTION_QUEUE_CAPACITY=10 -e EXTRACTION_QUEUE_WAIT_MS=60000 -e WRITE_TEXT=false -- npx -y @jim-panse/[email protected]

Configuration

8 settings.

  • PDF_TO_TEXT_MCP_ROOT
    Env var· required
    Required existing directory that defines the root-relative filesystem namespace for PDF input and derived text output.
  • OPENAI_API_KEY
    Env var· optional· secret
    Optional secret. Enables one AI extraction retry when local extraction is inadequate; omit for local-only operation.
  • OPENAI_MODEL
    Env var· optional
    Optional OpenAI model used only for AI retry. Defaults to gpt-5.4-mini.
  • AI_MAX_OUTPUT_TOKENS
    Env var· optional
    Optional cap for all AI-generated output tokens, including non-visible reasoning tokens. Integer minimum 800; defaults to 32000.Default: 32000
  • MAX_PARALLEL_EXTRACTIONS
    Env var· optional
    Integer concurrency limit from 1 to 32. Defaults to min(os.availableParallelism(), 4).
  • EXTRACTION_QUEUE_CAPACITY
    Env var· optional
    Integer maximum waiting requests from 0 to 100; zero disables waiting.Default: 10
Show 2 more
  • EXTRACTION_QUEUE_WAIT_MS
    Env var· optional
    Maximum queue wait in milliseconds, integer 1 through 2147483647. Does not limit active work.Default: 60000
  • WRITE_TEXT
    Env var· optional
    Optionally save successful extraction text beside the source PDF.Default: false

Listed in the official MCP Registry since Oct 15, 2026. Mirrored daily; last checked Nov 26, 2026.