MCP Configs2026年4月6日·1 分钟阅读

PostgreSQL MCP — SQL Database Server for AI Agents

MCP server that gives AI agents direct access to PostgreSQL databases. Run queries, explore schemas, manage tables, and analyze data through natural language. 3,000+ stars.

MC
MCP Hub · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

将以下配置添加到 .mcp.json:

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

简介

PostgreSQL MCP 是一个让 AI Agent 直接访问 PostgreSQL 数据库的 MCP 服务器,GitHub 3,000+ stars。运行查询、探索表结构、管理数据。支持只读模式保障安全。


🙏

来源与感谢

Part of MCP Servers. Licensed under MIT.

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产