LocalFree

Postgres MCP server

ofershap/mcp-server-postgres

PostgreSQL MCP — query databases, inspect schemas, explain queries.

0 GitHub stars131 npm downloads / month

Install Postgres in Claude Code

Claude Code
claude mcp add ofershap-postgres -- npx -y mcp-pg-server
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "ofershap-postgres": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-pg-server"
      ]
    }
  }
}

Frequently asked questions

What does the Postgres MCP server do?

PostgreSQL MCP — query databases, inspect schemas, explain queries.

Is the Postgres 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 Postgres run locally or remotely?

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

How do I add Postgres to Claude Code?

Run: claude mcp add ofershap-postgres -- npx -y mcp-pg-server

More databases MCP servers

View all