npx -y @modelcontextprotocol/server-postgres

Category: AI Agents & MCP

npx -y @modelcontextprotocol/server-postgres

Start the MCP PostgreSQL server for database access

Exposes your PostgreSQL database as MCP tools. Agents can run SELECT queries, inspect schemas, and describe tables. Set the DATABASE_URL environment variable to your connection string. Read-only by default for safety.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.