PostgreSQL MCP Servers
PostgreSQL is an advanced open source relational database management system that offers robustness, scalability, and performance.
1942 open-source servers · 0 connectors · postgresql.org ↗
Open-source servers
Code you run yourself, locally or on your own infrastructure.
Built for PostgreSQL (561)
Why this server?
Provides read-only access to PostgreSQL databases, allowing execution of SELECT/WITH queries and schema exploration (listing schemas, tables, columns).
AlicenseNot gradedqualityDmaintenanceEnables read-only interaction with PostgreSQL databases, allowing natural language queries for listing schemas, tables, describing columns, and executing SELECT/WITH statements.MITWhy this server?
Allows read-only querying and schema exploration of a PostgreSQL database, with enforced read-only transactions, statement timeout, and row limits.
AlicenseNot gradedqualityDmaintenanceA zero-config, read-only PostgreSQL MCP server that enforces read-only access at the database level using READ ONLY transactions, allowing AI agents to safely explore schemas and run SELECT queries without risk of mutation.11 npmMITWhy this server?
Allows querying a PostgreSQL database using natural language, providing tools to list tables, describe schemas, and execute read-only SELECT queries.
AlicenseNot gradedqualityDmaintenanceA read-only natural-language database agent that exposes PostgreSQL schema-discovery and SELECT tools via MCP, enabling users to query databases in plain English.MITWhy this server?
Provides read-only inspection of a PostgreSQL database (content_saas) containing channel configurations, posting schedules, publication attempts, and error logs for a neuro auto-posting service. Tools allow listing channels, viewing channel setup, summarizing outcomes, and retrieving publication details or failures.
AlicenseNot gradedqualityDmaintenanceRead-only MCP server for inspecting a neuro auto-posting service's publication pipeline. Allows operators to query channels, publications, errors, and configuration via natural language.MITWhy this server?
Provides tools for interacting with PostgreSQL databases, enabling AI assistants to perform database operations such as listing tables, describing schemas, executing SELECT queries, and more through a standardized MCP interface.
AlicenseNot gradedqualityDmaintenanceEnables AI assistants to securely interact with PostgreSQL databases through a standardized MCP interface, supporting SQL queries, schema inspection, and database management.MITWhy this server?
Allows querying PostgreSQL databases using natural language, with automatic schema introspection, SQL generation, safety validation, and structured JSON results.
AlicenseNot gradedqualityCmaintenanceAsk your database questions in plain English. Connects PostgreSQL databases to MCP clients and answers with real, structured data instead of guesses.MITWhy this server?
Provides tools to query sample data (days of the week and postal codes) from a PostgreSQL database, including listing all records and searching by specific fields such as city or postal code.
AlicenseNot gradedqualityDmaintenanceA simple MCP server providing dummy data tools for days of the week and postal codes, with Streamable HTTP transport and optional API key authentication.ISCWhy this server?
Provides tools for interacting with a self-hosted PostgreSQL instance, including schema discovery, relation introspection, arbitrary read-only SQL queries, and transactional write commands with human approval.
AlicenseNot gradedqualityDmaintenanceA Python MCP 2.0 server for self-hosted PostgreSQL instances, providing schema/relation discovery, SQL query and controlled transactional execution tools with security features like read-only transactions, role hardening guidance, and optional human approval for write commands.MITWhy this server?
Allows executing read-only SELECT queries against a PostgreSQL database.
AlicenseNot gradedqualityDmaintenanceA read-only MCP server for querying PostgreSQL databases. It exposes a tool that runs SELECT queries and returns results to the agent.MITWhy this server?
Provides read-only PostgreSQL schema introspection via MCP, including tables, columns, primary keys, foreign keys, and indexes, with security enforced by a least-privilege database role.
AlicenseNot gradedqualityDmaintenanceProvides a read-only PostgreSQL MCP server with schema introspection. Enforces least-privilege database roles to prevent any writes, even from malicious SQL.MITWhy this server?
Allows querying and interacting with PostgreSQL databases, providing read-only queries by default, transaction management, and optional write/DDL support.
AlicenseNot gradedqualityDmaintenanceAn MCP server for safely querying PostgreSQL from an LLM, with read-only default mode, multi-connection aliases, and session-enforced safety.7 npmMITWhy this server?
Provides read-only access to a PostgreSQL database with SQL guardrails, row-level security, and masked views to protect sensitive data.
AlicenseNot gradedqualityDmaintenanceProvides read-only access to PostgreSQL databases via MCP, enforcing least-privilege roles, row-level security, masked views, and SQL AST guardrails to prevent data leakage and unauthorized operations, enabling AI agents to safely query sensitive production data.MITWhy this server?
Provides read-only SQL query tools for PostgreSQL, allowing execution of parameterized queries with row caps and timeouts, returning results as JSON.
AlicenseNot gradedqualityDmaintenanceExposes read-only PostgreSQL queries as typed MCP tools, enabling natural-language data analysis while keeping raw tables hidden and enforcing safety limits.MITWhy this server?
Provides read-only access to PostgreSQL databases, with tools for running safe queries, listing tables, describing table structures, fetching schema DDL, and generating read-only roles.
AlicenseNot gradedqualityDmaintenanceA read-only MCP server for PostgreSQL that serves multiple databases from one process, enforcing read-only access via PostgreSQL grants rather than SQL string matching, and supports both local stdio and remote HTTP transports.Apache 2.0Why this server?
Query PostgreSQL databases, inspect schemas, and explain query plans from an AI assistant.
AlicenseNot gradedqualityDmaintenanceEnables AI assistants to query PostgreSQL, inspect schemas, and explain queries, designed for local and development databases with read-only safety by default.49 npmMITWhy this server?
Provides tools for interacting with a private Cloud SQL PostgreSQL database, enabling AI agents to perform CRUD operations on catering CRM data including client profiles, bookings, orders, and menus.
AlicenseNot gradedqualityBmaintenanceEnables secure, natural language access to private Cloud SQL PostgreSQL data for catering CRM management, exposing database CRUD operations as MCP tools via Cloud Run.32 npmMITWhy this server?
Provides persistent, versioned, audited long-term memory storage for AI agents using PostgreSQL, with tools to create, revise, archive, search, and manage memory records.
AlicenseNot gradedqualityDmaintenanceMCP server providing layered, PostgreSQL-backed long-term memory for AI agents with versioned, audited writes and sensitive candidate filtering. Agents persist only explicitly requested facts, preferences, and project context via MCP tools.Apache 2.0Why this server?
Allows connecting to PostgreSQL databases, providing natural language querying via SQL, vector search with pgvector, and knowledge graph traversal based on the database catalog.
AlicenseNot gradedqualityDmaintenanceEnables natural language querying of PostgreSQL via MCP, combining SQL, vector search, and knowledge graph with automatic routing and token-aware curation.Apache 2.0Why this server?
Provides tools to retrieve customer profiles, semantically search interaction history using pgvector, and obtain exact purchase summaries with audit logs from a PostgreSQL database.
AlicenseNot gradedqualityDmaintenanceMCP server for securely connecting LLMs to customer data, providing customer profile retrieval, semantic search of interaction history, and exact financial summaries via SQL aggregation, with audit logging and prompt injection protection.MITWhy this server?
Provides a local review/approval layer for PostgreSQL MCP interactions, trapping destructive tool calls such as writes, deletes, and SQL mutations and holding them for commit or discard via a local dashboard.
AlicenseNot gradedqualityDmaintenanceA local-first stdio proxy for MCP servers that traps destructive tool calls and holds them for manual commit or discard, preventing accidental mutations.AGPL 3.0Why this server?
Provides a read-only interface to PostgreSQL databases, allowing agents to execute SELECT queries safely by parsing SQL statements to prevent write operations.
AlicenseNot gradedqualityCmaintenanceA read-only Postgres MCP server that parses SQL to block write statements and prevents bypasses by refusing connections with write privileges.30 PyPIMITWhy this server?
Provides a tool to query a read-only PostgreSQL database, enabling the agent to retrieve data from a sample commerce dataset using SELECT statements.
AlicenseNot gradedqualityCmaintenanceAn MCP server exposing three tools — a read-only PostgreSQL commerce database, a live weather API, and a calculator — behind a real MCP protocol client/server boundary. It enables natural-language questions that combine database and weather data, with real-time streaming of tool calls and model error recovery.MITWhy this server?
Provides read-only PostgreSQL operations and DBA diagnostics, including tools for analyzing slow queries, explaining plans, index health, table bloat, lock waits, connections, replication lag, and configuration checks.
AlicenseNot gradedqualityCmaintenanceRead-only PostgreSQL ops/DBA server for the Model Context Protocol, providing diagnostics like slow queries, index health, lock waits, replication lag, and configuration tuning advice.MITWhy this server?
Provides tools and resources for managing users in a PostgreSQL database, including creating, updating, and deleting user records, listing all users, and retrieving a single user profile by ID.
AlicenseNot gradedqualityCmaintenanceA playground MCP server that demonstrates exposing tools and resources to AI agents, enabling them to manage a simple user database with create and read operations.ISCWhy this server?
Provides persistent storage for conversation history and semantic memories, using PostgreSQL with the PGVector extension for vector-based search.
AlicenseNot gradedqualityDmaintenanceProvides persistent history and semantic memory for llama-server, enabling cross-session recall and memory management through MCP tools.MITWhy this server?
Allows querying manufacturing equipment observation values stored in PostgreSQL, including retrieving original rows by UDI or other conditions and failure data samples.
AlicenseNot gradedqualityDmaintenanceEnables exploration of manufacturing equipment data and analysis of failure risk, supporting monitoring, failure classification, and anomaly detection through natural language.MITWhy this server?
Provides read-only tools for exploring and querying a PostgreSQL database, including listing tables, describing table schemas, and running safely limited SELECT queries.
AlicenseNot gradedqualityCmaintenanceEnables read-only, SELECT-only querying of any Postgres database through MCP-compatible clients like Claude, with schema introspection and guarded SQL execution.MITWhy this server?
Provides credential-isolated access to PostgreSQL databases, allowing execution of read-only and gated write SQL queries through a secure, tunneling-based connection.
AlicenseNot gradedqualityDmaintenanceEnables AI assistants to run SQL queries on PostgreSQL databases through a credential-isolated proxy, with read-only queries by default and write operations requiring explicit confirmation.Apache 2.0Why this server?
Provides guarded read-only access to a PostgreSQL database, enabling safe querying, table listing, and schema inspection without modifying data.
AlicenseNot gradedqualityCmaintenanceEnables an AI assistant to run guarded, read-only SQL queries against a Postgres database with enforced limits and validation.MITWhy this server?
Provides tools for managing personal expenses, including registering and storing expense records in a PostgreSQL database.
AlicenseNot gradedqualityBmaintenanceEnables conversational expense tracking via Telegram, allowing natural language registration, querying, and summarization of expenses, with persistence in PostgreSQL and support for multiple LLM providers.MIT