MCP Marketplace logo
MCP
All servers
Anthropic

Postgres

official

Read-only SQL access to a Postgres database.

by Anthropic51kMITupdated 1mo agoadded 1y ago

Reference Postgres server. Run SELECT queries, inspect schemas, list tables.

Install

Add this block to your claude_desktop_config.json then restart Claude Desktop.

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

Related servers