read-only-local-postgres-mcp-server

v0.1.0
capital.hove/read-only-local-postgres-mcp-server Checked 3 hours ago Published 10 months ago

MCP server for read-only PostgreSQL database queries in Claude Desktop

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

connect

Connect to a PostgreSQL database using a connection string. The connection will be used for subsequent queries until changed.

ParameterTypeDescription
connectionString *stringPostgreSQL connection string (e.g., postgres://user:password@host:5432/database?sslmode=require)

disconnect

Disconnect from the current runtime database and revert to the default environment-configured connection

query

Run a read-only SQL query against the currently connected database

ParameterTypeDescription
sql *stringSQL query to execute (read-only)
connectionStringstringOptional: PostgreSQL connection string to override the current connection for this query only