# Connect AskYourDatabase to Your AI Agent (Universal MCP)

> Use your AI to query data, analyze data, and create reports in AskYourDatabase — and much more.

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

## Key Facts
- Software: AskYourDatabase | Category: ERP & Accounting (AskYourDatabase) | 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 Schema and metadata, Query logs and plans, Write access; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=askyourdatabase | Guide: https://universalmcp.app/mcp/askyourdatabase
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (17 actions: 6 Read, 11 Write)
Perform over 10 actions across database connections, natural language queries, charts & results, and chatbot embedding. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Database Connections (6):** Connect PostgreSQL Database (write), Connect MySQL Database (write), Connect SQL Server Database (write), Connect BigQuery Dataset (write), Connect Snowflake Warehouse (write), Set Up On-Premise Deployment (write)
- **Natural Language Queries (4):** Ask Database Question In Plain English (read), Generate SQL From Question (read), Define Question Scope And Currency (write), Compare Answer With Expected Result (read)
- **Charts & Results (4):** Build Chart From Query Result (write), Summarise Grouped Totals (read), Ask Follow-Up Question On Result (write), Open Desktop Analysis Session (read)
- **Chatbot Embedding (3):** Embed Website Chatbot (write), Embed Analytics Chatbot In Product (write), Compare Desktop And Chatbot Plans (read)

## Example Prompts for AskYourDatabase
- **Slow query finder:** "List the slowest PostgreSQL queries in AskYourDatabase from yesterday with their execution plans."
- **Schema review:** "Show every table in the Snowflake warehouse connected to AskYourDatabase that lacks a primary key."
- **Chart order volume:** "Chart weekly order volume by region for the last quarter in AskYourDatabase as a bar chart."
- **Draft index change:** "Draft a CREATE INDEX statement for the orders table and hold it for review before running it."
