AgentHubAgentHub

PostgreSQL MCP Server

MCP ServerMCP Registry官方收录

io.github.itunified-io/postgres · v2026.4.10

PostgreSQL MCP Server — 27 tools for queries, schema, CRUD, DBA, HA & server management

概览

PostgreSQL MCP Server 是一个MCP Server,收录自 官方 MCP Registry。支持 stdio 传输。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

安装

选择你的平台查看安装方式

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": [
        "-y",
        "@itunified.io/mcp-postgres"
      ]
    }
  }
}

环境变量

POSTGRES_CONNECTION_STRING可选

PostgreSQL connection string (e.g. postgresql://user:pass@host:5432/db)

相关资源

统一 Manifest

{
  "id": "io.github.itunified-io/postgres",
  "type": "mcp-server",
  "version": "2026.4.10",
  "displayName": "PostgreSQL MCP Server",
  "description": "PostgreSQL MCP Server — 27 tools for queries, schema, CRUD, DBA, HA & server management",
  "repository": {
    "url": "https://github.com/itunified-io/mcp-postgres",
    "source": "github"
  },
  "distribution": {
    "packages": [
      {
        "registryType": "npm",
        "identifier": "@itunified.io/mcp-postgres",
        "version": "2026.4.10-1",
        "runtimeHint": "npx",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "POSTGRES_CONNECTION_STRING",
            "description": "PostgreSQL connection string (e.g. postgresql://user:pass@host:5432/db)"
          }
        ]
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [],
  "provenance": {
    "origin": "official-mcp-registry",
    "originalId": "io.github.itunified-io/postgres",
    "originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.itunified-io%2Fpostgres/versions/latest",
    "isOfficial": true,
    "status": "active"
  }
}
PostgreSQL MCP Server — MCP Server 安装与配置 · AgentHub