PostgreSQL MCP

database
claude desktop
cursor
GitHub

Query and manage PostgreSQL databases. Execute SQL queries, inspect schemas, and manage data.

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