# DeepSQL > DeepSQL is an open-source database agent for PostgreSQL and MySQL. It answers BI > questions in plain English, analyses slow queries, recommends indexes and > materialized views, generates dashboards, and exposes everything over MCP so > coding agents (Claude, Codex, Cursor) can use it. It is self-hosted: you bring > your own model endpoint and API key, and no data leaves your infrastructure. Machine-readable full setup runbook: https://deepsql.ai/llms-full.txt ## Docs - [Docs (human)](https://deepsql.ai/docs): install, models, environment reference, MCP, operations - [White paper](https://deepsql.ai/whitepaper): architecture and internals - [Pricing](https://deepsql.ai/pricing): open source free, enterprise is consultation-only - [Blog](https://deepsql.ai/blog) ## Source - [GitHub repository](https://github.com/DeepSQLAI/deepsql) ## Support - Discord: https://discord.gg/duEJq7AeeG - Slack: https://join.slack.com/t/deepsql/shared_invite/zt-44c3ll30h-qWxOxM9m8CkR6BGNOq2fWg