mcpField
P
PDF To Text

PDF To Text

Local
github.com/Jim-PanseProductivity

About PDF To Text

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

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"jim-panse-pdf-to-text": {
"command": "npx",
"args": [
"-y",
"@jim-panse/pdf-to-text-mcp"
],
"env": {
"PDF_TO_TEXT_MCP_ROOT": "<PDF_TO_TEXT_MCP_ROOT>",
"OPENAI_API_KEY": "<OPENAI_API_KEY>",
"OPENAI_MODEL": "<OPENAI_MODEL>",
"AI_MAX_OUTPUT_TOKENS": "<AI_MAX_OUTPUT_TOKENS>",
"MAX_PARALLEL_EXTRACTIONS": "<MAX_PARALLEL_EXTRACTIONS>",
"EXTRACTION_QUEUE_CAPACITY": "<EXTRACTION_QUEUE_CAPACITY>",
"EXTRACTION_QUEUE_WAIT_MS": "<EXTRACTION_QUEUE_WAIT_MS>",
"WRITE_TEXT": "<WRITE_TEXT>"
}
}
}
}
Run commandnpx -y @jim-panse/pdf-to-text-mcp
Environment variables to set
PDF_TO_TEXT_MCP_ROOTRequired existing directory that defines the root-relative filesystem namespace for PDF input and derived text output.
OPENAI_API_KEYSecretOptional secret. Enables one AI extraction retry when local extraction is inadequate; omit for local-only operation.
OPENAI_MODELOptional OpenAI model used only for AI retry. Defaults to gpt-5.4-mini.
AI_MAX_OUTPUT_TOKENSSecretOptional cap for all AI-generated output tokens, including non-visible reasoning tokens. Integer minimum 800; defaults to 32000.
MAX_PARALLEL_EXTRACTIONSInteger concurrency limit from 1 to 32. Defaults to min(os.availableParallelism(), 4).
EXTRACTION_QUEUE_CAPACITYInteger maximum waiting requests from 0 to 100; zero disables waiting.
EXTRACTION_QUEUE_WAIT_MSMaximum queue wait in milliseconds, integer 1 through 2147483647. Does not limit active work.
WRITE_TEXTOptionally save successful extraction text beside the source PDF.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@jim-panse/pdf-to-text-mcp0.7.0

Tools

1

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
pathstringYes
page_rangestringNo

Details

The maintainer has not added details yet. Check the README in the repository.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.