pg doctor for Cursor
io.github.alaev-dev/pg-doctor
Read-only PostgreSQL diagnostics for AI agents: slow queries, plans, bloat, vacuum, locks, replicas.
client:Cursor
transport:stdio
runtime:oci
Install pg doctor in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"pg-doctor": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/alaev-dev/pg-doctor:0.3.0"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs