MCP Presidio Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Presidio Serveranonymize the password 'mySecret123' in this session"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Presidio Server (Anonymize/Deanonymize)
This project exposes the same functionality via MCP tools and FastAPI endpoints.
Quickstart
python -m venv .venv && source .venv/bin/activate # on Windows: .venv\Scripts\activate
pip install -r requirements.txt
uvicorn app.main:app --reloadEndpoints
POST /session->{ "session_id": "<uuid>" }POST /anonymizebody:
{
"session_id": "uuid",
"messages": [{"content": "Secret is 123, password=foo"}]
}returns anonymized messages and stores mapping for the session.
POST /deanonymizebody:
{
"session_id": "uuid",
"text": "<<CUSTOM_TOKEN_0>> is 123, <<pass_pattern_...>>"
}MCP server
Run the stdio MCP server:
python mcp_server/server.pyRegister it in your MCP-compatible client pointing to this command.
Notes
Storage uses SQLite at
app/data.dbwith tablessessionsandmappings.Custom patterns mirror the code you provided; add more Presidio recognizers as needed.
Placeholders look like
<<ENTITY_#>>and are reversible persession_id.
This server cannot be deployed
Maintenance
Related MCP Connectors
Redact PII from text before it reaches a model. Nothing stored, no third-party AI.
Detects and redacts PII (emails, phones, SSNs, names, addresses) from text. $0.02/call via x402.
Stateless PII redaction over MCP/REST. Free ≤1000 words or $0.01/call; file upload supported.
Detect and redact Norwegian PII (fodselsnummer, names, health data) in text and PDFs.
Related MCP Servers
- AlicenseAqualityDmaintenanceScans prompts for PII and masks or redacts sensitive data locally before sending to an LLM, supporting multiple anonymization modes.1MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to redact PII from text, summarize redacted content, and manage custom redaction patterns across multiple languages.-
- AlicenseAqualityBmaintenanceSanitizes text and files by removing PII, secrets, and custom patterns locally before sending to LLMs, with optional reverse-scrubbing.3105 npm2MIT
- AlicenseNot gradedqualityCmaintenanceEnables PII detection and anonymization using Microsoft Presidio with tools, resources, and prompts via MCP.MIT