ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Strac MCP DLP

โดย strac-ioรุ่น 0.1.1i★ –iรันบนเครื่อง
ชื่อใน registryio.github.strac-io/strac-mcp-dlp

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Detect and redact PII, PHI, PCI and secrets in text and files before an AI agent sees them.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: ความปลอดภัยไซเบอร์
  • ต้องใส่ค่าเหล่านี้: STRAC_API_KEY

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต

ต้องเตรียมก่อน

  • PyPIติดตั้ง uv ของ Python (มีคำสั่ง uvx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "strac-dlp": {
      "command": "uvx",
      "args": [
        "strac-mcp-dlp"
      ],
      "env": {
        "STRAC_API_KEY": "ใส่ค่าของคุณ",
        "STRAC_API_BASE": "ใส่ค่าของคุณ",
        "STRAC_API_TIMEOUT": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add strac-dlp --env STRAC_API_KEY='ใส่ค่าของคุณ' --env STRAC_API_BASE='ใส่ค่าของคุณ' --env STRAC_API_TIMEOUT='ใส่ค่าของคุณ' -- uvx strac-mcp-dlp

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "strac-dlp": {
      "command": "uvx",
      "args": [
        "strac-mcp-dlp"
      ],
      "env": {
        "STRAC_API_KEY": "ใส่ค่าของคุณ",
        "STRAC_API_BASE": "ใส่ค่าของคุณ",
        "STRAC_API_TIMEOUT": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "strac-dlp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "strac-mcp-dlp"
      ],
      "env": {
        "STRAC_API_KEY": "ใส่ค่าของคุณ",
        "STRAC_API_BASE": "ใส่ค่าของคุณ",
        "STRAC_API_TIMEOUT": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • STRAC_API_KEY ความลับ จำเป็น env
    Strac API key. Request one at https://www.strac.io/mcp-integrations. Keys are prefixed sk_live_ (production) or sk_test_ (sandbox).
  • STRAC_API_BASE env
    Override the Strac API base URL. Defaults to https://api.live.tokenidvault.com for sk_live_ keys and https://api.test.tokenidvault.com for sk_test_ keys.
  • STRAC_API_TIMEOUT env
    Request timeout in seconds. Defaults to 60.

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub strac-io ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด ความปลอดภัยไซเบอร์i

  • ดาวมากกว่า 0% ของอีก 994 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 42% ของอีก 994 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 994 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Strac MCP DLP ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: STRAC_API_KEY

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.1) เข้า registry 2 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี SML Risk Firewall, ipdata MCP by usefulapi, MaxMind minFraud MCP by usefulapi

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

SML Risk Firewall

โดย scriptmasterlabs.com

Pre-trade risk checks for agent trades: orders vs your limits, signed receipts.

รันบนคลาวด์อัปเดต วันนี้
ติดตั้ง

Look up location, network, company and threat data for IP addresses and ASNs in ipdata.

รันบนคลาวด์อัปเดต วันนี้
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

Strac MCP DLP — PII/PHI/PCI & secret redaction for AI agents (MCP)

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

Please onboard the user with SSN 123-45-6789 and email jane@acme.com

into

Please onboard the user with SSN [REDACTED] and email [REDACTED]

...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.


Why

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.


This server is one door into Strac

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](https://www.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.*


60-second quickstart

1. Install

pip install strac-mcp-dlp

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:

{

"mcpServers": { "strac-dlp": { "command": "strac-mcp-dlp", "env": { "STRAC_API_KEY": "sk_live_your_key_here" } } } }

Claude Code:

claude mcp add strac-dlp --env STRAC_API_KEY=sk_live_your_key_here -- strac-mcp-dlp

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:

{

"mcpServers": { "strac-dlp": { "command": "uvx", "args": ["strac-mcp-dlp"], "env": { "STRAC_API_KEY": "sk_live_your_key_here" } } } }

See examples/ for ready-to-copy config files.


Tools

  • redact_text
  • Redact PII, PHI, PCI and secrets out of a block of text, returning the sanitised string plus what was found
  • Inputs:
  • text (string): the text to redact
  • redact_field_mode (string, optional): REDACTED (default), BLANK, MASK_SEVEN_X or TOKEN_LINK_PLAINTEXT
  • include_matched_text (boolean, optional): also return the raw sensitive values. Off by default
  • Call it before putting untrusted or user-supplied text into a prompt, a log line, a ticket or any downstream system
  • redact_text(text="SSN 123-45-6789") → "SSN [REDACTED]"
  • detect_sensitive_data
  • Report which sensitive data types are present in text, without changing it
  • Inputs:
  • text (string): the text to scan
  • include_matched_text (boolean, optional): also return the raw values. Off by default
  • Use it to decide whether text is safe to send onward
  • detect_sensitive_data(text="call me at jane@acme.com") → EMAIL
  • detect_file
  • Scan a local file — image, PDF, scan, config or source — using Strac OCR and classifiers
  • Inputs:
  • path (string): path to the file to scan
  • include_matched_text (boolean, optional): also return the raw values. Off by default
  • The file is never modified
  • detect_file(path="./w2.pdf") → TAX_ID_NUMBER, NAME, ADDRESS
  • redact_file
  • Write a redacted copy of a local file to disk
  • Inputs:
  • path (string): path to the file to redact
  • output_path (string, optional): where to write the copy. Defaults to a .redacted suffix beside the original. Pointing it at the source is refused
  • overwrite (boolean, optional): allow replacing an existing destination. Off by default
  • The original is never modified
  • redact_file(path="./w2.pdf") → ./w2.redacted.pdf
  • detokenize
  • Resolve Strac vault tokens (tkn_…) back to their original values, for authorised callers
  • Inputs:
  • token_ids (string[]): the token identifiers to resolve. Maximum 10 per call
  • Requires an IP-allowlisted server-to-server key in live mode
  • detokenize(token_ids=["tkn_abc"]) → "111-22-3333"
Redaction styles

redact_text takes a redact_field_mode:

ModeResult
REDACTED (default)[REDACTED]
MASK_SEVEN_XXXXXXXX
BLANKremoved entirely
TOKEN_LINK_PLAINTEXT — a link to the value in the Strac vault, so an authorised human can still retrieve it
Redaction that doesn't leak

By default these tools return the types and positions of what they found, not the values:

{

"redacted_text": "Please onboard the user with SSN [REDACTED]", "detection_count": 1, "data_element_types": ["TAX_ID_NUMBER"], "detections": [{ "type": "TAX_ID_NUMBER", "begin_index": 33, "end_index": 44, "length": 11 }] }

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.


What gets detected

Strac ships 191 built-in data elements across 10 categories, plus custom elements you define with regex or your own trained model:

CategoryElementsExamples
Identification126SSN/TIN, passports, driver licences and national IDs across ~60 countries — Aadhaar, PAN, PESEL, BSN, Fiscal Code, IRD — plus NPI and DEA registration numbers
Secrets30AWS 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 Account10Card number and tail, CVV, expiry, bank account and routing numbers, IBAN, SWIFT
Advertisement Identifiers7Apple IDFA and IDFV, Google GAID, Roku, Amazon Fire OS, Huawei OAID
Contact6Name, address, email, phone, date of birth, age
Device Tracking5IP address, MAC address, IMEI, webpage URL, date/time
Asset3Source code, VIN, vehicle licence plate
Document Properties2Invoice, password-protected document
Content Moderation1Offensive content
Intellectual Property1Chemical/molecular structure

Every element named individually: [Strac Catalog of Sensitive Data Elements](https://www.strac.io/blog/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.


Configuration

VariableRequiredDefault
STRAC_API_KEYyes—
STRAC_API_BASEnohttps://api.live.tokenidvault.com for sk_live_ keys, https://api.test.tokenidvault.com for sk_test_ keys
STRAC_API_TIMEOUTno60 seconds

Without a key, every tool returns: Set STRAC_API_KEY — request one at https://www.strac.io/mcp-integrations.

The server speaks stdio by default. strac-mcp-dlp --transport streamable-http serves HTTP instead.


How it works

Your MCP client spawns this server locally; it forwards each tool call to the Strac API over HTTPS with your X-Api-Key, and returns the result. Nothing is classified or redacted on your machine, and this repository contains no detection models.

Your data element definitions, custom policies, remediation rules and audit trail live in your Strac account, not in this repo — which is why the same key that powers these five tools also governs every connected app.

MCP client  ──stdio──▶  strac-mcp-dlp  ──HTTPS──▶  Strac DLP API

(Claude, Cursor, (this repo, (classifiers, OCR, your agent) ~600 lines) vault, policies, audit)

Limits inherited from the API: 4 MB for inline content, 10 MB for document uploads, 10 tokens per detokenize call.


Development

git clone https://github.com/strac-io/strac-mcp-dlp

cd strac-mcp-dlp python3 -m venv .venv .venv/bin/pip install -e ".[dev]" .venv/bin/python -m pytest

The test suite mocks the Strac API with respx, so it runs without a key. To try the server by hand:

STRAC_API_KEY=sk_test_… .venv/bin/python -m strac_mcp_dlp

Or point the MCP Inspector at it:

STRAC_API_KEY=sk_test_… npx @modelcontextprotocol/inspector strac-mcp-dlp

FAQ

Do I need a Strac account?

Yes. This is a thin client over the Strac DLP API and every call is authenticated — there is no anonymous mode. Request a key at strac.io/mcp-integrations or email [hello@strac.io](mailto:hello

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx