mcp-pgsql-query

v0.1.0
mcp-pgsql-query Checked 8 hours ago Published 3 months ago

MCP server for read-only PostgreSQL queries

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

query_pgsql

Run a read-only SELECT query against the configured PostgreSQL database. Only SELECT statements are accepted. INSERT, UPDATE, DELETE, DDL, COPY, and any other data-modifying or filesystem-accessing constructs are rejected. Args: sql: A SELECT SQL statement to execute (PostgreSQL dialect). max_rows: Maximum number of rows to return (default 100, max 1000).

ParameterTypeDescription
sql *string
max_rowsinteger