Best PostgreSQL MCP Servers
PostgreSQL is an advanced open source relational database management system that offers robustness, scalability, and performance.
Why this server?
Implements the PostgreSQL Wire protocol, enabling remote connections and queries via standard Postgres drivers.
AlicenseAqualityAmaintenanceArcadeDB Multi-Model Database, one DBMS that supports SQL, Cypher, Gremlin, HTTP/JSON, MongoDB and Redis. ArcadeDB is a conceptual fork of OrientDB, the first Multi-Model DBMS. ArcadeDB supports Vector Embeddings.Last updated101,045Apache 2.0Why this server?
Exports data from PostgreSQL databases to various file formats (CSV, TSV, JSON, Parquet, etc.) and storage targets (local, S3, Azure Blob, etc.) using FastBCP.
AlicenseAqualityCmaintenanceEnables exporting data from databases to files (CSV, TSV, JSON, BSON, Parquet, XLSX, Binary) with optional cloud storage targets, via a two-step preview-execute safety process.Last updated61MITWhy this server?
Provides tools for setting up, validating, and interacting with PostgreSQL databases as the backend for RESTForge projects, including schema introspection and endpoint generation from database tables.
AlicenseAqualityCmaintenanceMCP server that exposes RESTForge capabilities to AI agents, enabling them to set up, configure, generate code, and manage RESTForge projects through natural language.Last updated2944MITWhy this server?
Adds PostgreSQL database to an endpoint's context as ctx.POSTGRESQL.

openserverless-mcpofficial
AlicenseAqualityBmaintenanceAn MCP server for OpenServerless that exposes action tools for creating, invoking, and managing API endpoints with integrated services like S3, PostgreSQL, Redis, and Milvus.Last updated81Apache 2.0Why this server?
Execute SQL queries, list tables, describe schema, and manage data in PostgreSQL databases.

ThinAir Dataofficial
AlicenseAqualityCmaintenanceConnect any AI to PostgreSQL, MySQL, or SQL Server — 24 dialect-aware tools for query, schema, optimization, and more.Last updated23151MITWhy this server?
Enables direct interaction with Heroku PostgreSQL databases, including executing SQL queries, viewing database information, managing active queries, identifying resource-intensive operations, handling credentials, managing backups, and performing database upgrades.

Heroku MCP serverofficial
AlicenseAqualityCmaintenanceLet's your agent access the heroku platformLast updated335,75580Apache 2.0Why this server?
Provides comprehensive database access with tools for querying, schema introspection (tables, columns, indexes, foreign keys, sizes), EXPLAIN ANALYZE, monitoring active queries via pg_stat_activity, generating dialect-aware migrations, and backup/restore operations using pg_dump and psql.

Berthofficial
AlicenseAqualityCmaintenanceDatabase management — connect, query, describe schemas, run migrations, and monitor active queries across PostgreSQL, MySQL, and SQLite.Last updated15MITWhy this server?
Connects to PostgreSQL databases, allowing schema browsing, data editing, and query execution.
Why this server?
Enables direct SQL queries on PostgreSQL tables using the postgresql() table function.