Skip to content
Cursor

PostgreSQL MCP Server for Cursor

io.github.yawlabs/postgres-mcp

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

client:Cursor transport:stdio runtime:npm

Install PostgreSQL MCP Server in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

{
  "mcpServers": {
    "postgres-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@yawlabs/postgres-mcp"
      ]
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

PostgreSQL MCP Server in other clients