postgres for Cursor
io.github.ofershap/postgres
PostgreSQL MCP — query databases, inspect schemas, explain queries.
client:Cursor
transport:stdio
runtime:npm
Install postgres in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"postgres": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-pg-server"
]
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs