# Connect DMSQL to Your AI Agent (Universal MCP)

> Use your AI to query data, update records, and monitor performance in DMSQL — and much more.

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

## Key Facts
- Software: DMSQL | Category: DevOps & IT/Security (dmsql) | 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 history, Schema metadata, Schema changes; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=dmsql | Guide: https://universalmcp.app/mcp/dmsql
- 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 history, schema metadata, and schema changes. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Query history (1):** Query history (write)
- **Schema metadata (1):** Schema metadata (write)
- **Schema changes (1):** Schema changes (write)

## Example Prompts for DMSQL
- **Slow query ranking:** "Rank the slowest DMSQL queries from the last seven days by average runtime, with the database each one ran against."
- **Index suggestions:** "List tables in DMSQL with full scans on large columns, and suggest which indexes would cut the most runtime."
- **Schema drift check:** "Compare the orders schema in DMSQL across dev and production and flag any columns that differ."
- **Draft index migration:** "Draft an index migration script for DMSQL, save it as a pending change, and hold it until I approve it."
