# PostgreSQL MCP servers

MCP servers that let an agent inspect schemas and run queries on PostgreSQL databases.

## Before you choose

Most PostgreSQL servers are local packages (L0) that connect with a database URL you provide, so they reach databases on your own network; remote ones need the database to be reachable from their host.

Give the agent a read-only database role unless it really has to write, and check whether the server marks its query tools as read-only.

## Servers (20)

What search for "postgres" returns, without listings scored poor, published under many names from one repository, or with nothing to connect to.

- [Postgres (read-only)](https://protogrid.dev/servers/io.github.contextflo/postgres-mcp.md) `io.github.contextflo/postgres-mcp`: class L0, quality – (not scored), trust 96. Read-only Postgres: drop-in for the archived server-postgres, with schema context.
- [Postgres MCP](https://protogrid.dev/servers/io.github.edelciomolina/postgres-mcp.md) `io.github.edelciomolina/postgres-mcp`: class L0, quality – (not scored), trust 81. PostgreSQL MCP wrapper with .env credential mapping, tool selection, and safe read-only defaults.
- [PostgreSQL MCP Server](https://protogrid.dev/servers/io.github.YawLabs/postgres-mcp.md) `io.github.YawLabs/postgres-mcp`: class L0, quality – (not scored), trust 96. PostgreSQL MCP server - query, schema introspection, explain, and health checks for AI assistants
- [io.github.ofershap/postgres](https://protogrid.dev/servers/io.github.ofershap/postgres.md) `io.github.ofershap/postgres`: class L0, quality – (not scored), trust 87. PostgreSQL MCP — query databases, inspect schemas, explain queries.
- [io.github.timescale/pg-aiguide](https://protogrid.dev/servers/io.github.timescale/pg-aiguide.md) `io.github.timescale/pg-aiguide`: class R0, quality 76 (good), trust 90. Comprehensive PostgreSQL documentation and best practices, including ecosystem tools
- [PostgreSQL](https://protogrid.dev/servers/io.github.antonorlov/mcp-postgres-server.md) `io.github.antonorlov/mcp-postgres-server`: class L0, quality – (not scored), trust 91. MCP server for PostgreSQL: local, Docker, RDS, Neon, Supabase, or behind an SSH bastion.
- [io.github.sparta2025/postgres-mcp](https://protogrid.dev/servers/io.github.sparta2025/postgres-mcp.md) `io.github.sparta2025/postgres-mcp`: class L0, quality – (not scored), trust 87. PostgreSQL MCP server with 15 tools (SQL, EXPLAIN, health, indexes) plus a Gradio UI with LLM chat.
- [PostgreSQL MCP Server](https://protogrid.dev/servers/io.github.itunified-io/postgres.md) `io.github.itunified-io/postgres`: class L0, quality – (not scored), trust 76. PostgreSQL MCP Server — 27 tools for queries, schema, CRUD, DBA, HA & server management
- [io.github.pgEdge/postgres-mcp](https://protogrid.dev/servers/io.github.pgEdge/postgres-mcp.md) `io.github.pgEdge/postgres-mcp`: class L0, quality – (not scored), trust 74. Enterprise PostgreSQL MCP server with NL queries, hybrid search (pgvector+BM25), and web UI
- [Veto — SQL Safety & Cost Oracle](https://protogrid.dev/servers/com.vetosql/veto.md) `com.vetosql/veto`: class R0, quality 79 (good), trust 89. Deterministic safety, correctness & cost gate that vets Postgres SQL before your AI agent runs it.
- [PostgreSQL MCP Server](https://protogrid.dev/servers/io.github.neverinfamous/postgres-mcp-server.md) `io.github.neverinfamous/postgres-mcp-server`: class L0, quality – (not scored), trust 74. Enterprise PostgreSQL MCP server with 63 tools, 10 resources, 10 prompts for AI-native operations
- [PostgreSQL MCP Server](https://protogrid.dev/servers/io.github.neverinfamous/postgres-mcp.md) `io.github.neverinfamous/postgres-mcp`: class L0, quality – (not scored), trust 74. PostgreSQL MCP server with 203 tools, connection pooling, HTTP/SSE, OAuth 2.1, and tool filtering
- [now.shiply/shiply](https://protogrid.dev/servers/now.shiply/shiply.md) `now.shiply/shiply`: class R0, quality 79 (good), trust 79. Publish any app in one call: SQL database, functions, email, and a custom domain. Flat price.
- [ai.duvera/gateway](https://protogrid.dev/servers/ai.duvera/gateway.md) `ai.duvera/gateway`: class R0, quality 79 (good), trust 76. Governed AI actions with signed, verifiable receipts: free keyless reads, human-approved writes.
- [fline](https://protogrid.dev/servers/sh.fline/fline.md) `sh.fline/fline`: class R0, quality 88 (new), trust 96. Hosting for apps you build with AI. Tested with Claude Code and Codex. Private beta: ask for access.
- [in.termal/termalin-web](https://protogrid.dev/servers/in.termal/termalin-web.md) `in.termal/termalin-web`: class R1, quality 75 (good), trust 79. Run commands and read/write files on your servers over Termalin's keyless tunnels (hosted MCP).
- [NexQL Postgres MCP](https://protogrid.dev/servers/io.github.NexQL-OSS/nexql-mcp.md) `io.github.NexQL-OSS/nexql-mcp`: class L0, quality – (not scored), trust 91. Standalone Postgres MCP server — schema-aware, read-only by default, installable everywhere.
- [SuperDB](https://protogrid.dev/servers/br.com.superdb/mcp.md) `br.com.superdb/mcp`: class R2, quality 83 (good), trust 83. Backend brasileiro (Postgres, login, storage): a IA cria tabelas, liga RLS e roda SQL no projeto.
- [Postgres AIops](https://protogrid.dev/servers/io.github.AIops-tools/postgres-aiops.md) `io.github.AIops-tools/postgres-aiops`: class L0, quality – (not scored), trust 91. Governed PostgreSQL DBA ops: slow-query RCA, bloat/vacuum & blocking-lock analysis; 35 MCP tools.
- [Dataset to Postgres, Supabase & MySQL (Database Push)](https://protogrid.dev/servers/io.github.Nero-Engine/dataset-to-database.md) `io.github.Nero-Engine/dataset-to-database`: class R1, quality 88 (good), trust 77. Push rows from a dataset, file or Google Sheet into a Postgres, Supabase, Neon or MySQL table.

All use cases: https://protogrid.dev/mcp.md
