# pg-python-mcp

> Use this tool when you need to securely interact with PostgreSQL databases, enabling AI assistants to query and manage data while preventing malicious operations. It solves problems related to database security and access control, providing a safe interface for database operations. The tool takes SQL queries as input and returns query results, using AST-based security to ensure safe and authorized database interactions.

Canonical page: https://skillsregistry.net/skills/hexonal-pg-python-mcp  
JSON: https://api.skillsregistry.net/v1/skills/hexonal-pg-python-mcp

## Description

A PostgreSQL MCP server with AST-based security for safe database operations. Enables AI assistants to query and manage PostgreSQL databases securely.

## Trust

- **Trust score (0–1):** 0.69
- **Verification tier:** scanned
- **Last scanned:** 2026-09-03

## Facts

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

## Source

- **Source listing:** [Glama](https://glama.ai/mcp/servers/ddwvznp7h5)
- **Repository:** <https://github.com/hexonal/pg-python-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": "hexonal-pg-python-mcp"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/hexonal-pg-python-mcp` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/hexonal-pg-python-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
