query
Execute read-only SQL queries against the database.
How to use it
query is exposed by the Postgres MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the query tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Postgres MCP Server
$
npx @ahmedmustahid/postgres-mcp-serverOther tools in Postgres MCP Server (1)