本指南为希望参与 Postgres MCP Pro 开发,或选择从源代码安装 Postgres MCP Pro 的用户提供详细说明。
curl -sSL https://astral.sh/uv/install.sh | sh
git clone https://github.com/crystaldba/postgres-mcp.git
cd postgres-mcp
uv pip install -e .
uv sync
uv run postgres-mcp "postgres://user:password@localhost:5432/dbname"