API & MCP
Everything a person can do on Secure PDF Redactor, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://securepdfredactor.usefulweb.site/api/v1/calculate– run Secure PDF RedactorGET https://securepdfredactor.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Secure PDF Redactor
Finds words, phrases, regular expressions or typical personal data (e-mails, phone numbers, IBANs, card numbers) and any rectangles you specify, then rebuilds the affected pages as images with black boxes so the hidden text is truly gone. Optionally re-runs OCR so the rest of the page stays searchable, strips metadata, and proves the result with a text search of the output.
| Field | Type | Default | Description |
|---|---|---|---|
file (required) | file | — | PDF. Max 100 MB and 500 pages. |
terms | list | — | Words or phrases to redact. One per line, e.g. a name or an account number. Matching ignores upper/lower case unless you turn it on below. |
patterns | list | — | Regular expressions (advanced). One JavaScript regular expression per line, e.g. \bDE\d{20}\b. |
presets | multiselect (email, phone, iban, card, date) | — | Also find |
caseSensitive | boolean | false | Match upper/lower case exactly |
areas | textarea | — | Areas to black out. One per line: page (or "all"), x, y, width, height, in points from the top-left corner (72 pt = 1 inch) or in % of the page. |
dpi | integer | 150 | Resolution of redacted pages. Redacted pages become images. 150 DPI is readable; 300 DPI is sharper but larger. |
ocr | boolean | true | Make redacted pages searchable again (OCR of the remaining text) |
ocrLanguage | select (eng, deu) | "eng" | OCR language |
removeAnnotations | boolean | true | Remove comments, links and form fields from all pages |
password | text | — | PDF password (only if the file is protected). Used only to open the file for this conversion; it is written to a private temporary file, never to a command line, and deleted with the job. |
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://securepdfredactor.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
secure_pdf_redactor - Local stdio connector:
node src/mcp-stdio.ts --tool=secure-pdf-redactor
{
"mcpServers": {
"secure-pdf-redactor": { "type": "http", "url": "https://securepdfredactor.usefulweb.site/mcp" }
}
}