# Connect Postgres-XL to Your AI Agent (Universal MCP)

> Use your AI to manage databases, query data, and monitor performance in Postgres-XL — and much more.

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

## Key Facts
- Software: Postgres-XL | Category: DevOps & IT/Security (Postgres-XL) | Auth: Guided workspace authorization
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Cluster metadata, Query and plan history, Index changes; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://universalmcp.app/mcp/postgres-xl | Guide: https://universalmcp.app/mcp/postgres-xl
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (3 actions: 0 Read, 3 Write)
Perform 3 actions across cluster metadata, query and plan history, and index changes. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Cluster metadata (1):** Cluster metadata (write)
- **Query and plan history (1):** Query and plan history (write)
- **Index changes (1):** Index changes (write)

## Example Prompts for Postgres-XL
- **Query plans:** "In Postgres-XL, explain the plan for the slowest orders join and point out any disk spills."
- **Node health:** "Using Postgres-XL, compare disk and CPU usage across all data nodes during today's batch window."
- **Schema review:** "In Postgres-XL, list tables with missing indexes on foreign keys and rank them by row count."
- **Draft index change:** "Draft a CREATE INDEX statement for the customer_id join in Postgres-XL and hold it for DBA review."
