
Postgres
CommunityArchived reference server for read-only Postgres queries.
Formerly part of the official monorepo, now kept in servers-archived. Introspects schema and runs SELECT queries with configurable row and timeout limits. Community forks have picked up maintenance.
What it does
- Introspects tables, columns, indexes, and foreign keys on connect
- Executes SELECT statements only, writes are rejected before the query reaches Postgres
- Applies a per-statement row cap and a configurable statement_timeout
- Supports a database and schema allow-list via a JSON config file
- Surfaces EXPLAIN for planner-level debugging without exposing pg_stat_statements
- Streams large result sets as paginated tool responses so a single query cannot flood context
Best for
Postgres is a MCP server categorised under database, official, postgres, sql. Formerly part of the official monorepo, now kept in servers-archived. Introspects schema and runs SELECT queries with configurable row and timeout limits. Community forks have picked up maintenance.
Pick your MCP client from the Install panel on this page to get a one-click install link (Cursor, VS Code) or a ready-to-paste configuration for Claude Desktop, Claude Code, Gemini, Codex, Windsurf, and other MCP-compatible clients. No local setup required for remote servers.
Postgres is released under the MIT license. This is a permissive open-source license, so you can freely use, modify, and distribute it — subject to its terms.
Reviews
Write a ReviewBe the first to leave a review after using this server in production.
README
Alternatives
Archived Python reference server for local SQLite.
Scoped file access with configurable allow-lists.
GitHub's own MCP server for issues, PRs, and code search.