# postgres-safe-mcp

> Use this tool when you need to securely interact with PostgreSQL databases while protecting sensitive user data. It solves the problem of inadvertently exposing personally identifiable information (PII) in query results by automatically detecting and obfuscating sensitive data using column-name heuristics and NLP analysis. The tool takes database queries as input and returns masked query results, allowing for selective unmasking under user control.

Canonical page: https://skillsregistry.net/skills/sam-david-pg-redact-mcp  
JSON: https://api.skillsregistry.net/v1/skills/sam-david-pg-redact-mcp

## Description

A PostgreSQL MCP server that automatically detects and obfuscates personally identifiable information (PII) in query results using column-name heuristics and NLP analysis. It enables AI agents to interact securely with databases by masking sensitive data by default while allowing selective unmasking under user control.

## Trust

- **Trust score (0–1):** 0.88
- **Verification tier:** verified
- **Last scanned:** 2026-09-28

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** database
- **Updated:** 2026-09-28

## Source

- **Source listing:** [Glama](https://glama.ai/mcp/servers/wjyx46iiuj)
- **Repository:** <https://github.com/sam-david/pg-redact-mcp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "sam-david-pg-redact-mcp"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/sam-david-pg-redact-mcp` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/sam-david-pg-redact-mcp/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
