PostgreSQL MCP Servers & Connectors
PostgreSQL is an advanced open source relational database management system that offers robustness, scalability, and performance.
1942 open-source servers · 4 connectors · postgresql.org ↗
Open-source servers
Code you run yourself, locally or on your own infrastructure.
Built for PostgreSQL (542)
Why this server?
Provides persistent storage for study tasks, quiz results, and conversation history, enabling management of study tasks through MCP tools.
FlicenseAqualityDmaintenanceExposes course documents as searchable resources and provides tools for reading, study task management, and source-grounded quiz prompts. Supports hybrid retrieval and integration with DeepSeek-based agents.51-Why this server?
Provides governed, read-only access to PostgreSQL databases, with schema and table allowlists, SQL validation, row and statement time limits, and audit events.

MCP DB Gatewayofficial
AlicenseNot gradedqualityDmaintenanceProvides governed, read-only PostgreSQL access for AI agents via MCP. Enforces schema/table allowlists, query limits, and audit events.1MITWhy this server?
Enables execution of database queries against PostgreSQL databases through RDBMS connections
FlicenseBqualityDmaintenanceEnables remote command execution via SSH and database queries through PostgreSQL connections. Supports classifier training orchestration with configurable SSH profiles for AI-assisted infrastructure management.3-Why this server?
Provides capabilities to execute read-only PostgreSQL queries and perform schema searches using vector recall and keyword retrieval.
FlicenseAqualityDmaintenanceA general-purpose MCP server providing time-related utilities such as fetching current time, Unix timestamps, and formatting services. It supports both local stdio and remote SSE communication modes for versatile AI client integration.3-Why this server?
Provides tools to interact with a PostgreSQL database, allowing users to execute SELECT queries, inspect table schemas, and list available tables.
FlicenseAqualityNot gradedmaintenanceAn MCP server designed to interact with the RifaExpress backend via PostgreSQL database queries and REST API integrations. It enables users to manage core entities like companies, users, and plans while providing tools for database schema inspection and health monitoring.8-Why this server?
Provides tools for accessing PostgreSQL database metadata, including listing tables and other database objects.
AlicenseCqualityDmaintenanceEnables querying PostgreSQL database metadata including table lists and schema information through the MCP protocol. Supports stdio transport for Cursor/IDE integration as well as HTTP transport with health check endpoints.2MITWhy this server?
Provides tools for inspecting and querying a PostgreSQL database, including listing tables, retrieving schema, and executing read-only SQL queries.
FlicenseAqualityDmaintenanceEnables AI agents to inspect and query PostgreSQL databases safely, with features like listing tables, retrieving schemas, and running read-only SQL queries.3-Why this server?
Allows AI agents to execute SQL queries, inspect schemas, and analyze query performance on one or more PostgreSQL databases registered as named projects.
FlicenseAqualityDmaintenanceEnables AI agents to read and optionally write to PostgreSQL databases through a multi-project setup with schema inspection, query execution, and performance analysis tools.5-Why this server?
Provides a read-only interface to PostgreSQL databases, allowing schema exploration, table description, DDL retrieval, index and relationship inspection, and safe read-only SQL queries.
Why this server?
Allows inspecting database schemas and running read-only SQL queries on a PostgreSQL database.
FlicenseAqualityDmaintenanceEnables inspecting database schemas and executing read-only SQL queries on a PostgreSQL database via MCP tools.3-Why this server?
Provides PostgreSQL-backed stores for MCP durable tasks and sessions, including schema SQL, terminal-state protection, TTL enforcement, and atomic session extension.

@absolutejs/mcpofficial
AlicenseNot gradedqualityBmaintenanceEnables serving a remote Model Context Protocol endpoint by exposing tools, prompts, and resources with customizable authorization and hooks, allowing AI models to interact with your application through a standardized JSON-RPC interface.862 npmBusiness Source 1.1Why this server?
Provides tools for safely interacting with PostgreSQL databases: select, insert, update, delete operations on tables, with injection-safe filtering and ordering, including vector KNN search.
AlicenseNot gradedqualityBmaintenanceGenerates safe, scoped PostgreSQL DML tools for FastMCP agents, enabling controlled database interactions without raw SQL.894 PyPIApache 2.0Why this server?
Provides tools for read-only exploration of a PostgreSQL database, including listing schemas and tables, describing table structure, sampling rows, and running bounded SQL queries.
FlicenseAqualityDmaintenanceEnables read-only exploration of a Postgres database using natural language, with multiple safety layers to prevent any modifications.5-Why this server?
Allows querying and exploring a PostgreSQL database in read-only mode, providing tools to get schema and execute SELECT queries.
FlicenseAqualityDmaintenanceEnables safe read-only exploration and querying of a PostgreSQL database, listing tables and executing SELECT statements.2-Why this server?
Provides a stdio transport bridge to pREST's HTTP MCP endpoint, enabling MCP clients to interact with PostgreSQL databases for querying and schema operations via pREST.

pREST MCP Adapterofficial
AlicenseNot gradedqualityCmaintenanceBridges MCP clients that require stdio to a running pREST HTTP MCP endpoint, enabling database interaction via natural language.MITWhy this server?
Provides tools for interacting with PostgreSQL databases, including schema exploration, safe SQL execution, EXPLAIN, health checks, and index recommendations.
FlicenseAqualityDmaintenanceMCP server for PostgreSQL that enables schema exploration, safe SQL execution, EXPLAIN analysis, health checks, and index recommendations across multiple databases.10-Why this server?
Provides read-only access to PostgreSQL databases, allowing exploration of schemas, tables, views, stored procedures, indexes, foreign keys, and execution of SELECT queries.
Why this server?
Allows retrieving database schema information from a PostgreSQL database using the information_schema, providing agents with structural context about tables and columns.
FlicenseAqualityDmaintenanceA public MCP server demonstrating how an AI agent can retrieve database schemas and manage local OpenAPI contracts via tools for CRUD operations.6-Why this server?
Provides read-only tools for querying a PostgreSQL database containing service orders and client data, allowing natural language queries to be translated into safe SQL.
FlicenseAqualityBmaintenanceMCP server that allows natural language queries in Portuguese to a PostgreSQL database using Ollama, ensuring read-only access with parameterized SQL and strict safety policies.24-Why this server?
Provides semantic search over notes stored in a PostgreSQL database using pgvector, with tools to search indexed note chunks and list distinct note source files.
FlicenseAqualityDmaintenanceProvides SQL-backed semantic search over indexed notes using pgvector, exposing tools to search and list note sources via natural language.2-Why this server?
Provides read-only PostgreSQL schema inspection, allowing exploration of schemas, tables, indexes, sizes, sample data, and query plans.
FlicenseAqualityDmaintenanceEnables read-only PostgreSQL schema exploration through natural language, including tables, indexes, sizes, sample rows, and query plans, with structural safeguards against writes.7-Why this server?
Provides expense and income tracking by storing transactions in a PostgreSQL database, with tools for adding, listing, summarizing, editing, and deleting expenses, and adding credits.
FlicenseBqualityCmaintenanceEnables managing expenses and credits through natural language, with tools for adding, listing, summarizing, editing, and deleting transactions stored in PostgreSQL.6-Why this server?
Provides tools for inspecting a PostgreSQL database schema and executing read-only SQL queries, with optional natural-language to SQL generation.
FlicenseAqualityCmaintenanceEnables read-only access to a PostgreSQL database, allowing users to inspect schema, generate SQL from natural language, and execute read-only queries via MCP.5-Why this server?
Enables natural language interaction with PostgreSQL databases, allowing users to query data, inspect schemas, and generate SQL with safety features such as read-only enforcement and result validation.
FlicenseBqualityCmaintenanceEnables natural language interaction with PostgreSQL databases, converting questions into safe, validated SQL queries and returning verified results.1-Why this server?
Provides tools for managing data stored in a PostgreSQL database, including schema-driven CRUD, row- and field-level RBAC, immutable audit logging, and per-identity MCP tool surfaces.

@weave-kit/engineofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents to safely operate on PostgreSQL data through typed MCP tools with per-identity RBAC, guardrails, and immutable audit logging.74 npmMITWhy this server?
Runs a CIM (IEC 61970-301) operational data store on PostgreSQL + PostGIS + pgRouting, which the server queries directly for SQL-backed tools: equipment lookup and description, topology tracing (downstream/upstream, path finding, isolation, tie options, connectivity), spatial queries (equipment near a point, nearest substation, area impact, feeder geometry), telemetry (latest readings, measurement history, load profiles, peak load, limit exceedances, data quality), and governance (model change history, feeder validation). Any Postgres 16+ with PostGIS 3.4+ and pgRouting 3.4+ can run the schema, and study results are written to a `studies` schema.

feederline-mcpofficial
AlicenseNot gradedqualityCmaintenanceEnables AI agents to simulate and analyze distribution power grids, including power-flow, DER hosting-capacity, voltage, fault, and time-series studies, plus SQL-based topology and telemetry queries on public utility network models.Apache 2.0Why this server?
Provides tools for managing PostgreSQL database connections, executing read-only queries, explaining query plans, and exploring database schema.
AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server for PostgreSQL databases that enables AI agents to connect, query, and explore multiple databases with schema discovery and extension context.542MITWhy this server?
Enables querying and analyzing PostgreSQL databases through SQL execution, table schema inspection, and sample data retrieval with optional write operations support
AlicenseNot gradedqualityDmaintenanceEnables LLMs to query and analyze PostgreSQL databases through a controlled interface. Supports SQL query execution, table schema inspection, and optional write operations with safety controls.600 npm178MITWhy this server?
Uses PostgreSQL with pgvector extension as a vector database for storing and searching document embeddings generated from various file formats including Markdown, PDF, and PowerPoint files.
AlicenseNot gradedqualityDmaintenanceEnables retrieval-augmented generation (RAG) by indexing and searching through documents (Markdown, text, PowerPoint, PDF) using vector embeddings with multilingual-e5-large model and PostgreSQL pgvector. Supports contextual chunk retrieval and incremental indexing for efficient document management.71MITWhy this server?
Provides offline schema intelligence and analysis for PostgreSQL, including schema exploration, SQL query validation, query plan analysis, migration safety checks, linting, vacuum health monitoring, and query statistics from captured snapshots.
AlicenseNot gradedqualityBmaintenanceGives AI coding assistants, IDEs, and CI full PostgreSQL schema intelligence from an offline snapshot, enabling linting, query validation, migration safety analysis, and foreign key graph exploration without ever exposing database credentials.36BSD 2-Clause "Simplified"