API & MCP
Everything a person can do on Paperwell Document Text & Data Scan, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://paperwelldocumentscan.usefulweb.site/api/v1/calculate– run Paperwell Document Text & Data ScanGET https://paperwelldocumentscan.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Paperwell Document Text & Data Scan
Extracts the full plain text of a PDF (per page), DOCX, HTML, text file or photo/scan (OCR) and scans it for DOIs, ISBNs, ISSNs, ORCIDs, arXiv ids and PMIDs (with check-digit validation), personal data to redact (e-mail, IBAN, phone, payment card numbers), dates, amounts and periods. Paperwell uses it to make documents searchable, comparable and ready for redaction.
| Field | Type | Default | Description |
|---|---|---|---|
text | textarea | — | Text. Paste text, or upload a file below (exactly one). |
file | file | — | Or upload a file. PDF (text layer), DOCX, HTML, text or a photo/scan (PNG/JPG, read with OCR). Max 10 MiB. Read in memory and not stored. |
includeText | boolean | true | Include the full text in the result |
Example request
Reading notes with DOIs, ISBNs and an ORCID
curl -X POST https://paperwelldocumentscan.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"text":"Little (1961), doi:10.1287/opre.9.3.383. Textbook ISBN 0-306-40615-2. Author ORCID 0000-0002-1825-0097. Slide typo: ISBN 978-3-16-148410-5.","includeText":false}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://paperwelldocumentscan.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
paperwell_document_scan - Local stdio connector:
node src/mcp-stdio.ts --tool=paperwell-document-scan
{
"mcpServers": {
"paperwell-document-scan": { "type": "http", "url": "https://paperwelldocumentscan.usefulweb.site/mcp" }
}
}