Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Redacts PII/PHI from text before it reaches an LLM. Fail-closed, self-hosted, no egress.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
UMBRYN_ENGINE, UMBRYN_MIN_CONFIDENCE, UMBRYN_DETECTION_FLOORต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"umbryn": {
"command": "uvx",
"args": [
"umbryn-mcp"
],
"env": {
"UMBRYN_ENGINE": "ใส่ค่าของคุณ",
"UMBRYN_MIN_CONFIDENCE": "ใส่ค่าของคุณ",
"UMBRYN_DETECTION_FLOOR": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add umbryn --env UMBRYN_ENGINE='ใส่ค่าของคุณ' --env UMBRYN_MIN_CONFIDENCE='ใส่ค่าของคุณ' --env UMBRYN_DETECTION_FLOOR='ใส่ค่าของคุณ' -- uvx umbryn-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"umbryn": {
"command": "uvx",
"args": [
"umbryn-mcp"
],
"env": {
"UMBRYN_ENGINE": "ใส่ค่าของคุณ",
"UMBRYN_MIN_CONFIDENCE": "ใส่ค่าของคุณ",
"UMBRYN_DETECTION_FLOOR": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"umbryn": {
"type": "stdio",
"command": "uvx",
"args": [
"umbryn-mcp"
],
"env": {
"UMBRYN_ENGINE": "ใส่ค่าของคุณ",
"UMBRYN_MIN_CONFIDENCE": "ใส่ค่าของคุณ",
"UMBRYN_DETECTION_FLOOR": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
UMBRYN_ENGINE envUMBRYN_MIN_CONFIDENCE envUMBRYN_DETECTION_FLOOR envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub Rinava ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.2.1) เข้า registry 3 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
An MCP server that redacts PII/PHI from text before it ever reaches an LLM — self-hosted, fail-closed, and HIPAA-aware.
Teams building LLM and agent pipelines in regulated domains have no clean, drop-in way to strip PHI/PII from a payload *before* it crosses into a model provider's infrastructure. umbryn-mcp is that boundary: three MCP tools — redact, restore, detect — that scrub sensitive values into reversible placeholders, run entirely inside infrastructure you control, and block the request if detection is uncertain instead of leaking data.
redact("Patient MRN: 1234567, provider NPI 1234567893, ssn 078-05-1120, john.doe@example.com")
redacted_text (safe to send to the model): "Patient MRN: [MEDICAL_RECORD_NUMBER_1], provider NPI [NPI_1], ssn [US_SSN_1], [EMAIL_ADDRESS_1]"
token_map (kept local, never sent to the model): [MEDICAL_RECORD_NUMBER_1] → 1234567 [NPI_1] → 1234567893 [US_SSN_1] → 078-05-1120 [EMAIL_ADDRESS_1] → john.doe@example.com
Send the redacted text to the model; keep the token_map local; call restore afterward to rehydrate the result. Round-trips are byte-exact and proven with property-based tests.
The PHI/PII-redaction MCP niche is real but underserved — the existing options are thin Presidio wrappers with no HIPAA-specific detection and, critically, no guarantee that a detection failure blocks the request instead of silently passing raw data through. So teams either roll their own boundary or ship sensitive data to a provider and lean on a BAA to cover it — the design-time mistake that causes real compliance incidents.
| Naive Presidio wrapper | Regex-in-your-app | Cloud DLP API | umbryn-mcp | |
|---|---|---|---|---|
| Drop-in MCP tools | sometimes | ❌ | ❌ | ✅ |
| Fail-closed on uncertain detection | ❌ | ❌ | ❌ | ✅ |
| HIPAA identifiers (NPI, DEA, MBI, MRN, CLIA) | ❌ | partial | partial | ✅ |
| Reversible (restore original) | rarely | DIY | some | ✅ |
| Runs self-hosted, zero egress | ✅ | ✅ | ❌ (sends data out) | ✅ |
| Works with zero heavy deps | ❌ (needs spaCy) | ✅ | n/a | ✅ (regex engine) |
| Optional ML NER (names, addresses) | ✅ | ❌ | ✅ | ✅ ([presidio] extra) |
Why it was built: MCP went mainstream fast — it's now first-class in Claude, Cursor, and ChatGPT, across thousands of servers — but the PHI/PII-redaction corner was left to a few unmaintained wrappers. This fills that gap with a single honest, auditable, fail-closed boundary, kept open source so the redaction logic you depend on is fully inspectable rather than a black box.
redact (→ scrubbed text + reversible token map), restore (→ original), detect (→ entities found, no mutation).pip install "umbryn-mcp[presidio]" adds Microsoft Presidio + spaCy for PERSON/LOCATION NER, transparently.restore(redact(x)) == x for *arbitrary* input; same input + config always yields the same output.Reach for `umbryn-mcp` when:
redact → send to model → restore.Reach for something else when:
pip install umbryn-mcp # zero heavy deps; runs immediately
Then register it with your MCP client.
Claude Desktop / Claude Code (claude_desktop_config.json, or claude mcp add umbryn-mcp -- umbryn-mcp):
{
"mcpServers": { "umbryn-mcp": { "command": "umbryn-mcp" } } }
Cursor (.cursor/mcp.json) and VS Code use the same shape — see examples/ for ready-to-paste configs.
Want name/address detection too?
pip install "umbryn-mcp[presidio]"
python -m spacy download en_core_web_lg
The server auto-detects Presidio and upgrades — no config change needed. (Set UMBRYN_ENGINE=regex to force the dependency-free engine, or =presidio to require the ML one.)
A tool call comes in over stdio; the Redactor core runs the configured detection engine, resolves overlaps deterministically, applies the fail-closed threshold check, and swaps detected spans for reversible typed placeholders. Only scrubbed text is meant to leave the boundary you run.
flowchart LR
A[MCP client Claude · Cursor · agent] -- redact / restore / detect --> B[umbryn-mcp stdio server] B --> C[Redactor core fail-closed · reversible] C --> D{Detection engine} D -->|default, zero deps| E[Regex + checksums] D -->|optional| F[Presidio + spaCy NER] C -. scrubbed text .-> A A -- scrubbed text only --> G[(LLM / downstream)]
The Redactor core depends only on a small DetectionEngine interface — never on Presidio or MCP directly. Raw data and the detection engine stay inside the boundary you run; only scrubbed text leaves it. See docs/ARCHITECTURE.md and docs/THREAT_MODEL.md.
redact(text) → { redacted_text, token_map, entities }Replaces detected PHI/PII with typed placeholders like [NPI_1]. token_map maps each placeholder back to its original value — keep it local; never send it to the model. entities lists what was redacted (type/span/score) for auditing.
restore(redacted_text, token_map) → { text }Reverses a redaction, recovering the original text exactly. Safe to call on model output that still contains the placeholders.
detect(text) → { entities, count }Reports the entities found — type, span, confidence — without modifying the text. Unlike redact, it surfaces low-confidence hits rather than blocking, so you can inspect coverage before trusting the boundary in a pipeline.
The pattern is redact → model → restore, with the token map never leaving your side:
redact(user_text). Send only redacted_text to the LLM. Keep token_map in your process — treat it as sensitively as the raw input, and never pass it to the model.[NPI_1], [US_SSN_1], etc. — semantically neutral tokens it can reason about and echo back.restore(model_output, token_map) to swap the real values back into the model's response before it reaches your user or database.redact returns a [LOW_CONFIDENCE] or [DETECTION_ERROR] tool error, the boundary refused to leak — surface it, tighten input, or lower the risk, but don't send the raw text onward.Before trusting it in a pipeline, call detect(sample_text) on representative (synthetic) data to see exactly what is and isn't caught, and tune the thresholds (below) to your risk tolerance.
Two thresholds govern every redact call:
0.35) — the sensitivity boundary. Signals below it are treated as noise.0.5) — the *trust* threshold.Any candidate that survives the floor but scores below `min_confidence` puts the call into fail-closed mode: it returns a [LOW_CONFIDENCE] error rather than redacting the confident spans and passing the uncertain one through. Engine errors return [DETECTION_ERROR]. On any error, no redacted text is returned. Both thresholds are configurable (see below).
All optional; sane defaults mean it runs with zero config. Set via the client's env block.
| Variable | Default | Meaning |
|---|---|---|
UMBRYN_ENGINE | auto | auto (Presidio if installed, else regex), regex, or presidio |
UMBRYN_MIN_CONFIDENCE | 0.5 | Trust threshold; detections below it fail closed |
UMBRYN_DETECTION_FLOOR | 0.35 | Below this, a signal is treated as noise |
UMBRYN_MAX_INPUT_CHARS | 100000 | Reject larger input with a typed error |
UMBRYN_SPACY_MODEL | en_core_web_lg | spaCy model for the Presidio engine |
UMBRYN_AUDIT_LOG | false | Emit a structured audit record per redact call (counts and types only) |
UMBRYN_CONFIG | *(unset)* | Path to a JSON config file (below) |
For settings that don't fit a flat environment variable, point UMBRYN_CONFIG at a JSON file. Environment variables still win over the file for the scalar values above, so you can ship one file and tweak per launch. A malformed file (bad JSON, unknown threshold, un-compilable regex) fails closed at startup rather than degrading silently.
{
// Per-entity trust thresholds override min_confidence for that type. "entity_thresholds": { "PHONE_NUMBER": 0.7, "IP_ADDRESS": 0.9 },
// Entity types to drop entirely — never detected, never redacted. // (A privacy trade-off you're opting into: a disabled type can leak.) "disabled_entities": ["URL"],
// Your own recognizers, no fork required. validator names a built-in // check-digit function (luhn, npi, dea, iban, nhs) — config supplies data, // never code. "recognizers": [ { "entity_type": "EMPLOYEE_ID", "regex": "\\bEMP-\\d{6}\\b", "base_score": 0.85, "context": ["employee", "badge"], "context_required": false } ],
"audit_log": true }
A ready-to-copy example lives at [`exampl
ตัดมาแค่ช่วงต้น อ่านต่อใน repo