Skip to main content
Glama
apasupul

MCP Presidio Server

by apasupul

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 --reload

Endpoints

  • POST /session -> { "session_id": "<uuid>" }

  • POST /anonymize body:

{
  "session_id": "uuid",
  "messages": [{"content": "Secret is 123, password=foo"}]
}

returns anonymized messages and stores mapping for the session.

  • POST /deanonymize body:

{
  "session_id": "uuid",
  "text": "<<CUSTOM_TOKEN_0>> is 123, <<pass_pattern_...>>"
}

MCP server

Run the stdio MCP server:

python mcp_server/server.py

Register it in your MCP-compatible client pointing to this command.

Notes

  • Storage uses SQLite at app/data.db with tables sessions and mappings.

  • Custom patterns mirror the code you provided; add more Presidio recognizers as needed.

  • Placeholders look like <<ENTITY_#>> and are reversible per session_id.

F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    C
    quality
    D
    maintenance
    Enables high-precision detection, anonymization, encryption and decryption of personally identifiable information (PII) in text using GPT-4o-based detection and advanced cryptographic methods. Supports both deterministic encryption for searchable data and format-preserving encryption for structured identifiers.
    Last updated
    8
    1
  • A
    license
    A
    quality
    B
    maintenance
    Sanitizes text and files by removing PII, secrets, and custom patterns locally before sending to LLMs, with optional reverse-scrubbing.
    Last updated
    3
    272
    MIT

View all related MCP servers

Related MCP Connectors

  • Classify data safety before storing or sharing. GDPR, HIPAA, PCI-DSS, CCPA. AI-powered.

  • Responsible-AI guardrails for agents: scoring with policy, injection & PII detection, DPDP.

  • Deterministic trust gate for AI output: leaked-secret, prompt-injection & PII in one call.

View all MCP Connectors

Appeared in Searches

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/apasupul/mcp_presidio_server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server