by call518
🐘 Give AI assistants full PostgreSQL DBA superpowers — 30+ tools for performance analysis, bloat detection, lock/deadlock monitoring, autovacuum & schema inspection. No extensions required. PG 12-18.
# Add to your Claude Code skills
git clone https://github.com/call518/MCP-PostgreSQL-OpsGuides for using ai agents skills like MCP-PostgreSQL-Ops.
Last scanned: 5/30/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-30T16:08:00.571Z",
"npmAuditRan": true,
"pipAuditRan": true
}See how MCP-PostgreSQL-Ops compares with popular alternatives.
MCP-PostgreSQL-Ops is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by call518. 🐘 Give AI assistants full PostgreSQL DBA superpowers — 30+ tools for performance analysis, bloat detection, lock/deadlock monitoring, autovacuum & schema inspection. No extensions required. PG 12-18. It has 164 GitHub stars.
Yes. MCP-PostgreSQL-Ops passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/call518/MCP-PostgreSQL-Ops" and add it to your Claude Code skills directory (see the Installation section above).
MCP-PostgreSQL-Ops is primarily written in Python. It is open-source under call518 on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh MCP-PostgreSQL-Ops against similar tools.
No comments yet. Be the first to share your thoughts!
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
Give Claude and other AI assistants read-only PostgreSQL observability for slow queries, locks, bloat, VACUUM, indexes, replication, WAL, and capacity.
MCP-PostgreSQL-Ops lets Claude, OpenWebUI, and other MCP clients inspect a PostgreSQL server through natural-language questions. It turns requests such as “Which tables need VACUUM now?” into predefined, read-only SQL queries and returns the evidence needed to diagnose the database.
pg_stat_statements and pg_stat_monitor add query analytics.uvx, or
connect OpenWebUI directly to the HTTP MCP server.For an AI-generated code walkthrough, use
.
Show the current active connections and blocked sessions
Which queries consume the most execution time?
Find bloated tables and explain what needs attention first
Which tables need VACUUM or autovacuum tuning?
Show unused or inefficient indexes
Check replication, WAL, checkpoints, and background processes
Summarize database size, growth, and I/O activity
Draw the relationships for the ecommerce schema
More requests to try: see Example Queries for requests by area (performance, health checks, capacity and VACUUM, structure, troubleshooting, multi-step workflows) and per-tool examples.
Core tools work with normal catalog access. Broader cross-database visibility depends on the PostgreSQL role; use a least-privilege monitoring account in production.
Example: slow-query evidence and recommendations

More examples are available in the screenshots and usage wiki.
Choose one path. If you already have PostgreSQL and Claude Desktop, Option A is the shortest. Option B provides a complete local demonstration with sample databases and OpenWebUI.
Requirements: Claude Desktop with extension support and a PostgreSQL server reachable from the computer running Claude Desktop.
mcp-postgresql-ops-<version>.mcpb.Show the current active PostgreSQL connections.The password field is marked sensitive and is stored by Claude Desktop. The
extension runs the server locally over stdio; it does not expose an HTTP
port.
Requirements: Git, Docker with the Compose plugin, and an OpenWebUI model provider whose model supports tool calling.
1. Configure
git clone https://github.com/call518/MCP-PostgreSQL-Ops.git
cd MCP-PostgreSQL-Ops
cp .env.example .env
cp mcp-config.json.http mcp-config.json.http.local
chmod 600 mcp-config.json.http.local
openssl rand -hex 32 # use the output as WEBUI_SECRET_KEY
vi .env # set WEBUI_SECRET_KEY; adjust ports if needed
mcp-config.json.http.local is ignored by Git and is mounted only into MCPO.
If REMOTE_AUTH_ENABLE=true, replace <REMOTE_SECRET_KEY> in that local file
with the same secret configured in .env. Leave the tracked
mcp-config.json.http file as a credential-free template.
The default .env.example credentials are only for the included disposable
PostgreSQL demo. Do not reuse them for an existing or externally reachable
database.
2. Start
docker compose up -d
docker compose ps --all # wait for mcp-server to be healthy and init to exit 0
This starts OpenWebUI at http://localhost:3003, the MCP server at
http://localhost:18003/mcp, optional MCPO/OpenAPI compatibility at
http://localhost:8003, and a disposable PostgreSQL demo environment. The
demo includes ecommerce, analytics, inventory, and HR data plus intentional
bloat and index patterns for realistic monitoring questions.
3. Connect OpenWebUI to the MCP server
Open http://localhost:3003, create the administrator account, and add a
model provider under Settings → Admin → Connections:
https://api.openai.com/v1, enter your OpenAI API key (Auth Bearer),
set API Type to Chat Completions, and save it.http://host.docker.internal:11434; ensure Ollama is reachable from
Docker and pull a tool-capable model.Confirm that the model appears in a new chat before continuing.
The Quick Start calls tools through Chat Completions with model reasoning
turned off, using this default already present in .env.example:
DEFAULT_MODEL_PARAMS={"reasoning_effort":"none"}
This value requires API Type: Chat Completions. With Responses,
OpenWebUI 0.13.0 still sends reasoning_effort, and every request fails with
Unsupported parameter: 'reasoning_effort'. If the open-webui-data volume
already exists, set the same value under Settings → Admin → Models → Model
Defaults → Model Parameters because its saved database value takes
precedence. To keep model reasoning through Responses instead, see
OpenAI reasoning models.
Under Settings → Admin → Tools → Integrations → External Tool Servers,
add a connection of type MCP (Streamable HTTP) with URL
http://mcp-server:8000/mcp and authentication None. This matches the
Quick Start default REMOTE_AUTH_ENABLE=false; enable and configure Bearer
authentication before exposing the server outside the local Docker host.
Under Settings → Admin → System → Interface → Chat, enable Tool
Search and Defer Built-in Tools, then set Deferral Threshold to 0.
This keeps the full PostgreSQL tool list within the model's tool limits.
In a new chat, enable the connection under Integrations → Tools and ask:
Use mcp-postgresql-ops to show tables that need VACUUM.
If setup or tool calls fail, see OpenWebUI Issues for existing-volume precedence, per-model and per-chat overrides, and provider compatibility notes.
MCPO is optional. OpenWebUI 0.13 connects to the MCP server directly and does not require the MCPO proxy. To expose the tools as an OpenAPI/Swagger service for a legacy client, use MCPO at
http://localhost:8003. The Compose file starts it so every project keeps the same deployment layout. To run without it, usedocker compose up -d mcp-server open-webui.
To connect the Docker stack to an existing PostgreSQL server instead, update
the POSTGRES_* values in .env and run:
docker compose -f docker-compose.custom-db.yml up -d
Claude Desktop ── stdio ───────────────┐
│
OpenWebUI 0.13 ─ Streamable HTTP ──────┼─> MCP-PostgreSQL-Ops
│ │
OpenAPI client ─ optional MCPO proxy ──┘ └─> read-only SQL ─> PostgreSQL
The MCP server is the required component. OpenWebUI can call it directly; MCPO is only an optional protocol adapter. The DeepWiki architecture provides a code-level walkthrough.
| Setup | Best for | Requirements |
|---|---|---|
| MCPB extension | Fastest Claude Desktop setup | Claude Desktop |
| `uvx --pyth |