PDF Redaction MCP
Redact and detect PII in PDFs directly from Claude Desktop, Claude Code, Cursor, or any MCP-compatible client.
PDF Redaction exposes its PII detection and redaction engine as an MCP (Model Context Protocol) server. This lets any MCP-compatible AI client — Claude Desktop, Claude Code, Cursor, and others — call PDF redaction tools directly as part of an agent's toolset, without writing any REST integration code.
Connect to Claude
Endpoint
https://api.pdf-redaction.com/mcp/The server uses the Streamable HTTP transport and is served alongside the existing REST API.
Authentication
This server uses OAuth 2.1. The first time your client calls a tool, it opens your browser to log in to your PDF Redaction account (or create one — magic link, Google, Microsoft, and LinkedIn are all supported) — no API key required. Claude Desktop, Claude Code, Cursor, and other OAuth-capable MCP clients handle this automatically as part of connecting.
Once authorized, tool calls run against your account's usage and credits, the same as the REST API. If credits run out, calls return an MCP tool error describing the problem (e.g. Credits exhausted).
Free tier limits
- 10 pages per request
- 100 free pages per month
- 5 requests per minute
Configuring your client
Claude Desktop / Claude Code / Claude.ai
Click Connect to Claude above, or add it manually:
- In Claude, go to Settings → Connectors → Add custom connector.
- Enter
https://api.pdf-redaction.com/mcp/as the URL. - Approve the login prompt that opens in your browser.
For Claude Code, you can instead run:
claude mcp add --transport http pdf-redaction https://api.pdf-redaction.com/mcp/Cursor
Add the server to .cursor/mcp.json:
{
"mcpServers": {
"pdf-redaction": {
"url": "https://api.pdf-redaction.com/mcp/"
}
}
}Cursor opens a browser login prompt the first time you use a tool from this server.
ChatGPT
ChatGPT doesn't support one-click connector installs yet, so add the server manually:
- In ChatGPT, enable Developer mode (Settings → Apps & Connectors → Advanced settings).
- Go to Connectors → Create, and enter
https://api.pdf-redaction.com/mcp/as the server URL. - Choose OAuth authentication and approve the login prompt that opens in your browser.
Available tools
anonymize_pdf
Detects PII in a PDF and returns a redacted copy of the document.
| Parameter | Type | Default | Description |
|---|---|---|---|
pdf | string | — | Base64-encoded PDF document |
tags | Tags[] | all tags | PII tags to detect and redact |
force_ocr | bool | false | Force OCR even if text is extractable |
rotated_text | bool | false | Detect and recognize rotated text |
redact_text | bool | true | When false, PII is detected but not redacted from the returned PDF |
min_chunk_size | int | 0 | Minimum chunk size for text processing |
ocr_langs | Langs[] | — | OCR languages |
custom_tags | string[] | — | Additional custom tags to detect/redact |
include_pdf_base64 | bool | false | Also include the redacted PDF as base64 under pdf |
Returns: { detected_pii, processing_time, download_url } — download_url is a secure, time-limited link to download the redacted PDF. If include_pdf_base64 is true, the response also includes pdf, the base64-encoded redacted document.
anonymize_pdf_from_upload
Anonymizes a PDF that was uploaded to the server beforehand, instead of passing it inline as base64. Useful for large files or clients with built-in file-upload support (e.g. Claude Desktop, claude.ai).
- Upload the PDF via the client's file upload UI, or call the
store_filestool directly. - Call
anonymize_pdf_from_uploadwith the uploaded file'sfile_name.
| Parameter | Type | Default | Description |
|---|---|---|---|
file_name | string | — | Name of a PDF previously uploaded |
tags | Tags[] | all tags | PII tags to detect and redact |
force_ocr | bool | false | Force OCR even if text is extractable |
rotated_text | bool | false | Detect and recognize rotated text |
redact_text | bool | true | When false, PII is detected but not redacted from the returned PDF |
min_chunk_size | int | 0 | Minimum chunk size for text processing |
ocr_langs | Langs[] | — | OCR languages |
custom_tags | string[] | — | Additional custom tags to detect/redact |
include_pdf_base64 | bool | false | Also include the redacted PDF as base64 under pdf, embedded inline in the response |
Returns: { detected_pii, processing_time, download_uri, download_url } — download_uri is an MCP resource URI (redaction://...) and download_url a secure, time-limited https:// link, both pointing at the redacted PDF. The result is also saved as <file_name>-redacted.pdf, retrievable later via the list_files/read_file tools. If include_pdf_base64 is true, the response also includes pdf.
detect_pii_pdf
Detects PII in a PDF without redacting it.
| Parameter | Type | Default | Description |
|---|---|---|---|
pdf | string | — | Base64-encoded PDF document |
tags | Tags[] | all tags | PII tags to detect |
force_ocr | bool | false | Force OCR even if text is extractable |
rotated_text | bool | false | Detect and recognize rotated text |
ocr_langs | Langs[] | — | OCR languages |
custom_tags | string[] | — | Additional custom tags to detect |
Returns: { detected_pii, processing_time }
anonymize_pdf_custom
Redacts a PDF using a free-form natural-language instruction instead of a predefined tag list.
| Parameter | Type | Description |
|---|---|---|
pdf | string | Base64-encoded PDF document |
prompt | string | e.g. "Redact all dates, names, and email addresses" |
include_pdf_base64 | bool | Also include the redacted PDF as base64 under pdf (default false) |
Returns: { detected_pii, processing_time, download_url }, and optionally pdf if include_pdf_base64 is true.
Supported tags
DATE, PERSON_NAME, ORGANIZATION, LOCATION, EMAIL, PHONE, ID, ACCOUNT, ZIP_CODE, ADDRESS, IP, URL, SSN, DRIVER_LICENSE, PASSPORT, PASSWORD, AGE, CREDIT_CARD, MONEY_AMOUNT, SIGNATURE, QR_CODE, FACE
Supported OCR languages
eng, spa, fra, deu, ita, por, rus
Redact PDFs from your favorite AI client
Connect the PDF Redaction MCP server to Claude Desktop, Claude Code, Cursor, ChatGPT, or any MCP-compatible client — no API key required.
Connect to Claude