mcppostgrespgmcp
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "mcppostgrespgmcp" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-81143408a89c3e7d220e4028b9e7f5b9fd20a46a88dbeffe37319750c30aec77. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/query-postgres-databases-through-read-only-mcp-workflows-with-pgmcp before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Connects an MCP-compatible assistant to an existing PostgreSQL database to enable secure natural-language queries, pattern-aware SQL generation, and streaming result delivery.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- PostgreSQL, DATABASE_URL, optional OpenAI API key, MCP-compatible client
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "通过只读MCP工作流查询Postgres数据库,使用PGMCP"
slug: "query-postgres-databases-through-read-only-mcp-workflows-with-pgmcp"
version: "1.0.0"
displayName: "通过只读MCP工作流查询Postgres数据库,使用PGMCP"
summary: "将兼容MCP的助手连接到现有的PostgreSQL数据库,以实现安全的自然语言查询、感知模式的SQL以及流式结果。"
license: "MIT"
description: "将兼容MCP的助手连接到现有的PostgreSQL数据库,以实现安全的自然语言查询、感知模式的SQL以及流式结果。"
github_stars: 529
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Data Extraction & Transformation"
framework: "MCP"
tool_ecosystem:
github_repo: "1991513ccie-png/skills"
github_stars: 529通过只读MCP工作流查询Postgres数据库,使用PGMCP
Connect an MCP-compatible assistant to an existing PostgreSQL database for safe natural-language querying, schema-aware SQL, and streamed results.
Prerequisites
PostgreSQL, DATABASE_URL, optional OpenAI API key, MCP-compatible client
Installation
Use the upstream install or setup path that matches your environment:
- brew tap subnetmarco/homebrew-tap
- brew install pgmcp
- docker run -e DATABASE_URL="postgres://user:pass@host:5432/db" \
Requirements and caveats from upstream:
-
Docker/Kubernetes
-
Docker
-
Integration tests (requires PostgreSQL)
Basic usage or getting-started notes:
-
PGMCP connects to your existing PostgreSQL database and makes it accessible to AI assistants through natural language queries.
-
PostgreSQL database (existing database with your schema)
-
OpenAI API key (optional, for AI-powered SQL generation)
-
Extracted from upstream docs: https://raw.githubusercontent.com/subnetmarco/pgmcp/HEAD/README.md
Documentation
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供自然语言查询 PostgreSQL 数据库的能力,解决用户通过 AI 安全查询数据库的明确需求
- 支持流式结果和感知模式的 SQL,提升数据库查询体验
Highlights
- description 字段内容完整,清晰描述了核心功能
- 触发词覆盖合理,边界清晰
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档中缺少明确的 When to Use 章节,用户难以快速判断适用场景
Recommendation: 建议添加 When to Use 章节,明确说明该 Skill 的最佳使用场景和典型用例
Highlights
- 文档包含 Prerequisites、Installation、Basic usage 等基本结构
- 提供了端到端示例(brew/docker 安装命令)
Areas to improve
-
异常处理覆盖不足 Reported severity: Minor
未覆盖主要异常处理场景(如数据库连接失败、权限问题等)
Recommendation: 建议补充异常处理说明,包括常见错误码解释和故障排除指南
Highlights
- 工具来源明确(GitHub 仓库),参数说明清晰
- 提供了多种安装方式(brew/docker)
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 33 -
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 27, 44
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
- raw.githubusercontent.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
PostgreSQL, DATABASE_URL, optional OpenAI API key, MCP-compatible client
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.