返回 MCP 目录

PostgreSQL MCP Server

官方

官方 PostgreSQL 服务器,提供只读数据库访问与 schema 检查能力,让 AI 安全查询关系型数据。

数据库stdio作者: Anthropic45.0k stars访问

安装运行

在终端运行以下命令启动服务器:

npx -y @modelcontextprotocol/server-postgres postgresql://localhost/mydb

Claude Desktop 配置

将以下配置加入 Claude Desktop 的 claude_desktop_config.json

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

标签

postgrespostgresql数据库database关系型sql官方

同类推荐