CuratedMCP
πŸ’»
Claude Code
Free

How to Install PostgreSQL MCP in Claude Code

Natural language SQL queries on your PostgreSQL databases

What PostgreSQL MCP does

Let your AI agents query and manage PostgreSQL databases using natural language. Safe, sandboxed execution with read-only mode support. Features: - Natural language to SQL translation - Read-only mode for safe production use - Schema introspection - Query result formatting - Connection pooling with PgBouncer support - Query history and explain plans

postgresql
sql
database
analytics

Installation steps

  1. 1Copy the config below
  2. 2Open or create .claude/mcp.json in your project root
  3. 3Paste inside "mcpServers": {}
  4. 4Reload Claude Code

Configuration

File location: .claude/mcp.json (project root) or ~/.claude/mcp.json (global)

.claude/mcp.jsonjson
{
  "postgresqlMcp": {
    "command": "npx",
    "args": [
      "-y",
      "@modelcontextprotocol/server-postgres"
    ]
  }
}
Full server details Open Config Editor

Install in other clients

For maintainers

If you maintain PostgreSQL MCP, add this badge to your README to show it's verified on CuratedMCP:

CuratedMCP Verified
[![CuratedMCP Verified](https://curatedmcp.com/api/badge/postgresql-mcp)](https://curatedmcp.com/marketplace/postgresql-mcp)

Related servers