read-only-local-postgres-mcp-server
v0.1.0MCP 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.
| Parameter | Type | Description |
|---|---|---|
connectionString * | string | PostgreSQL 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
| Parameter | Type | Description |
|---|---|---|
sql * | string | SQL query to execute (read-only) |
connectionString | string | Optional: PostgreSQL connection string to override the current connection for this query only |