PGMCP - PostgreSQL Model Context Protocol Server vs Postgres MCP Pro
A side-by-side comparison of two Databases servers — tools, transport, auth, maintenance, and copy-paste config for each.
| PGMCP - PostgreSQL Model Context Protocol Server Query any PostgreSQL database in natural language via MCP, with safe read-only SQL and streaming. Unverified HTTP (remote) API key Go | Postgres MCP Pro Read/write Postgres access plus index tuning, EXPLAIN plans, and database health analysis for AI agents. Verified stdio (local) API key Python | |
|---|---|---|
| Category | Databases | Databases |
| Language | Go | Python |
| Transport | HTTP (remote) | stdio (local) |
| Auth | API key | API key |
| GitHub stars | 536 | 2.9k |
| Last commit | 24 days ago | 3 months ago |
| Verified | ||
| Actively maintained | ||
| Install | brew tap subnetmarco/homebrew-tap && brew install pgmcp | uvx postgres-mcp --access-mode=restricted |
| Repo | Open | Open |
Verdict
Pick PGMCP - PostgreSQL Model Context Protocol Server if you want a hosted/remote server with nothing to install.
Pick Postgres MCP Pro if you prefer the more popular, battle-tested option, and you want a local (stdio) server that keeps data on your machine.
Add PGMCP - PostgreSQL Model Context Protocol Server
brew tap subnetmarco/homebrew-tap && brew install pgmcpPaste into ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"pgmcp---postgresql-model-context-protocol-server": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"http://localhost:8080/mcp"
]
}
}
}Claude Desktop connects to remote servers through the `mcp-remote` proxy (installed on first run via npx). Restart Claude Desktop after saving.
Add Postgres MCP Pro
uvx postgres-mcp --access-mode=restrictedPaste into ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"postgres-mcp-pro": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DATABASE_URI",
"crystaldba/postgres-mcp",
"--access-mode=restricted"
],
"env": {
"DATABASE_URI": "postgresql://<user>:<password>@<host>:5432/<dbname>"
}
}
}
}Requires Docker to be installed and running.
FAQ
PGMCP - PostgreSQL Model Context Protocol Server or Postgres MCP Pro — which is better?
Pick PGMCP - PostgreSQL Model Context Protocol Server if you want a hosted/remote server with nothing to install. Pick Postgres MCP Pro if you prefer the more popular, battle-tested option, and you want a local (stdio) server that keeps data on your machine.
Can I use both PGMCP - PostgreSQL Model Context Protocol Server and Postgres MCP Pro?
Yes — MCP clients let you enable multiple servers at once. Add both configs to your client's mcpServers and use whichever tool fits the task.
Do PGMCP - PostgreSQL Model Context Protocol Server and Postgres MCP Pro work with Claude, Cursor and Windsurf?
Both do. Copy the per-client config below into Claude Desktop, Cursor, or Windsurf.