Use case

Connect Postgres to your AI

Let your assistant inspect a Postgres schema, run queries and explain results — in Claude, Cursor or VS Code — without pasting tables into the chat.

Which MCP server should I use for PostgreSQL?

pg.ddx.io: the PostgreSQL community's memory, PostgreSQL (hardened, read-only) and Devart MCP Server for PostgreSQL (ADO.NET) are the strongest matches in the catalog today, ranked by how directly they address this and how well they are maintained. Create a dedicated read-only role (GRANT SELECT) for the assistant. Never hand it the owner credentials.

Before you pick one

  • Create a dedicated read-only role (GRANT SELECT) for the assistant. Never hand it the owner credentials.
  • Pass the connection string through an environment variable, not inline in a config file you commit.
  • Point it at a replica or staging copy first: schema exploration issues many small queries.

MCP servers (12)

Related skills (4)