PostgreSQL

Featured

by Anthropic · Database

15,000 stars6,000 weekly downloads

Install to ToolCloud

One click. No local setup. Works with any MCP client.

Install to ToolCloud

Connect to PostgreSQL databases. Read-only access with schema inspection and query execution. Supports connection strings.

databasepostgresqlread-onlysql
Manual Installation

Claude Code

claude mcp add postgres -- npx -y @modelcontextprotocol/server-postgres postgresql://localhost/mydb

Cursor / Windsurf / VS Code Copilot / Claude Desktop

Add to your MCP config file:

{
  "mcpServers": {
    "postgres": {
      "args": [
        "-y",
        "@modelcontextprotocol/server-postgres",
        "postgresql://localhost/mydb"
      ],
      "command": "npx"
    }
  }
}