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.

介绍

PostgreSQL MCP is an MCP server that gives AI agents direct access to PostgreSQL databases, with 3,000+ GitHub stars. Run queries, explore schemas, and manage data. Read-only mode for safety.


Quick Use

Add the following to .mcp.json:

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

Intro

PostgreSQL MCP is an MCP server that gives AI agents direct access to PostgreSQL databases, with 3,000+ GitHub stars. Run queries, explore schemas, and manage data. Read-only mode for safety.


Source & Thanks

Part of MCP Servers. Licensed under MIT.

🙏

来源与感谢

Part of MCP Servers. Licensed under MIT.

讨论

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