Postgres MCP Server
Read-only SQL with schema inspection.
Official — published by the vendor of the system it connects to.
Inspect tables and columns, then run read-only queries against them. The connection is opened read-only at the driver level, so no prompt injection can turn a SELECT into a DROP.
Install Postgres MCP Server
Paste this into your MCP client config — Claude Desktop, Claude Code, Cursor, VS Code and Windsurf all read the same shape — then restart the client.
npx -y @modelcontextprotocol/server-postgres postgresql://localhost/dbDetails
- Repository
- https://github.com/modelcontextprotocol/servers
- Homepage
- https://github.com/modelcontextprotocol/servers
- Category
- Database
- Stars
- 5600
- Installs per month
- 58000
- Last checked
Other Database servers
- Supabase MCP Server — Query Postgres, manage tables, call edge functions. Official (Database)
- SQLite MCP Server — Query a local SQLite file directly. Official (Database)
- Redis MCP Server — Get, set and scan keys. (Database)