ClaudeMap

PostgreSQL MCP Server

参考 MCP 服务器,为 Claude 提供对 PostgreSQL 的只读查询能力。

MCP 服务器officialpostgresdatabasereferencearchived

暴露数据库 schema 探查与只读 SQL 查询能力,并可按需开启写入模式。

它做什么

  • 单一 `query` 工具,全部跑在 READ ONLY 事务里——模型物理上无法写入
  • 每张表一个 schema 资源(postgres://<host>/<table>/schema),从数据库元数据自动发现
  • npx `@modelcontextprotocol/server-postgres` 或 docker `mcp/postgres` 运行

什么时候用

只需要『让 Claude 看 schema、跑 SELECT』时最小最安全的 Postgres 桥。要做索引调优和 EXPLAIN 分析就用 Postgres MCP Pro。

如何上手

在 .mcp.json 的 mcpServers.postgres 下加:

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

Docker + 宿主机数据库:macOS 上连接串用 host.docker.internal。

注意事项

上游仓库已迁入 modelcontextprotocol/servers-archived——npm 包仍可用但不再更新。连接串里的凭据是明文写在配置里的,请用最小权限只读角色。

代码仓库

modelcontextprotocol/servers-archived

收录日期

地图上的相关资源

  • Blitz Strike

    MCP 服务器

    把渗透测试方法论装进一个 MCP server:BLITZ 摸清攻击面,EAGLE-EYE 追 source-to-sink,STRIKE 对每条发现先实测再上报。

    • mcp-server
    • security
    • pentest
    • methodology
  • Ripwire

    MCP 服务器

    Red Hat 出品的「AI 上下文版 ripgrep」——C++23 零依赖 CLI,同时讲 MCP。

    • mcp
    • code-context
    • cli
    • red-hat
  • Deja Vu

    MCP 服务器

    让 25+ 个编码 agent 共享同一份会话记忆——Claude Code、Codex、Cursor 终于记得同一个项目。

    • mcp
    • memory
    • cross-agent
    • context