What if there is no API key?
The package automatically creates a guest session with free credits, so an agent can
test the extraction path before any account setup.
How do I persist access?
Set PDF_EDITOR_API_KEY or use pdf-edit setup --save-api-key
so future CLI and MCP runs can authenticate without extra prompts.
What is the MCP tool name?
The MCP server exposes a single tool, extract_pdf_to_json, with
file_path, pages, and filename parameters.
What data comes back?
The response includes document metadata, extracted page text, and usage fields such
as processed pages and remaining credits.
Does it support OCR?
Not on the current public path. The extractor is built for text-based PDFs and marks
likely scanned pages with metadata.is_scanned.
What limits should an agent expect?
The validation layer currently rejects files above 50 MB, PDFs above
200 pages, and password-protected files.