Best PostgreSQL MCP Servers
PostgreSQL is an advanced open source relational database management system that offers robustness, scalability, and performance.
Why this server?
Adds PostgreSQL database to an endpoint's context as ctx.POSTGRESQL.
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?
Enables natural language querying and analysis of PostgreSQL databases, returning markdown reports with tables and charts.
Why 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?
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 updated62MITWhy this server?
Allows checking specific versions of PostgreSQL for known CVEs and supply-chain risks.

@attestd/mcpofficial
AlicenseAqualityBmaintenanceEnables checking of package vulnerabilities and supply-chain risks using Attestd API. Supports single and batch checks, CVE details, and covered products listing.Last updated454MITWhy 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 updated23291MITWhy this server?
Enables integration with PostgreSQL databases for storing and querying Bitcoin Stamps metadata and collection statistics.
AlicenseBqualityDmaintenanceA Model Context Protocol server that enables interaction with Bitcoin Stamps data via the Stampchain API, providing tools for querying stamp information, collections, and blockchain data without requiring authentication.Last updated13MITWhy this server?
Enables data quality validation on PostgreSQL or Redshift databases with support for all rule types and LLM diagnosis.
AlicenseBqualityAmaintenanceAgentic data quality MCP server — runs structured validation rules against warehouses (DuckDB, BigQuery, Athena, Databricks, Postgres), diagnoses failures with LLM root cause analysis, and proposes SQL remediations. Full audit trail of every AI decision.Last updated64Apache 2.0Why this server?
Enables direct SQL queries on PostgreSQL tables using the postgresql() table function.