PostgreSQL

Enables AI to discover, connect to, and query PostgreSQL databases with multi-database support, rich schema information, and secur

stuzero 27
Claude CodeClaude DesktopGeneric
View source ↗

PG-MCP is a PostgreSQL Model Context Protocol server that enables AI agents to discover, connect to, query, and understand PostgreSQL databases through a resource-oriented architecture. It extends the reference Postgres MCP implementation with multi-database support, rich catalog information extraction, extension context for PostGIS and pgVector, query execution plan analysis, and robust connection management. The server exposes database schema resources, data access capabilities, and specialized tools for executing read-only SQL queries, all while maintaining security through connection ID abstraction and read-only transaction enforcement. Built with Python 3.13 and asyncpg, it's particularly valuable for developers and data analysts who need AI assistants to interact with PostgreSQL databases without exposing sensitive connection details.

Source

Repository: https://github.com/stuzero/pg-mcp

Maintain PostgreSQL?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

[PostgreSQL on getagentictools](https://getagentictools.com/mcp/stuzero-pg-mcp?ref=badge)