lgpd-mask-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MASK_SALT | Yes | Salt used by the masking engine. Must match the LOCAL_MASK_SALT value used in the local .env. | |
| DATABASE_URL | Yes | Postgres connection URL. For the Acme demo, use postgres://mcp:<LOCAL_PASSWORD>@localhost:5432/acme. | |
| ALLOWLIST_MODE | Yes | Allowlist mode. The example uses public_all; for a non-Acme database, use yaml with a local pii-policy.yaml. | |
| PII_POLICY_PATH | Yes | Path to the PII policy YAML. May be relative to the cwd, e.g. pii-policy.example.yaml. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_tablesB | List allowlisted tables in the connected database. |
| describe_schemaB | Describe columns for an allowlisted table, with PII flags from policy/heuristics. |
| classify_piiB | Classify columns as PII using YAML policy and heuristics (no row data). |
| sample_safeB | Return up to N rows from a table with PII columns masked. |
| query_maskedC | Run a structured SELECT (no raw SQL) with joins/where; PII columns are masked. |
| pingB | Health check: policy + DB connectivity. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Most tools have distinct roles: listing tables, describing schema, classifying PII, sampling masked rows, structured masked queries, and health checks. However, describe_schema already surfaces PII flags while classify_pii separately classifies PII, and sample_safe versus query_masked both return masked row data, creating mild overlap in when to choose each.
Five of six tools follow a clean verb-first snake_case pattern (list_tables, describe_schema, classify_pii, sample_safe, query_masked). The bare 'ping' deviates from the verb_noun convention but is a conventional health-check name and does not cause confusion.
Six tools is well-scoped for a read-only, PII-masking database access server. Each tool covers a distinct part of the workflow: discovery, schema inspection, PII classification, safe sampling, masked querying, and connectivity checking.
The surface covers the core lifecycle for safe database exploration: listing tables, describing schema, classifying PII, sampling rows, filtering/joining via structured SELECT, and health checks. Minor gaps remain around aggregates/counts or pagination helpers, but the main masked-query workflow is complete and write operations are intentionally excluded.