MCP SERVER

Add Privacy Tools to Your Claude Agent Loop

Connect our MCP server. 9 privacy tools auto-available in Claude. Real-time PII detection and redaction in agentic workflows. Zero data cloud uploads.

9 Tools in Your Workflow

anonym_legal_analyze_text

Scan text for PII without changing it. Returns entity type, confidence, position. Use in RAG pipeline before LLM context.

anonym_legal_anonymize_text

Replace PII in text. Operators per entity: replace, redact, hash, encrypt, mask, keep. Mode "tokenize" returns a session for detokenizing later.

anonym_legal_detokenize_text

Restore the original values in tokenized text, using the session_id from an earlier tokenize call.

anonym_legal_redact_image

Redact or analyze PII in PNG or JPEG images (OCR-based).

anonym_legal_list_presets

List the presets available to your account, to pass as the preset parameter.

anonym_legal_estimate_cost

Preview token cost before processing. Free, no tokens deducted.

anonym_legal_get_balance

Check token balance, usage and billing cycle.

anonym_legal_list_sessions

List active tokenization sessions. Free, no tokens deducted.

anonym_legal_delete_session

Delete a tokenization session and its token mappings.

No. There is no SDK package. The REST API works with any HTTP client: call it with requests in Python or fetch in Node.js. Code examples are on the Code Examples page.

The MCP Server exposes 9 privacy tools, for example anonym_legal_analyze_text, anonym_legal_anonymize_text and anonym_legal_detokenize_text, that MCP-capable agents can call directly. MCP access is included in Pro and Business. Prevents PII leakage in RAG pipelines and agent workflows.

The API is synchronous. Batch endpoints process arrays of text in a single call. The API runs on EU servers. Document content is not stored after processing, unless you use the optional history.

The API runs on our EU-hosted infrastructure. Document content is not stored after processing, unless you use the optional history. For enterprise self-hosting requirements, contact us.

Yes. Send arrays of text strings in a single API call. The batch endpoint (POST /api/presidio/batch) takes up to 5 texts per request on Basic, 10 on Pro and 50 on Business.

Free tier: 200 tokens per 30 days in the web app (API access starts with Basic). Basic: €3/month (1,000 tokens). Pro: €15/month (4,000 tokens, adds the MCP Server). Business: €29/month (10,000 tokens). What a call costs depends on text length and the entities found, so one call can cost more than one token.

Setup Instructions (5 minutes)

Step 1: Get API Key

Sign up at anonym.legal. Copy your API key from settings. Keep it secret (treat as password).

Step 2: Configure claude_desktop_config.json

{
  "mcpServers": {
    "anonym-legal": {
      "type": "http",
      "url": "https://anonym.legal/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

No Node.js needed: the server is reached by URL. In Claude.ai, add https://anonym.legal/mcp as a custom connector (Settings β†’ Connectors) and sign in with OAuth instead. MCP access is included in Pro and Business.

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

Step 3: Restart Claude

Quit Claude Desktop completely. Relaunch. Check that the anonym-legal server is listed as connected in your client.

Step 4: Test in Chat

Try: "Can you scan this text for PII: My SSN is 123-45-6789?"
Claude calls the anonym_legal_analyze_text tool and returns the results.

Agentic Workflow Example

# Claude's reasoning loop:
# 1. User: "Process these customer notes and summarize insights"
# 2. Claude calls anonym_legal_anonymize_text with mode "tokenize"
# 3. Tool returns the anonymized text and a session_id
# 4. Claude processes the anonymized text, generates summary
# 5. When original values are needed, Claude calls
#    anonym_legal_detokenize_text with the session_id
# 6. anonym_legal_delete_session removes the token mappings

Enterprise Features

πŸ” Bearer Token Auth

API key never exposed in code. Sent as Bearer header. Session tokens <55min TTL.

πŸ“Š Audit Log

Every tool call logged: timestamp, user, entities, method.

πŸ”„ Rate Limiting

Fair usage limits apply. Contact us for enterprise limits.

🌍 Scalable Infrastructure

EU-hosted infrastructure.

⚑ Parallelism

Process multiple requests concurrently. Agent loop stays responsive.

πŸ“ˆ Production Ready

Enterprise-grade performance. No pre-provisioning needed.

Troubleshooting

1. Check API key in config (no spaces/quotes). 2. Restart Claude completely (not refresh). 3. Check console: Help β†’ "View Logs" for errors.

API key expired or revoked. Regenerate at dashboard. Update config. Restart Claude.

Check network latency to closest region. Contact support for regional routing optimization.

Watch the API In Action

See PII detection and anonymization via REST API and MCP Server

Connect Privacy Tools Now

Get API key. 5 minutes to setup. Add 9 privacy tools to Claude agent loop.

Get Started

Frequently Asked Questions

Add the anonym.legal MCP server to your Cursor settings (Settings β†’ MCP β†’ Add Server). Configuration: server URL https://anonym.legal/mcp, Bearer token authentication. Cursor AI can then use the 9 anonym.legal tools, for example anonym_legal_analyze_text, anonym_legal_anonymize_text and anonym_legal_redact_image. MCP access is included in Pro and Business.

Yes. Any VS Code extension that supports MCP (Continue.dev, Cline) can connect to anonym.legal's MCP Server. Add the server configuration to your MCP settings file and the AI assistant gains PII detection capabilities.

anonym_legal_analyze_text (detect PII), anonym_legal_anonymize_text (replace, mask, hash or encrypt PII), anonym_legal_detokenize_text (restore tokenized values), anonym_legal_get_balance (token balance), anonym_legal_estimate_cost (cost estimate), anonym_legal_list_presets (available presets), anonym_legal_list_sessions (tokenization sessions), anonym_legal_delete_session (delete a session), anonym_legal_redact_image (redact or analyze PII in PNG or JPEG images).