Postgres
Read-only access to a Postgres database — list tables, run SELECTs, inspect schemas.
85,593 stars 10,674 forks Last commit 1d ago Language TypeScript License MIT
Install
npm install -g @modelcontextprotocol/server-postgres Claude Desktop / Cursor config
Drop into your claude_desktop_config.json or Cursor MCP settings. Replace the ${…} placeholders with your own values.
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://user:pass@localhost:5432/dbname"]
}
}
} About
Read-only Postgres bridge. Connects to any Postgres-compatible database (Postgres, Supabase, Neon, AWS RDS) with a connection string and exposes table listing, schema inspection, and arbitrary SELECT execution as tools. Writes are explicitly blocked at the protocol layer — safe to wire to a production DB.
Discussion (0)
Sign in to comment →No comments yet. Sign in to start the discussion.