nazaa-arch

Uupdp MCP Skill — Development skill for Claude Code

Development community

Agent Skill & MCP server for Indonesian UU PDP (Law No. 27/2022) compliance auditing and PII detection/redaction.

How to install Uupdp MCP Skill

This entry records only its repository, not the path inside it, so there is no exact command to give. Open nazaa-arch/uupdp-mcp-skill and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Uupdp MCP Skill does

Agent Skill & MCP server for Indonesian UU PDP (Law No. 27/2022) compliance auditing and PII detection/redaction.

Alternatives in Development

  • Sanitize — Detect and redact PII from text files — 15 categories (SSNs, credit cards, API keys, etc.), zero dependencies 3.1k ★
  • Sync Pii Anonymizer — Skill: Re-sync the vendored pii-anonymizer library 295 ★
  • PII Shield — PII anonymization (MCP + Skill for Claude and CLI for the rest) 131 ★

README

uupdp-mcp-skill

Agent Skill & Model Context Protocol (MCP) server ringan untuk validasi kepatuhan **UU PDP (UU No. 27 Tahun 2022 tentang Pelindungan Data Pribadi)** di Indonesia — mencakup deteksi PII lokal (NIK, NPWP, nomor HP Indonesia, rekening, email), audit checklist kepatuhan, dan antarmuka CLI/MCP *agent-native* tanpa dependensi eksternal.

Fitur Utama

  • Deteksi & Redaksi PII Indonesia: Mendeteksi NIK (16 digit dengan validasi struktur kode wilayah/tanggal lahir), NPWP, nomor telepon Indonesia (+62/08), email, dan nomor kartu.
  • Audit Kepatuhan UU PDP: Memeriksa kelengkapan dasar pemrosesan data (persetujuan eksplisit, tujuan spesifik, masa retensi, hak subjek data, dan notifikasi kebocoran data 3×24 jam sesuai Pasal 46 UU PDP).
  • MCP Server (JSON-RPC 2.0 over stdio): Siap dihubungkan ke agen AI (Claude Desktop, Antigravity, Cursor, dll.) melalui python -m uupdp_mcp.mcp_server.
  • Agent Skill (SKILL.md): Dilengkapi file skill standar agar agen coding tahu kapan dan bagaimana memanggil alat audit UU PDP.
  • Zero External Dependencies: Hanya menggunakan pustaka standar Python 3.9+.

Instalasi & Penggunaan

1. CLI

# Scan teks atau file untuk PII Indonesia
python -m uupdp_mcp.cli scan --text "NIK: 3578011508950001, HP: 081234567890"

# Redaksi (masking) PII otomatis
python -m uupdp_mcp.cli redact --file sample.txt

# Audit kepatuhan UU PDP dari file JSON metadata sistem
python -m uupdp_mcp.cli audit --config examples/sample_system.json

2. MCP Server (stdio)

python -m uupdp_mcp.mcp_server

Tools MCP yang tersedia:

  • scan_indonesian_pii — mendeteksi PII Indonesia pada teks.
  • redact_indonesian_pii — menyamarkan PII sebelum dikirim ke LLM atau log.
  • audit_uupdp_compliance — menghitung skor kesiapan kepatuhan UU PDP beserta rekomendasi pasal terkait.

3. Menjalankan Tes

python -m unittest discover -s tests -v

Lisensi

MIT License — lihat [LICENSE](LICENSE).