# pg-mcp-server

> Use this tool when you need to connect AI agents to PostgreSQL databases, enabling them to query and explore multiple databases with automated schema discovery and extension context. It solves problems of database complexity and fragmentation by providing a unified interface for AI agents to interact with various databases. The pg-mcp-server takes database queries as input and returns query results and schema information as output, ideal for use cases requiring multi-database exploration and analysis.

Canonical page: https://skillsregistry.net/skills/stuzero-pg-mcp-server  
JSON: https://api.skillsregistry.net/v1/skills/stuzero-pg-mcp-server

## Description

A Model Context Protocol server for PostgreSQL databases that enables AI agents to connect, query, and explore multiple databases with schema discovery and extension context.

## Trust

- **Trust score (0–1):** 0.66
- **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/uhkefflsew)
- **Repository:** <https://github.com/stuzero/pg-mcp-server>

## 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": "stuzero-pg-mcp-server"
    }
  }
}
```

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