← 返回 Skills 市场
victorzhou123

postgres mcp

作者 victorzhou123 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
395
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install postgres-mcp-skill
功能描述
PostgreSQL database management and optimization assistant. Provides complete database operation capabilities: health checks, index optimization, query plan a...
安全使用建议
This skill is coherent: it delegates work to a postgres-mcp service and requires you to install/configure that service and provide a PostgreSQL connection string. Before installing or running: (1) verify the upstream postgres-mcp project/image (ghcr.io/crystaldba/postgres-mcp and the pip package) so you trust the code you will run; (2) be careful where you store DATABASE_URL/connection strings — placing credentials in config files or command lines can expose them via disk or process listings; (3) prefer read-only mode when you only need observation/analysis and require explicit confirmation before any write/DDL operations; (4) if you do run the Docker image or pip package, follow your org policies for third-party images/packages and run them in an isolated environment if possible; (5) scheduling periodic health checks or caching schema implies persistent changes you must set up yourself — the skill will not silently exfiltrate credentials or run arbitrary downloads as part of the skill bundle.
功能分析
Type: OpenClaw Skill Name: postgres-mcp-skill Version: 1.0.0 The postgres-mcp-skill bundle is a well-structured set of instructions for an AI agent to manage PostgreSQL databases via a Model Context Protocol (MCP) server. It includes comprehensive modules for health checks, index tuning, query plan analysis, and schema management (e.g., in SKILL.md and reference/pg-execute.md). The bundle prioritizes safety by instructing the agent to confirm write/DDL operations with the user, utilize read-only modes, and employ parameterized queries to prevent SQL injection. No evidence of data exfiltration, malicious execution, or unauthorized persistence was found; the setup instructions (reference/setup-postgres-mcp.md) use standard deployment methods like Docker and Python.
能力评估
Purpose & Capability
The skill's name/description (PostgreSQL management, health, index tuning, query plans, schema queries, execution) matches the SKILL.md and the included reference docs. All runtime actions are described as calls to postgres-mcp MCP tools (get_database_health, suggest_indexes, analyze_query_plan, etc.), which is coherent with the stated purpose.
Instruction Scope
Instructions consistently route work to external MCP tools and require a pre-check that the postgres-mcp tools are available. The SKILL.md and references suggest editing client configuration files to register an MCP server, using pipx or Docker to run the postgres-mcp service, caching schema results, and optionally scheduling periodic health checks. These behaviors are expected for this kind of skill but imply the agent/operator must modify client config files and may persist cached schema data or set up scheduled tasks — the skill itself is instruction-only and does not contain code that performs these operations automatically.
Install Mechanism
The bundle is instruction-only and contains no install spec. Setup docs instruct using pipx or running a Docker image (ghcr.io/crystaldba/postgres-mcp:latest). These are standard install methods; they do pull code from external sources (PyPI for pipx and GitHub Container Registry for the image). That is expected here, but users should verify the upstream package/image source and trustworthiness before installing.
Credentials
The skill declares no required environment variables in the registry metadata. The documentation references service configuration variables (DATABASE_URL, POSTGRES_MCP_READ_ONLY, POSTGRES_MCP_QUERY_TIMEOUT) and expects the operator to provide a database connection string (which contains DB credentials). This is proportionate to the skill's function, but be aware these connection strings contain secrets and may be stored in client config files or appear on command lines (process lists) if set that way.
Persistence & Privilege
The skill does not request always:true and does not install persistent components itself. It instructs users to configure their client (editing claude_desktop_config.json, .cursor/mcp.json, or using Docker/SSE URLs) to register an external MCP server—that requires modifying client config files but is normal for MCP integrations. The skill does not request elevated system-wide privileges or attempt to change other skills' configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install postgres-mcp-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /postgres-mcp-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
postgres-mcp-skill v1.0.0 changelog - Initial release of the PostgreSQL database management and optimization assistant. - Supports health checks, index optimization, query plan analysis, schema queries, and SQL execution via postgres-mcp tools. - Includes mandatory pre-check to ensure postgres-mcp MCP tools are available before any operation. - Implements intent recognition and routing for common PostgreSQL tasks. - Enforces safety constraints: confirmation required for write operations, read-only mode support, and performance protection for long-running queries.
元数据
Slug postgres-mcp-skill
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

postgres mcp 是什么?

PostgreSQL database management and optimization assistant. Provides complete database operation capabilities: health checks, index optimization, query plan a... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 395 次。

如何安装 postgres mcp?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install postgres-mcp-skill」即可一键安装,无需额外配置。

postgres mcp 是免费的吗?

是的,postgres mcp 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

postgres mcp 支持哪些平台?

postgres mcp 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 postgres mcp?

由 victorzhou123(@victorzhou123)开发并维护,当前版本 v1.0.0。

💬 留言讨论