A side-by-side look at the Pg Readonly MCP and Pgmcp MCP servers: transport, auth, tools, quality signals, and the config to install either one in Claude, Cursor, Windsurf or VS Code.
Verdict: choose Pg Readonly MCP for databases work as a local process; choose Pgmcp for databases over a hosted endpoint. You can also run both side by side in one mcpServers block.
PG_READONLY_MCP_DSN.DATABASE_URL.Rows where the two servers differ are marked.
| Spec | P Pg Readonly MCP | |
|---|---|---|
| Category | Databases | Databases |
| Quality signal | 41/100 · Fair | 45/100 · Fair |
| Install command | Confirmed | Confirmed |
| Transport | Local subprocess (stdio) | Remote HTTP/SSE |
| Auth | other | API key required |
| Pricing | Free | Free |
| Required env vars | PG_READONLY_MCP_DSN | DATABASE_URL |
No tool names declared yet. Check the project README from the listing page.
No tool names declared yet. Check the project README from the listing page.
Paste either block (or both) into your client config, e.g. claude_desktop_config.json or ~/.cursor/mcp.json. We only show a config when the install command is confirmed.
{
"mcpServers": {
"pg-readonly-mcp": {
"command": "uvx",
"args": [
"pg-readonly-mcp"
],
"env": {
"PG_READONLY_MCP_DSN": "YOUR_PG_READONLY_MCP_DSN_HERE"
}
}
}
}
{
"mcpServers": {
"subnetmarco-pgmcp": {
"url": "http://localhost:8080/mcp"
}
}
}
| Verified owner | Community listing | Community listing |
|---|
| GitHub stars | 0 | 541 |
|---|
| Directory activity | 0 views 0 installs 0 upvotes | 3 views 0 installs 0 upvotes |
|---|
| Tools | Not listed | Not listed |
|---|
| Full listing | View Pg Readonly MCP | View Pgmcp |
|---|