Skip to content
MCP ServerCommunity

PostgreSQL

Query PostgreSQL databases from Cursor's AI chat. Explore schemas, run read-only queries, and inspect data to inform your code changes in real time.

Details

Author
ModelContextProtocol
Trust Level
Scriptsincludes executable code
Compatible With
cursor

Tags

databasepostgressql

Quick Install

Add this snippet to your MCP configuration file:

"postgres": {
  "command": "npx",
  "args": ["-y", "@mcp/postgres"]
}

The server starts on demand — no global install required.

More from Cursor