LocalFree

PostgreSQL MCP server

neverinfamous/postgresql-mcp

PostgreSQL MCP server with 203 tools, connection pooling, HTTP/SSE, OAuth 2.1, and tool filtering

Install PostgreSQL in Claude Code

npm

Claude Code
claude mcp add neverinfamous-postgresql -- npx -y @neverinfamous/postgres-mcp
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "neverinfamous-postgresql": {
      "command": "npx",
      "args": [
        "-y",
        "@neverinfamous/postgres-mcp"
      ]
    }
  }
}

Docker

Claude Code
claude mcp add neverinfamous-postgresql -- docker run -i --rm docker.io/writenotenow/postgres-mcp:v1.0.2
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "neverinfamous-postgresql": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/writenotenow/postgres-mcp:v1.0.2"
      ]
    }
  }
}

Frequently asked questions

What does the PostgreSQL MCP server do?

PostgreSQL MCP server with 203 tools, connection pooling, HTTP/SSE, OAuth 2.1, and tool filtering

Is the PostgreSQL MCP server free?

Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.

Does PostgreSQL run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add PostgreSQL to Claude Code?

Run: claude mcp add neverinfamous-postgresql -- npx -y @neverinfamous/postgres-mcp

More databases MCP servers

View all