Suparse Document Processing
v1.5.0Extract data, create schemas, and export results from PDFs and documents with Suparse AI OCR.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
extract_file Extract File
Process one local file through Suparse. Defaults to result_mode defer: upload, wait for terminal processing, and return task_id/document_ids for later export. A partially_completed task retains its status. For an immediate task ID, use start_file_extraction, then wait_for_task_extraction and get_task_results. auto_approve defaults true; false requests human review, and this combined tool may wait and time out while review is pending. return_json preserves per-input task status and document IDs, reports partial tasks and empty exports as incomplete, and preserves exported data. cleanup is best-…
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to a local document on the machine running this MCP server, not a URL or chat attachment. Supported extensions: .pdf, .jpg, .jpeg, .png, .heic, .heif. Prefer an absolute path; relative paths use… |
api_url | ||
auto_approve | boolean | Automatically approve extracted documents. Defaults to true. Set false only when human review is requested; use a start-only extraction tool to retain the task ID. MCP cannot approve documents, and co… |
cleanup | boolean | Defaults to false. Set true only when remote deletion is requested. Only valid with result_mode return_json. Deletes Suparse documents only for fully completed tasks with JSON exports covering every r… |
folder_id | string | Optional remote Suparse folder ID to assign to uploaded documents. |
pdf_password | string | Optional password for an encrypted PDF. Treat this as a secret; it is used only for the upload and is not returned in results. |
result_mode | string | Defaults to defer: upload and wait for processing, then return task status and document IDs without exporting. Defer does not mean background processing; use a start-only tool for that. return_json ad… |
split | boolean | Enable auto-splitting of multi-page documents with mixed document types. |
template_id | string | Optional extraction template ID. Use only a non-system team template ID from list_templates. System template IDs are discovery-only and cannot be passed directly. Omit to let Suparse auto-detect, or u… |
wait_timeout_ms | integer | For return_json, milliseconds to wait for each export to complete; defaults to 60000. Submission and transfer are separate phases. Ignored in defer mode. |
extract_folder Extract Folder
Process sorted, immediate supported files in a local folder through Suparse (nonrecursive; directories are skipped). Defaults to result_mode defer: upload and wait for each task, retaining task status and document IDs. For task IDs before processing finishes, use start_folder_extraction. At most 10 files run concurrently. auto_approve defaults true; false requests human review, and this combined tool may wait and time out while review is pending. return_json preserves per-input task status and document IDs, reports partial tasks and empty exports as incomplete, and preserves exported data. cle…
| Parameter | Type | Description |
|---|---|---|
folder_path * | string | Path to a local folder on the machine running this MCP server, not a remote Suparse folder ID. Scans supported files directly inside it, nonrecursively. Prefer an absolute path; relative paths use the… |
api_url | ||
auto_approve | boolean | Automatically approve extracted documents. Defaults to true. Set false only when human review is requested; use a start-only extraction tool to retain the task ID. MCP cannot approve documents, and co… |
cleanup | boolean | Defaults to false. Set true only when remote deletion is requested. Only valid with result_mode return_json. Deletes Suparse documents only for fully completed tasks with JSON exports covering every r… |
folder_id | string | Optional remote Suparse folder ID to assign to uploaded documents. |
pdf_password | string | Optional password for an encrypted PDF. Treat this as a secret; it is used only for the upload and is not returned in results. |
result_mode | string | Defaults to defer: upload and wait for processing, then return task status and document IDs without exporting. Defer does not mean background processing; use a start-only tool for that. return_json ad… |
split | boolean | Enable auto-splitting of multi-page documents with mixed document types. |
template_id | string | Optional extraction template ID. Use only a non-system team template ID from list_templates. System template IDs are discovery-only and cannot be passed directly. Omit to let Suparse auto-detect, or u… |
wait_timeout_ms | integer | For return_json, milliseconds to wait for each export to complete; defaults to 60000. Submission and transfer are separate phases. Ignored in defer mode. |
start_file_extraction Start File Extraction
Start background extraction of one local file; return task_id after upload confirmation without waiting for processing or exporting results. This confirms submission, not successful extraction. Use wait_for_task_extraction, then fetch_document_result for a returned document ID or download_results to save an export; get_task_results can inspect partial documents. Uploads may consume credits. On timeout, use any returned recovery task_id rather than uploading again. auto_approve defaults true; false requests human review, which MCP cannot perform or approve. The returned auto_approve echoes the…
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to a local document on the machine running this MCP server, not a URL or chat attachment. Supported extensions: .pdf, .jpg, .jpeg, .png, .heic, .heif. Prefer an absolute path; relative paths use… |
api_url | ||
auto_approve | boolean | Automatically approve extracted documents. Defaults to true. Set false only when human review is requested; use a start-only extraction tool to retain the task ID. MCP cannot approve documents, and co… |
folder_id | string | Optional remote Suparse folder ID to assign to uploaded documents. |
pdf_password | string | Optional password for an encrypted PDF. Treat this as a secret; it is used only for the upload and is not returned in results. |
split | boolean | Enable auto-splitting of multi-page documents with mixed document types. |
template_id | string | Optional extraction template ID. Use only a non-system team template ID from list_templates. System template IDs are discovery-only and cannot be passed directly. Omit to let Suparse auto-detect, or u… |
start_folder_extraction Start Folder Extraction
Start background extraction of sorted supported files directly inside a local folder, skipping directories and subfolders. Returns one task_id per confirmed upload without waiting for processing or exporting. At most 10 uploads run concurrently. Use wait_for_task_extraction for each task, then fetch or download results using its document IDs. Uploads may consume credits. Inspect failed entries and recovery IDs before retrying; cancellation prevents new uploads, but submitted tasks may still run. Entries marked unstarted were not uploaded. auto_approve defaults true; false requests human review…
| Parameter | Type | Description |
|---|---|---|
folder_path * | string | Path to a local folder on the machine running this MCP server, not a remote Suparse folder ID. Scans supported files directly inside it, nonrecursively. Prefer an absolute path; relative paths use the… |
api_url | ||
auto_approve | boolean | Automatically approve extracted documents. Defaults to true. Set false only when human review is requested; use a start-only extraction tool to retain the task ID. MCP cannot approve documents, and co… |
folder_id | string | Optional remote Suparse folder ID to assign to uploaded documents. |
pdf_password | string | Optional password for an encrypted PDF. Treat this as a secret; it is used only for the upload and is not returned in results. |
split | boolean | Enable auto-splitting of multi-page documents with mixed document types. |
template_id | string | Optional extraction template ID. Use only a non-system team template ID from list_templates. System template IDs are discovery-only and cannot be passed directly. Omit to let Suparse auto-detect, or u… |
wait_for_task_extraction Wait for Task Extraction
Wait for an existing extraction task_id; returns status and document_ids, not extracted data. completed and partially_completed return successfully; failed and insufficient_credits produce errors. Partial completion is not success for every document. Use fetch_document_result or download_results with the returned document IDs. Defaults to poll_interval 2 seconds and max_poll_attempts 3; SDK backoff and retries mean this is not a strict wall-clock deadline. On polling timeout, call again with the same task_id rather than uploading again. This does not approve documents awaiting human review.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | Remote Suparse task ID, not a local path or document ID. |
api_url | ||
max_poll_attempts | integer | Maximum task polling attempts; defaults to 3. |
poll_interval | number | Initial polling interval in seconds; defaults to 2. SDK backoff can increase the actual delay. |
list_templates List Templates
Discover extraction templates; defaults to compact summary view with team templates only. Prefer a matching active team template and pass its id as template_id to extraction tools. Use view full to inspect schema and prompts. include_system true adds discovery-only system templates; MCP cannot add them to the team or use their IDs directly. If no template matches, omit template_id for auto-detection or use start_quick_schema_creation when schema creation is authorized. This tool does not create or modify templates.
| Parameter | Type | Description |
|---|---|---|
api_url | ||
include_system | boolean | Defaults to false. Include discovery-only system templates in addition to team templates. Do not pass system template IDs to extraction tools. MCP cannot add system templates to the team; omit templat… |
view | string | Template response view. Summary is compact and recommended for normal template selection; full includes schema, prompts, validation rules, and creator metadata. |
start_quick_schema_creation Start Quick Schema Creation
Upload one local file to automatically create extraction schemas/templates; use when the user authorized schema creation, which may consume credits. Returns run_id for get_quick_schema_creation or wait_for_quick_schema_creation, not an extraction task_id or export_job_id. Completed runs return generated template IDs and saved document IDs; inspect those before submitting another extraction. Supply upload_batch_id and source_upload_id only when provided by an external batched-upload workflow; MCP does not create upload batches. Starting again can create duplicate work.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to a local document on the machine running this MCP server, not a URL or chat attachment. Supported extensions: .pdf, .jpg, .jpeg, .png, .heic, .heif. Prefer an absolute path; relative paths use… |
api_url | ||
folder_id | string | Optional remote Suparse folder ID to assign to the source document. |
pdf_password | string | Optional encrypted-PDF password. Treat this as a secret. |
source_upload_id | string | Optional source upload ID from an external batch workflow. |
upload_batch_id | string | Optional existing upload batch ID from an external batch workflow. |
get_quick_schema_creation Get Quick Schema Creation
Check an existing quick-schema run_id once without waiting. Returns result.status and available progress, template IDs, saved document IDs, or failure details. If processing, call again later or use wait_for_quick_schema_creation. For completed results, use template_id for future extraction and saved_document_id or saved_documents[].document_id to fetch/download existing results. Do not start another schema-creation run just to check status.
| Parameter | Type | Description |
|---|---|---|
run_id * | string | run_id returned by start_quick_schema_creation; not an extraction task ID, document ID, or export job ID. |
api_url |
wait_for_quick_schema_creation Wait for Quick Schema Creation
Wait for an existing quick-schema run_id until result.status is completed, completed_with_errors, or failed. Terminal failure is returned in result, so inspect status and failed_documents rather than assuming a successful tool call means full success. Returns generated template IDs and saved document IDs for future extraction or result retrieval. SDK defaults are 5 seconds between polls and 300 attempts; choose a smaller max_poll_attempts for short client timeouts. On polling timeout, check or wait on the same run_id rather than starting another run.
| Parameter | Type | Description |
|---|---|---|
run_id * | string | run_id returned by start_quick_schema_creation; not an extraction task ID, document ID, or export job ID. |
api_url | ||
max_poll_attempts | integer | Maximum status requests before polling timeout. SDK default: 300. Set lower to fit the MCP client's tool timeout; resume with the same run_id. |
poll_interval | number | Seconds between status requests. SDK default: 5. |
get_task_results Get Task Results
Inspect one page of documents already available for an extraction task_id, including while processing. Each documents[].id is a document ID usable by fetch_document_result, fetch_json_results, or download_results; extraction_data contains that document's current data. Pass next_cursor as cursor with the same task_id to get the next page. next_cursor null ends this snapshot, not task processing; use wait_for_task_extraction to determine completion. To refresh later, omit cursor and deduplicate by document ID. This returns a page, not a complete export.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | Remote Suparse task ID. |
api_url | ||
cursor | string | null | Opaque next_cursor from a previous page of this task. Omit or pass null to start a fresh snapshot; never construct a cursor. |
limit | integer | Maximum documents in this page: 1 to 100, default 25. |
fetch_json_results Fetch JSON Results
Export one or more existing Suparse document IDs as JSON into the MCP response, grouped by task in results (task_id, original_file, total_documents_extracted, documents). Use fetch_document_result for a direct single-document read without submitting an export; use download_results for large results, local files, CSV, XLSX, or Google Sheets. This tool only exports JSON and does not unpack ZIP artifacts. On export timeout, retain export_job_id for the export-job tools or replay the identical export with its retained idempotency_key. Does not delete documents; cleanup is explicit through delete_d…
| Parameter | Type | Description |
|---|---|---|
document_ids * | array | Suparse document IDs to export. |
api_url | ||
export_type | string | Defaults to unified. JSON currently has the same task-group shape for original and unified. |
idempotency_key | string | Optional UUID idempotency key. Retain this key and replay the identical document IDs, format, export type, and layout if submission confirmation is lost. |
wait_timeout_ms | integer | Maximum time in milliseconds to wait for an accepted export job to complete; defaults to 60000. This bounds completion waiting, including polling retries, not submission or transfer. Allow enough tota… |
fetch_document_result Fetch Document Result
Read structured JSON for one processed Suparse document_id directly, without submitting an export job or saving a local file. Returns task_id, original_file, total_documents_extracted, and documents containing extracted_data. Get document IDs from extraction results or get_task_results (documents[].id); do not substitute a task_id. Use fetch_json_results for a multi-document JSON export or download_results to save an export. Does not wait for extraction to finish.
| Parameter | Type | Description |
|---|---|---|
document_id * | string | Suparse document ID to fetch. |
api_url |
download_results Download Results
Export existing Suparse document IDs as JSON, CSV, XLSX, or Google Sheets to local disk. Returns output_path plus requested_format, artifact_format and content_type. Existing output files are overwritten: choose a new path unless replacement is intended. CSV/XLSX may return ZIP; its extension is corrected to .zip. Set unpack:true to also extract the separate files into a fresh folder and return output_paths. JSON is saved as parsed task groups. Google Sheets requires an immediate API response and saves metadata as JSON. For a known export_job_id use download_export_job to recover the original…
| Parameter | Type | Description |
|---|---|---|
document_ids * | array | Suparse document IDs to export. |
format * | string | Export format to save locally. Use this tool for JSON, CSV, XLSX, or Google Sheets; google_sheets requires a working Google integration and saves response metadata and sheet URLs as JSON, not a spread… |
api_url | ||
export_type | string | Export mode for CSV, XLSX, and Google Sheets. Defaults to unified. Accepted for JSON, which currently has the same task-group shape for either value. |
idempotency_key | string | Optional UUID idempotency key. Retain this key and replay the identical document IDs, format, export type, and layout if submission confirmation is lost. |
output_path | string | Optional local file path or existing directory on the server's machine. Existing files are overwritten. Prefer an absolute path; ~ is not expanded. Omit to use the server's working directory with an A… |
unpack | boolean | For CSV/XLSX only: extract a returned ZIP into a new folder next to the saved archive and return output_paths. Keeps the ZIP. A single workbook or CSV is returned directly. Defaults false. |
wait_timeout_ms | integer | Maximum time in milliseconds to wait for an accepted export job to complete; defaults to 60000. This bounds completion waiting, including polling retries, not submission or transfer. Allow enough tota… |
xlsx_layout | string | XLSX layout. Applies only to xlsx exports and defaults to standard. |
get_export_job Get Export Job
Check one existing export_job_id from an export response or error recovery; this is not an extraction task_id or document_id. Returns job status, generated/excluded counts, error details, expiry, and artifact metadata without waiting or downloading. Use wait_for_export_job if still running, then download_export_job for a completed artifact. Inspect exclusions and errors before claiming all requested documents were exported. Status and format strings may include values unknown to this client.
| Parameter | Type | Description |
|---|---|---|
export_job_id * | string | Remote Suparse export job ID. |
api_url |
wait_for_export_job Wait for Export Job
Wait for an existing export_job_id; does not submit an export or download its file. On completion, use download_export_job to save the artifact. Defaults to a 60000-millisecond completion wait including polling retries, not the full MCP call. On polling timeout, keep the export_job_id and call get_export_job or wait_for_export_job again instead of submitting another export. Failed, expired, or unsupported jobs may produce errors; inspect recovery details.
| Parameter | Type | Description |
|---|---|---|
export_job_id * | string | Remote Suparse export job ID. |
api_url | ||
wait_timeout_ms | integer | Milliseconds to wait for completion; defaults to 60000. |
download_export_job Download Export Job
Save the artifact of an existing completed export_job_id to local disk, including after reconnecting. Preserves original bytes, including ZIP; does not parse JSON, unpack ZIP, wait for completion, or submit another export. Use get_export_job or wait_for_export_job first if needed. Verifies artifact size and SHA-256 before atomic publication. Returns output_path. overwrite defaults false; enable only when replacing a local file is intended. An expired artifact cannot be recovered by retrying this download.
| Parameter | Type | Description |
|---|---|---|
export_job_id * | string | Remote Suparse export job ID. |
api_url | ||
output_path | string | Optional local file path or existing directory on the server's machine. Prefer an absolute path; ~ is not expanded. Omit to save in the server's working directory using the artifact filename. Original… |
overwrite | boolean | Allow replacing an existing local file. Defaults to false. |
delete_documents Delete Documents
Delete documents from Suparse remotely using document IDs, not task IDs, export job IDs, or local paths. Use only when deletion or cleanup is requested, after confirming any required results are safely saved. Deleted IDs cannot be used for later result retrieval or exports. Does not delete local input or exported files. Repeating deletion does not create new work, though its returned boolean may change.
| Parameter | Type | Description |
|---|---|---|
document_ids * | array | Suparse document IDs to delete. |
api_url |