Skip to main content
Glama

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 (561)

  • Why this server?

    Provides read-only insight into a PostgreSQL database: lists schemas and tables, describes tables with indexes, foreign keys and bloat statistics, samples rows with PII redaction, runs ad-hoc read-only queries with row caps and timeouts, analyzes query plans into hints with CREATE INDEX suggestions, and surfaces slow queries via pg_stat_statements or pg_stat_activity.

    A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to explore PostgreSQL schemas, sample PII-redacted rows, run AST-guarded read-only queries, and diagnose slow statements with EXPLAIN-driven index suggestions. All access is confined to allowlisted schemas inside a read-only, timeout-bounded session with output marked as untrusted data.
    MIT
  • Why this server?

    Provides read-only access to PostgreSQL databases for AI agents. It exposes tools to list tables, describe schemas, run guarded SELECT queries, and explain query plans, while enforcing SQL safety checks, result masking, timeouts, row limits, and append-only audit logging.

    A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI agents to query PostgreSQL through read-only, audited access with SQL guards, timeouts, row limits, and PII masking.
    MIT
  • Why this server?

    Provides direct read access to Plane's PostgreSQL database, enabling arbitrary SELECT/WITH/EXPLAIN queries plus issue and project lookups through SQL.

    A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to read Plane CE projects, issues, and arbitrary SQL queries directly from PostgreSQL, while creating, updating, and completing issues through Plane's REST API so notifications, activity logs, and webhooks fire. Ships a lean 8-tool schema for low token overhead.
    38 npm
    MIT
  • Why this server?

    Provides tools for interacting with PostgreSQL databases, including executing SELECT queries to read data, listing all tables, and viewing schema information for specific tables.

  • Why this server?

    Provides read-only access to PostgreSQL databases, allowing LLMs to inspect database schemas and execute read-only queries against connected PostgreSQL databases

    -
    license
    Not graded
    quality
    B
    maintenance
    A Model Context Protocol server that provides read-only access to PostgreSQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.
    139,311 npm
    92,139
    MIT
  • Why this server?

    Uses PostgreSQL database to store and query code embeddings for semantic codebase search, enabling vector similarity searches across tracked code snippets and files.

    F
    license
    Not graded
    quality
    D
    maintenance
    Enables semantic search and retrieval of code files using embeddings stored in PostgreSQL. Supports intelligent codebase exploration through natural language queries, file listing, and content retrieval.
    16
    -
  • Why this server?

    Allows AI agents to use saved PostgreSQL connections, with per-connection permissions controlling whether agents may read, propose writes for approval, or make full changes. Agent changes can be staged as rows or SQL for review, and agent activity is logged.

    F
    license
    Not graded
    quality
    B
    maintenance
    Lets AI agents connect to your saved PostgreSQL connections over MCP, with per-connection permission levels ranging from read-only to full access. Writes can be staged for your approval, and every agent action is logged on an Agents page with a single switch to pause them all.
    15
    -
  • Why this server?

    Provides tools for querying a PostgreSQL database, including listing tables, getting schema, querying inventory, obtaining top sales, and executing read-only SQL queries with security guards.

    F
    license
    Not graded
    quality
    D
    maintenance
    Provides secure, read-only PostgreSQL database access via MCP tools like query_inventory and get_top_sales. Blocks dangerous SQL commands while allowing AI to execute controlled SELECT queries.
    10
    -
  • Why this server?

    Provides tools for profiling SQL queries and suggesting indexes for PostgreSQL databases, enabling AI agents to analyze and optimize database performance.

    F
    license
    Not graded
    quality
    D
    maintenance
    Provides tools for local development environment management and PostgreSQL optimization, including version checking, port process termination, SQL query analysis, and index suggestions.
    5
    -
  • Why this server?

    Provides tools for executing SQL queries, exploring schemas, and managing data masking rules for PostgreSQL databases, featuring built-in PII detection to automatically obfuscate sensitive information in query results.

    F
    license
    Not graded
    quality
    D
    maintenance
    A PostgreSQL MCP server that automatically detects and obfuscates personally identifiable information (PII) in query results using column-name heuristics and NLP analysis. It enables AI agents to interact securely with databases by masking sensitive data by default while allowing selective unmasking under user control.
    4
    -
  • Why this server?

    Provides a query tool to run parameterized SQL statements against a PostgreSQL database, returning command, rowCount, and rows as JSON.

    F
    license
    Not graded
    quality
    D
    maintenance
    Enables running parameterized SQL queries against a PostgreSQL database via an MCP tool.
    3
    -
  • Why this server?

    Fetches conversation data directly from a PostgreSQL database, rendering it as formatted terminal output.

    F
    license
    Not graded
    quality
    D
    maintenance
    Fetches conversations from PostgreSQL and renders them as beautifully formatted, human-readable terminal output.
    2
    -
  • Why this server?

    Serves as the production vector storage backend (via pgvector) for the knowledge base, enabling semantic retrieval and graph data storage, with an in-memory mode for offline development.

    F
    license
    Not graded
    quality
    B
    maintenance
    Enables to build and query a knowledge base with retrieval-augmented generation, supporting document ingestion, hybrid search, and live data integration from external APIs via MCP tools.
    2
    -
  • Why this server?

    Enables direct execution of PostgreSQL queries including SELECT for data retrieval and INSERT, UPDATE, DELETE, CREATE operations for database modifications, returning structured JSON results.

    F
    license
    Not graded
    quality
    D
    maintenance
    Enables direct execution of PostgreSQL queries through the Model Context Protocol. Supports both SELECT and non-SELECT operations with dual communication modes (stdio and HTTP REST API).
    1
    -
  • Why this server?

    Provides access to the USDA nutrition database, enabling queries for food nutrition profiles, nutrient comparisons, category browsing, and discovery of foods high in specific nutrients across 7,146+ food items and 136 tracked nutrients.

    F
    license
    Not graded
    quality
    D
    maintenance
    Provides intelligent access to the USDA nutrition database through AI assistants, enabling users to search foods, compare nutritional content, find foods high in specific nutrients, and query authoritative nutrition data across 7,146+ food items through natural language.
    1
    -
  • Why this server?

    Provides access to curated travel spot data stored in a PostgreSQL database, allowing users to query major attractions, supporting sites, and the top-ten most popular destinations.

    F
    license
    Not graded
    quality
    D
    maintenance
    A FastMCP-powered server for accessing curated travel spot data from a PostgreSQL database. It provides tools to retrieve major attractions, supporting sites, and the top ten most popular destinations.
    1
    -
  • Why this server?

    Allows querying and managing a PostgreSQL database, including executing read-only SQL, write SQL, listing tables, describing table schemas, listing schemas, and retrieving a full database schema overview.

    F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to query and manage local PostgreSQL databases through SQL execution and schema exploration tools. It supports both read-only queries and write operations including table creation and data modification via natural language.
    1
    -
  • Why this server?

    Provides tools for inspecting PostgreSQL database schema, checking null ratios, and detecting logical anomalies such as negative stock counts and duplicate SKUs.

  • Why this server?

    Provides tools for SQL queries, table management, database administration, data import/export, and cross-database migration for PostgreSQL databases.

    F
    license
    Not graded
    quality
    D
    maintenance
    A Julia-based MCP server providing tools for database operations, file management, and database administration, with HTTP bridge support for Windows Claude Desktop integration.
    1
    -
  • Why this server?

    Provides tools for listing tables, describing tables, selecting rows, inserting rows, updating rows, and deleting rows in a PostgreSQL database using natural language.

    F
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that allows Claude to query and manipulate a PostgreSQL database using natural language, with tools for listing tables, describing tables, and performing CRUD operations.
    1
    -
  • Why this server?

    Stores full run history, token usage, and alerts in a PostgreSQL database.

  • Why this server?

    Provides read-only access to a PostgreSQL database (cxdb), enabling SQL queries, table listing, and schema description through natural language.

    F
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol (MCP) server that gives Claude direct, read-only access to the cxdb PostgreSQL database. This lets you query production data in plain English — no SQL knowledge required — straight from Claude Code or the Claude desktop app.
    1
    -
  • Why this server?

    Provides unrestricted SQL execution (DDL/DML) for PostgreSQL databases, allowing AI agents to create, read, update, delete, and manage database objects.

    F
    license
    Not graded
    quality
    B
    maintenance
    Enables AI agents to execute any SQL command (including DDL/DML) on a PostgreSQL database with zero restrictions, allowing full database control and dynamic database switching.
    1
    -
  • Why this server?

    Allows unrestricted SQL execution (DDL/DML) on a PostgreSQL database, enabling AI agents to create, read, update, and delete database objects and data.

    F
    license
    Not graded
    quality
    D
    maintenance
    Enables unrestricted SQL execution (DDL/DML) on PostgreSQL databases, allowing AI agents to create, read, update, and delete data with zero query filtering.
    1
    -
  • Why this server?

    Provides tools for querying employee data, including counting employees, listing employees, finding employees, summarizing delays, listing late arrivals, and listing absences, backed by a PostgreSQL database.

    F
    license
    Not graded
    quality
    D
    maintenance
    Exposes read-only PostgreSQL-backed HR data through seven structured tools, including employee directory lookups, late arrival and absence reporting, and delay summarization, all validated with Zod and returning queryable structured content.
    1
    -
  • Why this server?

    Provides read-only access to PostgreSQL databases, including tools for listing databases, schemas, and tables, describing tables, running guarded read-only SQL, and performing reranked hybrid search.

    F
    license
    Not graded
    quality
    C
    maintenance
    Enables read-only interaction with PostgreSQL corpora, including catalog introspection, guarded SQL execution, and reranked hybrid dense+sparse search over a secure HTTP endpoint.
    1
    -
  • Why this server?

    Provides secure read-only access to PostgreSQL databases, enabling MCP clients to list schemas and tables, describe table structures, and execute read-only SQL queries such as SELECT, VALUES, SHOW, and EXPLAIN.

    F
    license
    Not graded
    quality
    C
    maintenance
    Enables MCP clients to safely query one or more PostgreSQL databases with read-only tools and explicitly approved write operations.
    1
    -
  • Why this server?

    Provides tools for querying PostgreSQL databases, inspecting database schemas, listing tables, and retrieving detailed table information with column definitions and constraints.

    F
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that enables querying PostgreSQL databases with tools for executing SELECT queries, inspecting database schemas, and listing tables through natural language.
    -
  • Why this server?

    Provides tools for querying and managing e-commerce data in an EC solution's PostgreSQL database, including order information, member data, table structures, and database statistics

    -
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables connection to PostgreSQL databases for EC solution platforms to query and manage e-commerce data including orders, members, and other business information. Provides tools for direct SQL execution, table structure analysis, and specialized e-commerce data retrieval functions.
    -
  • Why this server?

    Provides tools for PostgreSQL database interactions including listing tables, retrieving database information, and executing read-only SQL queries with security-first validation

    -
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables secure read-only interactions with PostgreSQL databases through natural language. Provides database inspection, table listing, and SQL query execution with built-in security validation.
    -