PII Detection MCP
Detect and mask personally identifiable information (PII) in text and images using local AI. Covers emails, phone numbers, SSNs, credit cards, names, and addresses. Returns detected entities with positions and masked output. GDPR/CCPA compliant — fully local.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text |
string | ❌ | Input text to scan |
image_url |
string | ❌ | Image URL for visual PII detection |
pii_types |
array | ❌ | Types: email, phone, ssn, credit_card, name, address |
mask_output |
boolean | ❌ | Return redacted version (default: true) |
Example Response
{
"entities_found": [
{"type": "email", "value": "john.doe@example.com", "start": 45, "end": 65, "confidence": 0.99},
{"type": "ssn", "value": "***-**-4521", "start": 102, "end": 113, "confidence": 0.98},
{"type": "phone", "value": "+1-555-***-**89", "start": 178, "end": 192}
],
"masked_text": "Contact [EMAIL] for questions. SSN: [SSN]. Call [PHONE].",
"pii_detected": true,
"risk_level": "high"
}
Use Cases
- Data loss prevention (DLP) for file upload systems
- GDPR data subject access request redaction
- Healthcare document de-identification for research
Access
# x402 endpoint — pay $0.02 USDC per call (Base mainnet)
POST https://x402.ntriq.co.kr/pii-detect
# Service catalog
curl https://x402.ntriq.co.kr/services
x402 micropayments — USDC on Base, gasless EIP-3009
