# postgres-mcp-query-tool

> Use this tool when you need to securely query Postgres databases with fine-grained access control and defense-in-depth security measures. It provides AI agents with scoped and safe access to databases, enforcing row caps, timeouts, and read-only permissions. Ideal for use cases requiring controlled data access and protection against potential data breaches or unauthorized modifications.

Canonical page: https://skillsregistry.net/skills/nskha101-postgres-mcp-query-tool  
JSON: https://api.skillsregistry.net/v1/skills/nskha101-postgres-mcp-query-tool

## Description

An MCP server that gives an AI agent scoped, safe access to your Postgres databases with per-connection access control, row caps, timeouts, and defense-in-depth read-only enforcement.

## Trust

- **Trust score (0–1):** 0.94
- **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/ympqan0jtc)
- **Repository:** <https://github.com/nskha101/postgres-mcp-query-tool>

## 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": "nskha101-postgres-mcp-query-tool"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/nskha101-postgres-mcp-query-tool` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/nskha101-postgres-mcp-query-tool/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
