# Connect TeamPostgreSQL to Your AI Agent (Universal MCP)

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

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

## Key Facts
- Software: TeamPostgreSQL | Category: DevOps & IT/Security (Teampostgresql) | Auth: Guided on-prem connector setup | Deployment: on-prem
- 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/teampostgresql | Guide: https://universalmcp.app/mcp/teampostgresql
- 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 TeamPostgreSQL
- **Find slow queries:** "List the slowest TeamPostgreSQL queries from the last 7 days with their average runtime and row counts."
- **Inspect table indexes:** "Show the indexes on the orders and order_items tables in TeamPostgreSQL and flag any missing foreign keys."
- **Explain a query plan:** "Explain the execution plan for the sales rollup query in TeamPostgreSQL and point out the costliest step."
- **Draft index change:** "Draft a CREATE INDEX statement for order_items in TeamPostgreSQL, saved as a script for DBA review only."
