STDIO数据库和 SQLMCP服务器零秘密泄漏审计
Postgres MCP Pro — HypoPG 指数调整、EXPLAIN 计划和健康审计
生产 PostgreSQL MCP 服务器通过 uvx 运行,具有受限只读模式、工作负载索引顾问、HypoPG 虚拟索引和 pg_stat_statements 分析。
一键式客户端和运行时配置
{
"mcpServers": {
"postgres-mcp-pro": {
"command": "uvx",
"args": [
"postgres-mcp",
"--access-mode=restricted"
],
"env": {
"DATABASE_URI": "${DATABASE_URI}"
}
}
}
}社区设置说明和制作评论 (2)
@elena-db2026-11-12
Tip: pass ?application_name=mcp_readonly in DATABASE_URI so pg_stat_activity separates agent queries from production traffic.
@arda-sre2026-11-12
Running against our PostgreSQL 18 read-replica with statement_timeout=3000ms and HypoPG enabled—caught two missing JSONB GIN indexes in under 40 seconds.
公开的 MCP 工具和资源架构检查器
| 工具/资源标识符 | 输入参数 | 执行行为 |
|---|---|---|
| postgres_mcp_pro_query | sql_or_filter: string, limit?: number | Production PostgreSQL MCP server running via uvx with restricted read-only mode, workload index advisor, HypoPG virtual indexes, and pg. |
| postgres_mcp_pro_inspect_schema | namespace?: string | Enumerates tables, collections, column types, and active index definitions. |