Detect and redact PII, PHI, PCI and secrets in text and files before an AI agent sees them.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An open-source Model Context Protocol server that gives any AI agent β Claude, Cursor, VS Code, your own β a way to find and strip sensitive data before it reaches the model.
Point your agent at it, and redact_text turns
into
...along with a structured list of what was found. It works the same on images, PDFs and scanned documents.
This is a thin client over the Strac DLP API. Bring your own API key; all detection and redaction happens server-side at Strac.
Agents are now wired into inboxes, ticketing systems, CRMs, databases and file stores. Every MCP tool call is a chance for an SSN, a card number, a patient record or an AWS key to be pulled into a prompt β and from there into a model provider's logs, a vector store, a Slack summary or a support ticket.
Filtering that data after the model has seen it is too late. This server puts the check in front of the model: detect first, redact, then let the agent reason over text that no longer carries the sensitive values.
Redacting a string you hand it is the smallest thing Strac does. The product is coverage: connect Strac to the SaaS and cloud apps where your sensitive data already lives, and it discovers, classifies, redacts and remediates it there β continuously, under your policies, with an audit trail β rather than waiting for someone to paste it into a prompt.
Slack, Google Workspace, Microsoft 365, Salesforce, Zendesk, Box, Dropbox, Jira, Confluence, GitHub, Notion, OneDrive, SharePoint, Snowflake, Databricks, BigQuery, Postgres, MongoDB, AWS, Azure, GCP, browsers and endpoints β 60+ integrations, agentless, no code to write.
That matters most when those systems are reached over MCP. When an agent β Claude Code, Claude Desktop, Cursor, GitHub Copilot, OpenAI Codex β pulls a Salesforce record or a Drive file through an MCP connector, Strac redacts the sensitive data inline, before the agent receives it. That is the difference between asking an agent to redact and enforcing it whether or not it asks.
strac.io/mcp-integrations is that product. This repo is its developer-facing sliver: the same detection engine, reachable from any MCP client, for when you want to sanitise a string or a file yourself.
Every MCP invocation your agents make β tools called, files read, the identity behind the prompt β captured and inspected.
1. Install
2. Request an API key
Request a key, or email hello@strac.io.
Keys are prefixed sk_live_ (production) or sk_test_ (sandbox); the server picks the matching endpoint automatically.
3. Add it to your MCP client
Claude Desktop β ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows:
Claude Code:
Cursor β .cursor/mcp.json in your project, or ~/.cursor/mcp.json globally: use the same block as Claude Desktop.
4. Restart your client and ask it to redact something
Use Strac to redact this before I paste it into the ticket: "Customer Jane Doe, SSN 123-45-6789, card 4111 1111 1111 1111."
No install at all, if you have uv:
See examples/ for ready-to-copy config files.
redact_text
text (string): the text to redactredact_field_mode (string, optional): REDACTED (default), BLANK, MASK_SEVEN_X or TOKEN_LINK_PLAINTEXTinclude_matched_text (boolean, optional): also return the raw sensitive values. Off by defaultredact_text(text="SSN 123-45-6789") β "SSN [REDACTED]"detect_sensitive_data
text (string): the text to scaninclude_matched_text (boolean, optional): also return the raw values. Off by defaultdetect_sensitive_data(text="call me at jane@acme.com") β EMAILdetect_file
path (string): path to the file to scaninclude_matched_text (boolean, optional): also return the raw values. Off by defaultdetect_file(path="./w2.pdf") β TAX_ID_NUMBER, NAME, ADDRESSredact_file
path (string): path to the file to redactoutput_path (string, optional): where to write the copy. Defaults to a .redacted suffix beside the original. Pointing it at the source is refusedoverwrite (boolean, optional): allow replacing an existing destination. Off by defaultredact_file(path="./w2.pdf") β ./w2.redacted.pdfdetokenize
tkn_β¦) back to their original values, for authorised callerstoken_ids (string[]): the token identifiers to resolve. Maximum 10 per calldetokenize(token_ids=["tkn_abc"]) β "111-22-3333"redact_text takes a redact_field_mode:
| Mode | Result |
|---|---|
REDACTED (default) | [REDACTED] |
MASK_SEVEN_X | XXXXXXX |
BLANK | removed entirely |
TOKEN_LINK_PLAINTEXT | <sensitive_data: https://β¦/detokenize/tkn_β¦> β a link to the value in the Strac vault, so an authorised human can still retrieve it |
By default these tools return the types and positions of what they found, not the values:
Returning the matched text alongside the redacted text would hand the model exactly the data you just removed. Pass include_matched_text=true when a caller genuinely needs the raw values.
Strac ships 191 built-in data elements across 10 categories, plus custom elements you define with regex or your own trained model:
| Category | Elements | Examples |
|---|---|---|
| Identification | 126 | SSN/TIN, passports, driver licences and national IDs across ~60 countries β Aadhaar, PAN, PESEL, BSN, Fiscal Code, IRD β plus NPI and DEA registration numbers |
| Secrets | 30 | AWS access and secret keys, GitHub and GitLab tokens, Slack tokens, GCP credentials, Azure storage and service-principal keys, private keys, JDBC and MongoDB connection strings, seed phrases |
| Financial Account | 10 | Card number and tail, CVV, expiry, bank account and routing numbers, IBAN, SWIFT |
| Advertisement Identifiers | 7 | Apple IDFA and IDFV, Google GAID, Roku, Amazon Fire OS, Huawei OAID |
| Contact | 6 | Name, address, email, phone, date of birth, age |
| Device Tracking | 5 | IP address, MAC address, IMEI, webpage URL, date/time |
| Asset | 3 | Source code, VIN, vehicle licence plate |
| Document Properties | 2 | Invoice, password-protected document |
| Content Moderation | 1 | Offensive content |
| Intellectual Property | 1 | Chemical/molecular structure |
Every element named individually: Strac Catalog of Sensitive Data Elements.
Detection runs on text and, via OCR, on PDFs, JPEGs, PNGs, DOCX, XLSX, screenshots and .msg email files β which is what detect_file and redact_file reach.
One caveat worth setting expectations on: the type values these MCP tools return depend on which endpoint answered, and the two use different vocabularies for the same element. A US Social Security Number comes back as TAX_ID_NUMBER from redact_text and as SOCIAL_SECURITY_NUMBER from detect_sensitive_data β which additionally reports SSN under reported_element_types. Both vocabularies are surfaced as returned rather than normalised, so nothing is invented on your behalf. Which elements are detected at all depends on what is enabled for your account; the full catalog above is what runs across your connected apps, where policies, remediation and audit live.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/strac-mcp-dlp)<a href="https://allmcps.com/mcp/strac-mcp-dlp"><img src="https://allmcps.com/api/badge/strac-mcp-dlp?style=directory" alt="Strac MCP DLP on AllMCPs" /></a>