AI2SQL
AI2SQL is an AI SQL assistant that turns plain-English requests into SQL written against the user's own live database schema, and it also fixes, explains and optimizes SQL. It connects read-only to PostgreSQL, MySQL, SQL Server, Snowflake, BigQuery, MongoDB, Oracle and other databases, runs queries read-only so the user sees the rows, and blocks writes such as INSERT, UPDATE, DELETE and DROP. It is built for engineers and analysts, and AI agents can query through its governed MCP or REST endpoints.
Free plan with 3 queries a day on a demo database; Start $9/month, Pro $19/month and Team $39/month, each starting with a 7-day free trial.
How to use AI2SQL
- Pick a database to connect, or start on the Free plan with the demo database.
- Connect with read-only credentials — PostgreSQL, MySQL, SQL Server, Snowflake, BigQuery, MongoDB, Oracle and more — and AI2SQL builds a semantic layer from your schema.
- Describe the result you want in plain English and AI2SQL writes the SQL in your database's dialect, using your real table and column names.
- Run the query read-only to see the rows, or paste any query in to explain, fix, optimize or format it — and AI agents can query through the governed MCP or REST endpoints.
Frequently asked questions
Is AI2SQL free?
Yes, to start: the Free plan includes 3 queries a day on a demo database. Paid plans are Start ($9/month), Pro ($19/month) and Team ($39/month), and each starts with a 7-day free trial — a card is required to start the trial.
Is my database safe with AI2SQL?
Connections are read-only by default. sqlGuard classifies every statement before it reaches your database and blocks INSERT, UPDATE, DELETE, DROP and other DDL, multi-statement input and functions that read server files. Credentials are encrypted, every query is logged, and you can revoke a key at any time.
Which databases does AI2SQL support?
PostgreSQL, MySQL, SQL Server, Oracle, Snowflake, BigQuery, Amazon Redshift, MongoDB, SQLite and Firebird.
Pros & cons
Pros
- Writes SQL against your own live schema, so table names, joins and dialect match your data instead of a generic example.
- Read-only by default with sqlGuard blocking writes, so generated queries cannot change or delete your data.
- AI agents can use the same governed access through MCP or REST endpoints, with keys scoped per agent and every call metered and logged.
Cons
- The Free plan is limited to 3 queries a day on a demo database only — connecting your own database needs the Pro or Team plan.
- A card is required to start the 7-day free trial on any paid plan, and the desktop app for localhost or internal databases is only on the Pro plan.
Related Coding & Development tools
- GitHub CopilotFreemium · ★4.7 · GitHub / Microsoft
- CursorFreemium · ★4.7 · Anysphere
- WindsurfFreemium · Cognition
- Replit AIFreemium · Replit
- Amazon Q DeveloperFreemium · Amazon
- Sourcegraph CodyPaid · Sourcegraph
- DevinFreemium · Cognition
- AiderFree · Aider