Installation
Configuration
The MCP server is configured via environment variables:| Variable | Required | Description |
|---|---|---|
BLINDFOLD_API_KEY | Yes | Your Blindfold API key |
BLINDFOLD_REGION | No | Region for data residency: eu or us |
BLINDFOLD_BASE_URL | No | Custom API base URL (overrides region) |
Setup with Claude Desktop
Add to your Claude Desktop configuration file:- macOS
- Windows
Edit
~/Library/Application Support/Claude/claude_desktop_config.json:Setup with Cursor
Add to your Cursor MCP settings (.cursor/mcp.json in your project or global settings):
Setup with Claude Code
Add the MCP server to Claude Code:Available Tools
Once connected, the AI assistant has access to these tools:blindfold_detect
Detect PII in text without modifying it. Returns detected entities with types, positions, and confidence scores. Parameters:text(string) — Text to analyze, ORtexts(string[]) — Array of texts for batch processing (max 100)policy(string, optional) — Detection policyentities(string[], optional) — Specific entity types to detectscore_threshold(number, optional) — Minimum confidence (0.0-1.0)
blindfold_tokenize
Replace PII with reversible tokens. Returns tokenized text and a mapping to restore values later. Parameters:text(string) — Text to tokenize, ORtexts(string[]) — Array of texts for batch processing (max 100)policy(string, optional) — Detection policyentities(string[], optional) — Specific entity types to detectscore_threshold(number, optional) — Minimum confidence (0.0-1.0)
blindfold_detokenize
Restore original values from tokenized text using a mapping. Parameters:text(string) — Text containing tokensmapping(object) — Token-to-original mapping from a previous tokenize call
blindfold_mask
Partially hide PII with masking characters. Parameters:text(string) — Text to mask, ORtexts(string[]) — Array of texts for batch processing (max 100)policy(string, optional) — Detection policymasking_char(string, optional) — Masking character (default:*)chars_to_show(number, optional) — Characters to leave visiblefrom_end(boolean, optional) — Show visible chars from end (default: true)
blindfold_redact
Permanently remove PII from text. Parameters:text(string) — Text to redact, ORtexts(string[]) — Array of texts for batch processing (max 100)policy(string, optional) — Detection policyentities(string[], optional) — Specific entity types to redactscore_threshold(number, optional) — Minimum confidence (0.0-1.0)
blindfold_synthesize
Replace PII with realistic fake data. Supports 8 languages. Parameters:text(string) — Text to synthesize, ORtexts(string[]) — Array of texts for batch processing (max 100)policy(string, optional) — Detection policylanguage(string, optional) — Language:en,cs,de,fr,es,it,pl,sk
blindfold_hash
Replace PII with deterministic one-way hashes. Parameters:text(string) — Text to hash, ORtexts(string[]) — Array of texts for batch processing (max 100)policy(string, optional) — Detection policyhash_type(string, optional) — Algorithm:md5,sha1,sha256(default)hash_length(number, optional) — Truncate hash length
blindfold_encrypt
Encrypt PII with AES encryption. Parameters:text(string) — Text to encrypt, ORtexts(string[]) — Array of texts for batch processing (max 100)policy(string, optional) — Detection policyencryption_key(string, optional) — Encryption password
blindfold_discover
Analyze text samples to discover what types of PII they contain. Parameters:samples(string[]) — Array of text samples to analyzethreshold(number, optional) — Detection confidence threshold
Usage Examples
Once the MCP server is connected, you can ask your AI assistant things like:- “Tokenize this text before sending it to the API: John Doe, john@example.com”
- “Detect what PII is in this customer message”
- “Redact all personal data from this document using GDPR policy”
- “Mask the credit card numbers in this text”
- “What types of PII are in these sample texts?”
Troubleshooting
Server not starting
Make sureBLINDFOLD_API_KEY is set:
Invalid region error
Valid regions areeu and us: