PostgreSQL MCP
通过自然语言查询与探索 Postgres 数据库,支持只读安全模式。
安装命令
终端
npx -y @modelcontextprotocol/server-postgres "postgresql://..."在 Cursor 中配置(mcp.json)
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-postgres",
"\"postgresql://...\""
]
}
}
}