LocalFree

PostgreSQL MCP server

YawLabs/postgres-mcp

PostgreSQL MCP server - query, schema introspection, explain, and health checks for AI assistants

10 GitHub stars2 forks

Install PostgreSQL in Claude Code

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

Frequently asked questions

What does the PostgreSQL MCP server do?

PostgreSQL MCP server - query, schema introspection, explain, and health checks for AI assistants

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 yawlabs-postgresql -- npx -y @yawlabs/postgres-mcp

More databases MCP servers

View all