AgentHubAgentHub

Postgres MCP

MCP ServerMCP Registry官方收录

io.github.edelciomolina/postgres-mcp · v1.0.13

PostgreSQL MCP wrapper with .env credential mapping, tool selection, and safe read-only defaults.

概览

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

安装

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

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

环境变量

MCP_KEY_HOST可选

Name of the .env variable that holds the database host

MCP_KEY_PORT可选

Name of the .env variable that holds the database port

MCP_KEY_NAME可选

Name of the .env variable that holds the database name

MCP_KEY_USER可选

Name of the .env variable that holds the database user

MCP_KEY_PASS可选

Name of the .env variable that holds the database password

MCP_KEY_SSLMODE可选

Name of the .env variable that holds the SSL mode (e.g. require)

相关资源

统一 Manifest

{
  "id": "io.github.edelciomolina/postgres-mcp",
  "type": "mcp-server",
  "version": "1.0.13",
  "displayName": "Postgres MCP",
  "description": "PostgreSQL MCP wrapper with .env credential mapping, tool selection, and safe read-only defaults.",
  "repository": {
    "url": "https://github.com/edelciomolina/postgres-mcp",
    "source": "github"
  },
  "distribution": {
    "packages": [
      {
        "registryType": "npm",
        "identifier": "@edelciomolina/postgres-mcp",
        "version": "1.0.13",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "MCP_KEY_HOST",
            "description": "Name of the .env variable that holds the database host"
          },
          {
            "name": "MCP_KEY_PORT",
            "description": "Name of the .env variable that holds the database port"
          },
          {
            "name": "MCP_KEY_NAME",
            "description": "Name of the .env variable that holds the database name"
          },
          {
            "name": "MCP_KEY_USER",
            "description": "Name of the .env variable that holds the database user"
          },
          {
            "name": "MCP_KEY_PASS",
            "description": "Name of the .env variable that holds the database password"
          },
          {
            "name": "MCP_KEY_SSLMODE",
            "description": "Name of the .env variable that holds the SSL mode (e.g. require)"
          }
        ]
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [],
  "provenance": {
    "origin": "official-mcp-registry",
    "originalId": "io.github.edelciomolina/postgres-mcp",
    "originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.edelciomolina%2Fpostgres-mcp/versions/latest",
    "isOfficial": true,
    "status": "active"
  }
}
Postgres MCP — MCP Server 安装与配置 · AgentHub