# Connect PostgresGUI to Your AI Agent (Universal MCP)

> Use your AI to query data, update records, and manage databases in PostgresGUI — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http postgresgui https://api.universalmcp.app/mcp/postgresgui`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/postgresgui` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "postgresgui", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: PostgresGUI | Category: DevOps & IT/Security (Fikri Ghazi) | Auth: Guided local/desktop connector setup | Deployment: desktop
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Schema metadata, Query results, Row edits; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://universalmcp.app/mcp/postgresgui | Guide: https://universalmcp.app/mcp/postgresgui
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (3 actions: 0 Read, 3 Write)
Perform 3 actions across schema metadata, query results, and row edits. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Schema metadata (1):** Schema metadata (write)
- **Query results (1):** Query results (write)
- **Row edits (1):** Row edits (write)

## Example Prompts for PostgresGUI
- **Slow table audit:** "In PostgresGUI, list the tables in northwind_staging with row counts and total size, sorted by largest first."
- **Index review:** "In PostgresGUI, run EXPLAIN on the orders lookup by customer_id and show whether it uses a sequential scan."
- **Edit row preview:** "In PostgresGUI, show the rows in the shipments table where status has stayed pending for over 14 days."
- **Guarded write draft:** "In PostgresGUI, draft an UPDATE for stale carts and show it for review before running it against production."
