DocuPipe

v0.1.0
io.github.DocuPipe/docupipe-mcp Checked 2 days ago Published 26 days ago

Upload documents and extract structured JSON from Claude Code, Codex, Cursor and other MCP clients.

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

extract Extract data from a document

One call from a file to structured JSON: uploads a local file or URL (or reuses a document_id), runs a DocuPipe extraction, waits and returns the extracted data. Pass schema_id to reuse a saved schema, json_schema to define the fields inline, or neither to let DocuPipe draft a schema from the document (its schemaId comes back so later calls give the same fields). If it returns status 'processing', call the tool in 'next' to resume; it never uploads or extracts twice. Credits: upload 1/page for PDF, image, Word and HTML (CSV, Excel, JSON, text and XML upload free); extraction 2/page at standard…

ParameterTypeDescription
citationsbooleanCite every value to its place on the page (bounding box and confidence). Runs at standard effort, 3 credits/page.
document_idstringAn already uploaded document, instead of uploading again.
effort_levelstringExtraction effort. 'standard' (default) is right for most documents; use 'high' only after standard missed or misread values.
file_pathstringLocal file to upload, relative to the working directory.
guidelinesstringPlain-language extraction instructions. Without a schema they also steer the drafted schema.
include_field_metadatabooleanAlso return per-field page numbers and, with citations, boxes and confidence.
json_schemaobjectInline JSON Schema (type object, properties with a description each). Saved as a new schema first, free.
save_tostringOptional path to write the extracted JSON to, relative to the working directory.
schema_idstringSaved schema to extract with (list_schemas).
schema_namestringName for the schema created from json_schema.
standardization_idstringResume: an extraction already started. Requires standardization_job_id.
standardization_job_idstringResume: the job of standardization_id.
upload_job_idstringThe upload job of document_id, when resuming.
urlstringPublic URL of the file to upload, instead of file_path.

upload_document Upload a document

Upload a local file or URL to DocuPipe and wait for it to be read (OCR and parsing). Returns the document_id used by every other tool. Credits: 1/page for PDF, image, Word and HTML; CSV, Excel, JSON, text and XML upload free.

ParameterTypeDescription
datasetstringOptional dataset name to group documents.
file_pathstringLocal file, relative to the working directory.
metadataobjectOptional metadata stored with the document.
urlstringPublic URL of the file, instead of file_path.
waitbooleanWait for parsing to finish (default true).

get_document Get a document and its parsed text

Fetch a document's processing status, page count and parsed text (tables as markdown). Set include_layout for per-page sections with bounding boxes. Free.

ParameterTypeDescription
document_id *string
include_layoutbooleanReturn the full per-page layout (sections, tables, boxes) instead of plain text.

standardize Extract data from an uploaded document

Run an extraction (standardization) on one uploaded, fully processed document and wait for the result. Use extract instead when starting from a file. Credits: upload 1/page for PDF, image, Word and HTML (CSV, Excel, JSON, text and XML upload free); extraction 2/page at standard effort, 4/page at high effort, 3/page with citations (always standard effort). Without a schema, drafting one costs 1 credit per page on at most the first 5 pages. Creating a schema from json_schema is free.

ParameterTypeDescription
document_id *string
citationsbooleanCite every value to its place on the page (bounding box and confidence). Runs at standard effort, 3 credits/page.
effort_levelstringExtraction effort. 'standard' (default) is right for most documents; use 'high' only after standard missed or misread values.
guidelinesstring
save_tostringOptional path to write the extracted JSON to, relative to the working directory.
schema_idstringSaved schema; omit to have DocuPipe draft one from the document.
waitbooleanWait for the result (default true).

get_standardization Get an extraction result

Fetch the extracted JSON of a finished standardization. While the extraction is still running this answers not found; wait on its job first. Free.

ParameterTypeDescription
standardization_id *string
include_field_metadatabooleanAlso return per-field page numbers and, with citations, boxes and confidence.
save_tostringOptional path to write the extracted JSON to, relative to the working directory.

create_schema Create a schema

Save a JSON Schema as a DocuPipe schema so every extraction returns the same fields. Free. Use type object with a description on each property; arrays of objects for line items.

ParameterTypeDescription
json_schema *object
schema_name *string
guidelinesstringPlain-language instructions applied whenever this schema is used.

list_schemas List schemas

List the account's saved schemas (id and name), newest first, to reuse one instead of creating a new one. Free.

ParameterTypeDescription
limitinteger
offsetinteger

list_classes List classes

List the account's classification classes (id, name, description). classify needs class ids from here. Free.

classify Classify a document

Classify one uploaded document into the account's classes and wait for the answer. Credits: 0.1/page, rounded up per document (at least 1).

ParameterTypeDescription
document_id *string
class_idsarrayCandidate classes (list_classes). Omit to use all classes.
include_unknownbooleanAllow 'unknown' when nothing fits (single-class mode).
instructionsstring
multi_classbooleanAllow more than one class per document.

split_document Split a document

Split one uploaded document into sub-documents, with AI deciding where each one starts, and wait for the new document ids. Credits: 0.2/page, rounded up.

ParameterTypeDescription
document_id *string
datasetstringDataset for the new documents.
instructionsstringHow to split, e.g. 'one document per invoice'. Can also skip parts you don't need.

list_workflows List workflows

List workflows that run_workflow can start on one document: classic workflows and Architect workflows that are runnable and take a single document. Free.

run_workflow Run a workflow on a document

Upload a local file or URL with a workflow attached and, for Architect workflows, wait for the run's outputs. Classic workflows return the ids of the jobs they started (use wait_for_jobs, then get_standardization). Credits: the upload plus each step the workflow runs. Resume an Architect run with workflow_run_job_id.

ParameterTypeDescription
datasetstring
file_pathstring
metadataobject
urlstring
workflow_idstringWorkflow to run (list_workflows).
workflow_run_job_idstringResume: the run job returned earlier.

convert_to_excel Convert a document to Excel

Turn a document into an .xlsx workbook without a schema (one sheet per table). Takes a local file, URL or document_id, waits for the workbook and can save it locally. Credits: upload, plus 2/page for the conversion. Resume with the call in 'next'.

ParameterTypeDescription
document_idstring
file_pathstring
instructionsstringWhat the spreadsheet should contain, e.g. which tables or columns to keep.
save_tostringOptional local path for the .xlsx file.
schema_idstringA schemaId from an earlier conversion, to lay out similar files the same way.
upload_job_idstringThe upload job of document_id, when resuming.
urlstring

get_excel_conversion Get an Excel conversion

Check an Excel conversion, wait for it to finish, and optionally save the .xlsx locally. The download link is fresh on every call. Free.

ParameterTypeDescription
conversion_id *string
save_tostringOptional local path for the .xlsx file.

get_job Get a job

Fetch one job's status, type, error message and results (for split, classify and workflow jobs). A job in error is returned as a tool error. Free.

ParameterTypeDescription
job_id *string

wait_for_jobs Wait for jobs

Wait until the listed jobs finish (any job type) and report each one's status. Returns early when all are done or one fails; call again if some are still processing. An id that stays 'unknown' may be wrong or belong to another account (check it with get_job). Free.

ParameterTypeDescription
job_ids *array
max_wait_secondsinteger