/dbmcp:privacyfrom dbmcp
Configures PII redaction for dbmcp: sets column-level masking, hashing, or redaction rules and tunes privacy key, operator, categories, and NER model.
Ships in dbmcp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Edit the YAML dbmcp loads: config_file in /plugin configure, DBMCP_CONFIG_FILE in the environment, or (Codex) the DBMCP_CONFIG_FILE line of the env file DBMCP_ENV_FILE names, relative to that file's folder; print only that line (grep -E '^[[:space:]]*(export[[:space:]]+)?DBMCP_CONFIG_FILE=' FILE), never the file. None: run setup. Defaults: mode full, operator hash.
privacy:
rules:
customer-email: # a-z 0-9 _ -
columns: [users.email] # [[catalog.]schema.]table.column
entity: EMAIL_ADDRESS # data-type name
operator: replace # optional
*, quotes, spaces). Check each with objects (detail: "full"); unmatched keys are silently ignored.database.name (PostgreSQL: any; MySQL/MariaDB: table.column; SQLite: never, it fills main.main); PostgreSQL fills public, not search_path.privacy.rules wins whole. Applies under rules and full, not none.hash → <EMAIL_ADDRESS_3f9a…> (equal token = equal value), replace → <EMAIL_ADDRESS>, mask → * per character, redact → empty. A computed ruled column (lower(email)) reads <ENTITY>.
privacy.key (≥ 32 bytes): stable hash tokens across restarts and replicas; makes tokens linkable across sessions. Add one only when the user asks for stable tokens. A key may already be set (adding one changes every token): check privacy.key in any YAML file dbmcp loads, grep -Eq '^[[:space:]]*(export[[:space:]]+)?DBMCP_PRIVACY_KEY[[:space:]]*[=:][[:space:]]*[^[:space:]#]' FILE on each env file (env_file or DBMCP_ENV_FILE; none: run setup), and test -n "$DBMCP_PRIVACY_KEY". If none: add an empty DBMCP_PRIVACY_KEY= line to the env file (chmod 600) and tell the user to fill it themselves, e.g. with openssl rand -hex 32; never generate or write the key.privacy.operator: global detection and rules without operator.privacy.categories: kebab list (personal, financial, government, contact, network, digital-identity, crypto); unset = all.privacy.model: NER directory; adds names, places, organizations (full); a bad model stops startup.Then reconnect (Claude Code: Reconnect in /mcp; Codex: restart).
Docs: https://dbmcp.haymon.ai/privacy/rules, https://dbmcp.haymon.ai/privacy/redaction, https://dbmcp.haymon.ai/privacy/machine-learning
categories, a weaker operator, removing privacy.model, mode rules/none, or a new privacy.key needs the user's own message asking for that exact change; never as a fix for a refusal or redacted result. Before it, state in one sentence what it exposes and to whom (e.g. "Removing customer-email sends every users.email value to the model provider."), then change it.privacy.key or write it into YAML.What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
dbmcp@haymon-ai is listed by haymon-ai/marketplace — review the source before installing
npx claudepluginhub haymon-ai/marketplace --plugin dbmcpOther plugins' skills for the same job