mcp-pg-schema

mcp-pg-schema

3.3

If you are the rightful owner of mcp-pg-schema and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

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.

The PostgreSQL Model Context Protocol (MCP) server is designed to facilitate read-only interactions with PostgreSQL databases. It allows Language Model Machines (LLMs) to access and inspect database schemas, as well as execute read-only SQL queries. This server is particularly useful for applications that require database insights without the risk of data modification. By leveraging the server, users can gain a comprehensive understanding of the database structure, including table schemas, column names, and data types, all automatically discovered from the database metadata. The server operates within a READ ONLY transaction, ensuring data integrity and security.

Features

  • Read-only SQL query execution
  • Automatic schema discovery
  • JSON schema information for tables
  • Secure data access with READ ONLY transactions

Tools

  1. query

    Execute read-only SQL queries against the connected database. Input: sql (string): The SQL query to execute. All queries are executed within a READ ONLY transaction.