CursorPool
← 返回 MCP 列表
PostgreSQL MCP

PostgreSQL MCP

通过自然语言查询与探索 Postgres 数据库,支持只读安全模式。

ModelContextProtocol·2.7k 次安装·20 天前·官网 ↗
↓ 添加到 Cursor

安装命令

终端
npx -y @modelcontextprotocol/server-postgres "postgresql://..."

在 Cursor 中配置(mcp.json)

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-postgres",
        "\"postgresql://...\""
      ]
    }
  }
}