Skip to main content
Glama

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 tools for interacting with Azure Database for PostgreSQL, including listing databases, listing tables with schema, executing read queries, inserting/updating records, and creating/dropping tables.

    A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol (MCP) Server that allows AI models to securely interact with data hosted in Azure Database for PostgreSQL. It enables natural language querying, schema exploration, and data management through MCP clients like Claude Desktop and Visual Studio Code.
    MIT
  • Why this server?

    Provides OAuth authentication token storage using PostgreSQL.

    A
    license
    Not graded
    quality
    D
    maintenance
    A production-ready template for building Model Context Protocol servers in Python, featuring example tools, structured logging, and multiple transport protocols.
    Apache 2.0
  • Why this server?

    Provides tools to create and retrieve student records from a PostgreSQL database, enabling AI assistants to manage student data through database operations.

  • Why this server?

    Provides tools for exploring a PostgreSQL database schema and running read-only queries, including listing tables, describing table columns and constraints, executing SELECT queries, and retrieving foreign key relationships.

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI clients to explore a PostgreSQL database schema and run read-only queries, including listing tables, describing columns, executing SELECT queries, and retrieving foreign key relationships.
    ISC
  • Why this server?

    Provides tools to interact with a PostgreSQL database, allowing users to list tables, execute read-only queries, and perform write operations with role-based access control.

  • Why this server?

    Provides read-only access to a PostgreSQL database, enabling tools for running SELECT queries, listing tables with row counts and sizes, describing table schemas, and listing user-defined schemas.

    A
    license
    Not graded
    quality
    D
    maintenance
    Read-only PostgreSQL MCP server that enables running SELECT queries, listing tables and schemas, and describing columns, with built-in protection against writes and malicious SQL attacks.
    MIT
  • Why this server?

    Allows interaction with PostgreSQL databases, providing tools for executing SQL queries, listing tables, and describing table schemas.

    A
    license
    Not graded
    quality
    D
    maintenance
    MCP server for PostgreSQL that enables Cursor and other MCP clients to execute SQL queries, list tables, and explore database schemas via HTTP.
    MIT
  • Why this server?

    Enables chat-based interaction with a PostgreSQL database, allowing schema discovery, read-only queries, and write operations with role-based access control.

  • Why this server?

    Provides secure database operations for PostgreSQL, including listing databases, tables, describing table structures, and executing SQL queries with built-in safety checks and AST-based SQL parsing.

    A
    license
    Not graded
    quality
    D
    maintenance
    A PostgreSQL MCP server with AST-based security for safe database operations. Enables AI assistants to query and manage PostgreSQL databases securely.
    MIT
  • Why this server?

    Provides tools for interacting with PostgreSQL databases, enabling SQL query execution, table listing, and connection testing.

    A
    license
    Not graded
    quality
    D
    maintenance
    MCP server providing PostgreSQL and Vertica database access with tools for querying, listing tables, and testing connections.
    MIT
  • Why this server?

    Provides secure, role-based access to PostgreSQL databases, enabling AI agents to query, insert, update, delete data with fine-grained permissions.

    A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol (MCP) server that provides secure, role-based access to PostgreSQL databases for AI agents.
    MIT
  • Why this server?

    Provides tools for connecting to and managing PostgreSQL databases, including executing queries, listing tables, describing schema, creating tables and indexes, inserting, updating, deleting data, and creating backups.

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to interact with PostgreSQL databases through the Model Context Protocol, supporting SQL queries, schema management, and data operations.
    MIT
  • Why this server?

    Provides tools for querying and executing SQL on a PostgreSQL database, including schema discovery, read-only queries, and write operations with role-based access control.

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables you to chat with your PostgreSQL database via natural language, with GitHub OAuth authentication and role-based access control for secure read/write operations.
    MIT
  • Why this server?

    Provides read-only access to PostgreSQL databases, allowing inspection of schemas and execution of read-only SQL queries.

  • Why this server?

    Enables read-only SQL query execution and database schema information retrieval on PostgreSQL databases, including tools for executing queries, listing tables, and fetching table schemas.

    A
    license
    Not graded
    quality
    C
    maintenance
    Enables read-only SQL query execution and database schema information retrieval for PostgreSQL databases.
    7 npm
    MIT
  • Why this server?

    Provides read-only introspection and query capabilities for PostgreSQL databases, including 13 tools for schema/table inspection, SQL querying with EXPLAIN, and storage statistics, as well as resources and prompts for database analysis.

    A
    license
    Not graded
    quality
    D
    maintenance
    A read-only MCP server for PostgreSQL that enables safe database introspection and querying via natural language.
    MIT
  • Why this server?

    Provides read-only exploration and analysis of PostgreSQL databases, including schema discovery, query execution, and performance analysis through EXPLAIN and EXPLAIN ANALYZE.

    A
    license
    Not graded
    quality
    D
    maintenance
    Securely connect AI assistants to PostgreSQL databases with read-only access, schema discovery, querying, and performance analysis tools.
    5 npm
    MIT
  • Why this server?

    Provides tools for executing SQL queries (read-only by default), listing tables, and describing table structures in a PostgreSQL database.

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to query and explore PostgreSQL databases with tools for executing SQL queries, listing tables, and describing table structures.
    MIT
  • Why this server?

    Provides read-only access to PostgreSQL databases, allowing querying tables, listing tables, and describing table schemas via SQL.

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables read-only PostgreSQL database access with query, table listing, and schema inspection tools.
    ISC
  • Why this server?

    Provides database operations (SQL queries, schema management, statistics) and resources for interacting with a PostgreSQL database.

  • Why this server?

    Allows AI agents to execute SQL queries, list tables, and describe table structures in a PostgreSQL database.

  • Why this server?

    Provides tools for managing customers, tickets, products, and analytics in a PostgreSQL database via natural language queries through the Model Context Protocol.

    A
    license
    Not graded
    quality
    B
    maintenance
    Enables natural language queries, CRUD operations, and analytics on a PostgreSQL database (Neon) via Claude, supporting customers, tickets, products, and analytics.
    MIT
  • Why this server?

    Provides tools for querying and executing SQL commands on a PostgreSQL database, including schema discovery (listTables), read-only queries (queryDatabase), and write operations (executeDatabase) with role-based access control.

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables users to interact with PostgreSQL databases through natural language, with GitHub OAuth authentication and role-based access control.
    MIT
  • Why this server?

    Uses PostgreSQL with pgvector extension as a vector database for storing and retrieving document embeddings, enabling RAG functionality such as vector search and document indexing.

    A
    license
    Not graded
    quality
    C
    maintenance
    MCP RAG Server is a Python MCP server that indexes documents in multiple formats (Markdown, text, PowerPoint, PDF) using multilingual-e5-large embeddings and enables vector search for retrieval-augmented generation.
    MIT
  • Why this server?

    Provides tools to query and introspect PostgreSQL databases with support for SSH tunnels, including running SQL queries, explaining query plans, listing schemas and tables, describing table columns, and checking connection status.

    A
    license
    Not graded
    quality
    C
    maintenance
    A cross-platform MCP server for querying and introspecting PostgreSQL databases with SSH tunnel support, featuring multi-layered query safety and read-only enforcement.
    13 npm
    MIT
  • Why this server?

    Allows executing read-only SQL queries against a PostgreSQL database, returning rows as JSON.

  • Why this server?

    Provides read-only SQL access to PostgreSQL databases, enabling schema discovery, table metadata retrieval, and safe SELECT queries within read-only transactions.

    A
    license
    Not graded
    quality
    D
    maintenance
    Read-only MCP server for PostgreSQL, enabling schema discovery, table metadata, and safe SELECT queries via READ ONLY transactions.
    MIT
  • Why this server?

    Provides read-only SQL analytics and ALS-based collaborative filtering recommendations on a PostgreSQL e-commerce database.

  • Why this server?

    Read-only PostgreSQL adapter with SQL guardrails, allowing schema inspection and safe SELECT queries with limit enforcement and statement timeout.

    A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI tools to understand a database, inspect schema, and run safe SELECT queries with SQL guardrails, plus optional codebase reading.
    MIT
  • Why this server?

    Provides tools to explore and query a PostgreSQL database, including listing tables, getting schemas, executing SELECT queries, filtering records, and obtaining database statistics.

    A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that enables connecting to PostgreSQL databases and executing queries, listing tables, retrieving schema, and obtaining database statistics through MCP tools.
    MIT