PostgreSQL MCP
database
claude desktop
cursor
Query and manage PostgreSQL databases. Execute SQL queries, inspect schemas, and manage data.
By mike_codes
12/8/2025
Installation
npm install -g @modelcontextprotocol/server-postgres
Add to your MCP settings:
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://user:password@localhost/dbname"]
}
}
}
Tags
postgresql
database
sql