# Connect SQL Planner to Your AI Agent (Universal MCP)

> One live connection for your AI, business software, and team.

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

## Key Facts
- Software: SQL Planner | Category: DevOps & IT/Security (WebSQL Technologies) | Auth: Encrypted API key or guided local/on-prem setup | Deployment: hybrid
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Query and plan stats, Backup and restore logs, Tuning drafts only; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=sql-planner | Guide: https://universalmcp.app/mcp/sql-planner
- 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 and plan stats, backup and restore logs, and tuning drafts only. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Query and plan stats (1):** Query and plan stats (write)
- **Backup and restore logs (1):** Backup and restore logs (write)
- **Tuning drafts only (1):** Tuning drafts only (write)

## Example Prompts for SQL Planner
- **Slow query list:** "In SQL Planner, list queries running over two seconds across all PostgreSQL and MySQL instances, with their execution plans."
- **Lock chain review:** "Show the blocking lock chain in SQL Planner for orders_prod, including which session holds the lock and for how long."
- **Index recommendations:** "Summarize index suggestions SQL Planner found for slow tables, ranked by estimated scan reduction and table size."
- **Draft tuning plan:** "Draft an index and tuning plan in SQL Planner for the slow queries, held for DBA review before any change is applied."
