ExactPDF

v0.2.20
com.exactpdf/mcp Checked 15 hours ago Published 11 days ago

ExactPDF local stdio MCP client: hosted API PDF merge, split, compress, Markdown source packs.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

exactpdf_first_run_checklist

Return the safest first-run sequence for ExactPDF MCP clients, including API key setup, free probe tools, credit rules, output directory behavior, and docs links. Free; no API key required.

exactpdf_account

Check whether the ExactPDF API key works and return credit balance/key metadata. Free; does not consume credits. Use this before any paid tool.

exactpdf_merge_and_compress_pdfs

Portal-ready workflow: merge 2-20 local PDFs in order, then best-effort repack/compress the final PDF for an upload limit. Costs 1 launch credit on success. Returns measured output size and whether target_bytes was reached; exact target compression for image-heavy PDFs may require Max/browser workflows.

ParameterTypeDescription
paths *arrayAbsolute paths to PDF files on this machine, in merge order.
target_bytesintegerOptional upload limit, e.g. 1048576 for 1MB or 2097152 for 2MB.

exactpdf_merge_pdfs

Merge 2-20 local PDF files into one PDF in the exact order provided. Costs 1 credit only on successful output. Saves the merged PDF locally and returns its path.

ParameterTypeDescription
paths *arrayAbsolute paths to PDF files on this machine

exactpdf_split_pdf

Split one local PDF into a ZIP of PDFs. Costs 1 credit on success. Default is one PDF per page; use at_pages for split points or ranges_json for explicit inclusive ranges.

ParameterTypeDescription
path *stringAbsolute path to a PDF file
at_pagesstringComma-separated split points after 1-based page numbers, e.g. "3,7"
ranges_jsonstringJSON array of inclusive [start,end] page ranges, e.g. "[[1,3],[4,7]]"

exactpdf_rotate_pdf

Rotate every page of a local PDF by 90/180/270 degrees. Costs 1 credit on success. Saves the rotated PDF locally and returns its path.

ParameterTypeDescription
angle *Clockwise rotation in degrees
path *stringAbsolute path to a PDF file

exactpdf_compress_pdf

Compress/repack a local PDF for smaller delivery. Costs 1 credit on success. Optional target_bytes returns measured target headers. Best-effort, not guaranteed exact-size compression.

ParameterTypeDescription
path *stringAbsolute path to a PDF file
target_bytesintegerOptional upload limit such as 102400 for 100KB, 204800 for 200KB, 512000 for 500KB, or 1048576 for 1MB.

exactpdf_compress_pdf_to_target

Best-effort compress/repack a local PDF toward a target size such as 100KB, 200KB, 500KB, or 1MB. Costs 1 credit on success and reports whether target_bytes was reached.

ParameterTypeDescription
path *stringAbsolute path to a PDF file
target_bytes *integerUpload limit in bytes, e.g. 102400 for 100KB or 1048576 for 1MB.

exactpdf_compress_pdf_to_100kb

Best-effort compress/repack a local PDF toward 100KB. Costs 1 credit on success and reports whether the target was reached.

ParameterTypeDescription
path *stringAbsolute path to a PDF file

exactpdf_compress_pdf_to_200kb

Best-effort compress/repack a local PDF toward 200KB. Costs 1 credit on success and reports whether the target was reached.

ParameterTypeDescription
path *stringAbsolute path to a PDF file

exactpdf_compress_pdf_to_500kb

Best-effort compress/repack a local PDF toward 500KB. Costs 1 credit on success and reports whether the target was reached.

ParameterTypeDescription
path *stringAbsolute path to a PDF file

exactpdf_compress_pdf_to_1mb

Best-effort compress/repack a local PDF toward 1MB. Costs 1 credit on success and reports whether the target was reached.

ParameterTypeDescription
path *stringAbsolute path to a PDF file

exactpdf_pdf_to_images

Backend-required placeholder for PDF-to-images API/MCP. Use the live browser tool at https://exactpdf.com/tools/pdf-to-images until the server renderer endpoint ships.

ParameterTypeDescription
dpiintegerPlanned render DPI.
output_formatstringPlanned output format.
page_rangestringPlanned page range, e.g. "1-3".
pathstringAbsolute path to a PDF file. Not processed yet because the API endpoint is not live.

exactpdf_ocr_pdf

Backend-required placeholder for OCR API/MCP. Use the live browser OCR page at https://exactpdf.com/tools/ocr-pdf until the server OCR worker endpoint ships.

ParameterTypeDescription
languagestringPlanned OCR language hint such as eng, hin, spa.
pathstringAbsolute path to a PDF file. Not processed yet because the API endpoint is not live.

exactpdf_images_to_pdf_and_compress

Portal-ready workflow: convert local PNG/JPEG images into one ordered PDF, then best-effort repack/compress for an upload limit. Costs 1 launch credit on success. Returns measured output size and whether target_bytes was reached.

ParameterTypeDescription
paths *arrayAbsolute paths to PNG or JPEG files, in PDF order.
target_bytesintegerOptional upload limit, e.g. 524288 for 500KB or 1048576 for 1MB.

exactpdf_images_to_pdf

Convert local PNG/JPEG images into one ordered PDF. Costs 1 credit on success. Saves the resulting PDF locally and returns its path.

ParameterTypeDescription
paths *arrayAbsolute paths to PNG or JPEG files

exactpdf_pdf_info

Read PDF page count and metadata before deciding what to do next. Free; does not consume credits. Good first step before merge/split/speech jobs.

ParameterTypeDescription
path *stringAbsolute path to a PDF file

exactpdf_extract_text

Extract plain text from a local PDF. Costs 1 credit on success. Returns JSON with text and page_count for summarizers, search, and downstream agents.

ParameterTypeDescription
path *stringAbsolute path to a PDF file

exactpdf_pdf_structured_markdown

Convert a local text-layer PDF into auditable Markdown, JSON with page/chunk provenance, deterministic RAG JSONL, or a ZIP source pack. Source packs save locally and return only artifact metadata; OCR is not run and tables remain reading-order text.

ParameterTypeDescription
path *stringAbsolute path to a PDF file
modestringStructured export profile — academic keeps page separators, rag joins short lines.
output_formatstringjson includes page/chunk provenance; markdown, jsonl, and source-pack are saved to the output folder. source-pack is a ZIP with Markdown, JSONL, and a checksum manifest.

exactpdf_pdf_to_json

Extract text-layer PDF structure as JSON: metadata, per-page text, full text, page count, and extraction notes. Costs 1 credit on success. Scanned PDFs need OCR first.

ParameterTypeDescription
path *stringAbsolute path to a PDF file

exactpdf_pdf_to_audiobook

Queue an English PDF audiobook as MP3, M4B, or MP4. English-only launch: PDF files up to 10 MiB, selected narration up to 20 pages, 18,000 characters, or 20 generated minutes, and one active audio job per account. MP3/M4B cost 15 credits per generated minute; MP4 costs 20 credits per generated minute. Poll exactpdf_job_status for completion. Returned server execution IDs are not HTTP retry idempotency keys.

ParameterTypeDescription
path *stringAbsolute path to a PDF file
languagestringEnglish language hint such as en, en-US, or en-GB. Other languages are rejected at launch.
normalize_pausesbooleanNormalize pauses between extracted sections.
output_formatstringExport format. Default: mp3.
page_rangestringOptional page range, e.g. "1-10" or "2,4-7".
preserve_chaptersbooleanKeep detected headings as audiobook chapters.
pronunciation_fixesstringJSON object of pronunciation replacements.
speednumberSpeech speed multiplier, 0.5-2.0.
voice_idstringOptional provider voice id, if your account supports it.
voice_stylestringNarration style. Default: audiobook.

exactpdf_job_status

Poll a general ExactPDF async job and optionally save the result when succeeded. Free. Prefer exactpdf_get_speech_job for speech/audiobook jobs.

ParameterTypeDescription
job_id *stringExactPDF async job id returned by exactpdf_pdf_to_audiobook.
downloadbooleanWhen true, save result_url to EXACTPDF_API_OUTPUT_DIR.

exactpdf_workflow_submit

Submit one large local workflow through ExactPDF direct GCS upload: compress (PDF ≤1 GiB), folder_batch (ZIP ≤256 MiB, max_credits 1–100), source_pack (text-layer PDF ≤256 MiB), or smart_redact (PDF ≤256 MiB/100 pages). Requires an explicit idempotency_key. Smart Redact inspect returns only a source SHA-256 and coordinate regions; apply requires reviewed:true, that exact SHA, and explicit reviewed regions. Inspect and apply are separate hosted jobs; each API/MCP job costs one credit only after its output is verified. It does not promise PII detection or auto-apply redactions.

ParameterTypeDescription
idempotency_key *stringStable client-generated key for this exact intent. Never reuse it with changed file size/options.
max_credits *integerExplicit maximum credits: exactly 1 except folder_batch, which permits 1–100.
options *objectcompress/folder: targetId or customTargetBytes; source_pack: mode; smart_redact: inspect or reviewed apply options.
path *stringAbsolute local PDF or ZIP path. It is read in bounded 8 MiB chunks, never loaded whole.
workflow *string

exactpdf_workflow_finalize

Recover one already-uploaded workflow after exactpdf_workflow_submit reports finalization_pending. It authenticates POST /api/v1/workflow-jobs/:upload_id and never creates an intent, re-uploads bytes, or exposes a GCS session URL. Call workflow status first; use this once only while the upload remains uploading. A queued/already-queued/in-progress result belongs to the original job and may consume that job’s normal budget only after verified output. Stop on rejected or expired uploads; do not submit a replacement without explicit approval.

ParameterTypeDescription
upload_id *stringUUID returned as upload_id by workflow_finalize_recoverable.

exactpdf_workflow_status

Read a workflow job you own. Set max_polls (1–30) to wait locally for a terminal state; cancelling the MCP call only stops local polling and does not cancel the remote job. Signed result URLs are never displayed. Smart Redact inspect exposes only source SHA-256 and reviewed coordinate regions, never detected plaintext.

ParameterTypeDescription
job_id *stringWorkflow job UUID returned by exactpdf_workflow_submit.
max_pollsintegerBounded one-second polling attempts; default 1.

exactpdf_workflow_download

Download the verified result of a succeeded workflow job to EXACTPDF_API_OUTPUT_DIR (or the OS temp directory). The package accepts only ExactPDF GCS signed URLs, sends no API key to storage, and uses exclusive local file creation. It cannot download failed, cancelled, or still-running jobs.

ParameterTypeDescription
job_id *stringSucceeded workflow job UUID.

exactpdf_translate_and_speak

Planning-only placeholder while translate-and-speak workers are hardened. Do not use for paid workloads; use estimates for planning only.

ParameterTypeDescription
path *stringAbsolute path to a PDF file
target_language *stringTarget language code, e.g. hi, es, fr, mr, de, ja, ar.
output_formatstringAudio export format. Default: mp3.
page_rangestringOptional page range, e.g. "1-10" or "2,4-7".
segmentation_modestringUse pages for slide/page narration.
source_languagestringSource language code. Default: auto.
speednumberSpeech speed multiplier, 0.5-2.0.
translation_glossarystringJSON array like [{"source":"ExactPDF","target":"ExactPDF"}].
voice_stylestringNarration style. Default: audiobook.

exactpdf_presentation_narration

Queue English presentation narration as a page-timed MP4, M4B, or MP3. English-only launch: PDF files up to 10 MiB, selected narration up to 20 pages, 18,000 characters, or 20 generated minutes, and one active audio job per account. MP3/M4B cost 15 credits per generated minute; MP4 costs 20 credits per generated minute. Poll the returned server execution ID; it is not an HTTP retry idempotency key.

ParameterTypeDescription
path *stringAbsolute path to a PDF presentation file
output_formatstringDefault: mp4 page-timed presentation.
page_rangestringOptional slide/page range, e.g. "1-10" or "2,4-7".
speednumberSpeech speed multiplier, 0.5-2.0.
voice_stylestringNarration style. Default: presenter.

exactpdf_estimate_speech_cost

Estimate generated minutes and launch credits before submitting PDF narration. English-only launch: PDF files up to 10 MiB, selected narration up to 20 pages, 18,000 characters, or 20 generated minutes, and one active audio job per account. MP3/M4B cost 15 credits per generated minute; MP4 costs 20 credits per generated minute. Free and local-only.

ParameterTypeDescription
charactersintegerKnown narration character count, if already extracted.
minutesnumberKnown generated minutes, if already estimated.
modestringDefault: audiobook.
pathstringAbsolute path to a PDF file. Used for a rough size-based duration estimate.
target_languagestringOnly set when mode is translate. Leave empty for English speech/audiobook/presentation estimates.

exactpdf_voice_preview

Generate a short MP3/WAV voice sample before spending credits on a full PDF speech job. Free. Saves audio locally so users can judge quality first.

ParameterTypeDescription
languagestringLanguage hint such as en, hi, es, fr. Default: en.
output_formatstringAudio preview format. Default: mp3.
speednumberSpeech speed multiplier, 0.5-2.0.
textstringPreview text, capped server-side at 600 characters.
voice_idstringOptional Google Cloud voice name, e.g. en-US-Standard-H.
voice_stylestringNarration style. Default: professional.

exactpdf_pdf_to_speech

Queue English PDF narration as MP3, M4B, or MP4. English-only launch: PDF files up to 10 MiB, selected narration up to 20 pages, 18,000 characters, or 20 generated minutes, and one active audio job per account. MP3/M4B cost 15 credits per generated minute; MP4 costs 20 credits per generated minute.

ParameterTypeDescription
path *stringAbsolute path to a PDF file
languagestringEnglish language hint such as en, en-US, or en-GB. Other languages are rejected at launch.
normalize_pausesbooleanNormalize pauses between extracted sections.
output_formatstringExport format. Default: mp3.
page_rangestringOptional page range, e.g. "1-10" or "2,4-7".
preserve_chaptersbooleanKeep detected headings as audiobook chapters.
pronunciation_fixesstringJSON array of pronunciation replacements.
speednumberSpeech speed multiplier, 0.5-2.0.
voice_idstringOptional provider voice id, if your account supports it.
voice_stylestringNarration style.

exactpdf_generate_audiobook

Queue an English PDF audiobook as MP3, M4B, or MP4. English-only launch: PDF files up to 10 MiB, selected narration up to 20 pages, 18,000 characters, or 20 generated minutes, and one active audio job per account. MP3/M4B cost 15 credits per generated minute; MP4 costs 20 credits per generated minute.

ParameterTypeDescription
path *stringAbsolute path to a PDF file
languagestringEnglish language hint such as en, en-US, or en-GB. Other languages are rejected at launch.
normalize_pausesbooleanNormalize pauses between extracted sections.
output_formatstringExport format. Default: mp3.
page_rangestringOptional page range, e.g. "1-10" or "2,4-7".
preserve_chaptersbooleanKeep detected headings as audiobook chapters.
pronunciation_fixesstringJSON array of pronunciation replacements.
speednumberSpeech speed multiplier, 0.5-2.0.
voice_idstringOptional provider voice id, if your account supports it.
voice_stylestringNarration style.

exactpdf_get_speech_job

Poll an ExactPDF speech, audiobook, or presentation job and optionally save a succeeded result.

ParameterTypeDescription
job_id *stringExactPDF speech job id.
downloadbooleanWhen true, save result_url to EXACTPDF_API_OUTPUT_DIR if job succeeded.

exactpdf_download_audio

Download a succeeded speech, audiobook, or presentation job and save the MP3, M4B, or MP4 locally.

ParameterTypeDescription
job_id *stringExactPDF speech job id.