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.
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
Also from anonym.legal