mcp postgres for Cursor
io.github.dockndevai/mcp-postgres
PostgreSQL schema exploration, read-only SQL & governed changes for AI agents.
client:Cursor
transport:stdio
runtime:npm
Install mcp postgres in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"mcp-postgres": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@dockndevai/mcp-postgres"
],
"env": {
"POSTGRES_URL": "<POSTGRES_URL>",
"POSTGRES_MODE": "<POSTGRES_MODE>",
"POSTGRES_SCHEMA_ALLOWLIST": "<POSTGRES_SCHEMA_ALLOWLIST>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs