Use Redact PDF AI from an AI assistant
Redact PDF AI works inside AI assistants and coding agents through MCP (Model Context Protocol). The assistant calls our tools; we redact or pseudonymize the document and hand back the result. There are three ways in, and they differ in where the file is read and in what the assistant gets to see.
| Claude connector (remote) | Local MCP server | REST API | |
|---|---|---|---|
| Where it runs | Our server, https://mcp.redact-pdf.ai/mcp | Your computer (npx -y redact-pdf-mcp) | Your code |
| Works in | Claude on the web, desktop and mobile, Claude Code, any MCP client with OAuth sign-in | Claude Code, Cowork, Claude Desktop, Cursor, VS Code, Codex, any stdio MCP client | Anything that sends HTTPS |
| Sign-in | Your redact-pdf.ai account (OAuth), no key to copy | API key | API key (X-API-Key) |
| How the file arrives | You pick it on a private upload page (create_upload_link), or the assistant passes a file under 1 MB | Read from your disk by path | Multipart upload, or a direct upload for large PDFs |
| Results | Download pages that need a click, valid for 15 minutes | Files written next to the original | Files you download |
| Real names back after pseudonymizing | restore_names on our side, returns a download link | restore_names on your machine, returns a file path | The correspondence table (CSV) |
Which one to choose
- You chat with Claude and want a document redacted before you send it on: the Claude connector. Nothing to install, and the redacted file comes back as a download link.
- You want nothing about the document to reach the AI: the local MCP server. It reads the file from your disk, the assistant only works on the pseudonymized text, and the real names are put back on your computer.
- You are building a product or a pipeline: the REST API, starting with the cURL quickstart.
All three use the same account, the same detection engine and the same page credits. Documents are processed on Microsoft Azure in the EU (Ireland) and Switzerland and are never used to train AI models.
What the assistant sees
Redact mode (black boxes): the assistant gets a link to the redacted PDF and counts per category. It never receives the text that was removed.
Pseudonymize mode: every person, company, address, email, phone number, date, IBAN and card number becomes a consistent tag such as [Person 1]. The assistant gets the document as text with those tags in place, so it can summarize, analyse or draft from it. Everything that is not a detected entity stays in that text, including health or financial details. See the Pseudonymize guide.
Building your own agent or workflow
Recipes with runnable code for both patterns (redact before a document leaves the company; pseudonymize, work, restore names):
- Claude Agent SDK
- Claude Code: MCP server and project skill
- OpenAI Agents SDK
- LangGraph and LangChain
- n8n and Make