# Connect MonPG to Your AI Agent (Universal MCP)

> Use your AI to monitor performance, manage databases, and track issues in MonPG — and much more.

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

## Key Facts
- Software: MonPG | Category: DevOps & IT/Security (MonPG) | Auth: Direct read-only database login
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Query statistics, Schema metadata, Index change drafts; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://universalmcp.app/mcp/monpg | Guide: https://universalmcp.app/mcp/monpg
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

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

## Example Prompts for MonPG
- **Slow query list:** "List the top 10 slowest PostgreSQL queries in MonPG this week, with their average run time."
- **Index gaps:** "Which tables in MonPG show heavy sequential scans that might benefit from a new index?"
- **Replica lag:** "Show MonPG replica lag history for the reporting cluster over the last three days of activity."
- **Draft index ticket:** "Draft an index recommendation ticket in MonPG for orders.order_items and hold it for my review."
