Skip to content
VS Code

PostgreSQL MCP Server for VS Code

io.github.yawlabs/postgres-mcp

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

client:VS Code transport:stdio runtime:npm

Install PostgreSQL MCP Server in VS Code

.vscode/mcp.json

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

Requires agent mode. MCP: Open User Configuration puts the same block in every workspace. VS Code docs

PostgreSQL MCP Server in other clients