Integrations
Plug pseudonymization in where you work
Safe-doc does one thing: pseudonymize your documents before AI. You choose where to call it: in Claude with the Cowork skill, in your scripts and applications with the API, in your agents with the MCP server, or per call with x402.
Four ways to integrate Safe-doc
| Integration | For whom | What it lets you do |
|---|---|---|
| Claude Cowork skill | Claude users (Cowork, Desktop, Code) | Hand a file to Claude without it reading it: it only receives the pseudonymized copy |
| REST API (below) | Developers, integrators, automation tools | Pseudonymize a text or a batch of documents from your scripts and applications |
| MCP server | MCP-compatible agents and assistants | Hand complete business processes to an agent, on personal data |
| x402 | Autonomous AI agents | Have a text anonymized with no account or key, paying for the call in USDC |
The engine is the same everywhere: more than 90 types of data detected, stable aliases from one file to the next, and no document kept after processing.
The Safe-doc skill for Claude
The skill is installed once in Claude (Cowork, Claude Desktop or Claude Code). When you hand a file to Claude, it does not open it: a script in the skill sends it to Safe-doc, and only the pseudonymized version enters the conversation. Claude works on tokens such as [PERSON_1], which refer to the same person in every file of the session.
The mapping table stays on your computer, and restoring happens offline: even the final result does not go back through a server. Installation takes two minutes: download the skill from your Safe-doc account (your API key is already included), upload it to Claude, then allow safe-doc.ai in the code execution settings. The full walkthrough is on the Claude Cowork page.
The REST API
The API lets you pseudonymize from your own tools: a script that prepares an extract before sending it to a model, a Make or n8n scenario, a legal CRM, a business portal. A text is processed in one call. Documents (PDF, Word, spreadsheets) go through asynchronous processing: create a job, upload the file, track the status, download the result.
The result contains the pseudonymized text and its mapping table in JSON; the original file is not rebuilt. Across a batch, the same person keeps the same alias in every file, which suits data rooms and audits. Authentication uses a Bearer token, and the OpenAPI documentation, with curl examples, is at app.safe-doc.ai/docs.
Sample request
POST https://app.safe-doc.ai/v1/pseudonymize
Authorization: Bearer sk_live_…
Content-Type: application/json
{
"text": "The agreement between John Smith and Morrison Partners sets a fee of £14,500.",
"mode": "pseudonymize",
"locale": "en"
}
Sample response
{
"pseudonymized_text": "The agreement between [PERSON_1] and [ORG_1] sets a fee of [AMOUNT_1].",
"entities_detected": 3,
"mapping": {
"PERSON_1": "John Smith",
"ORG_1": "Morrison Partners",
"AMOUNT_1": "£14,500"
},
"residual_risk_score": 0.12
}And for your agents
The MCP server gives your agents the same functions: they pseudonymize, work on aliases, then restore the real values. That is what makes it possible to hand AI whole processes, such as payment reminders, reconciliations or summaries, on data you could not hand it until now. For an agent with no account, x402 lets it have a text anonymized by paying for the call.
And inside the chat window
For those who prefer to stay in ChatGPT, Claude, Gemini, Mistral, Perplexity or Copilot, the optional Chrome extension does the same thing directly in the page: the message goes out protected and the answer shows the real names.
Our guides on this topic
GuideDocument pseudonymization API: the guide for developers and CISOsIntegrating and deploying a document pseudonymization API: endpoints, a step-by-step pipeline, stateless or stateful, domains, authentication, curl and Python examples, tests and a GDPR checklist.Read the guide
GuideMCP and pseudonymization: finally handing your business processes to AIMCP lets you hand an AI agent complete processes (payment reminders, reconciliations, summaries) that were blocked by personal data until now. How to pseudonymize in an MCP flow, the protocol's specific risks and the controls to put in place.Read the guide Getting started
Access to the API and the MCP server depends on your plan: see pricing. For a technical question or an Enterprise deployment, contact us.