AI2SQL logo
Database Tools · Code Generation

AI2SQL

AI2SQL is an AI SQL assistant that reads your real database schema to generate, explain, fix, optimize and run read-only queries in plain English, and exposes the same tools to Claude, ChatGPT and Cursor over MCP.

Active GDPR compliant Free plan · Free trial Freemium API available 18+ Verified by Guidaio
Overview

What is AI2SQL?

AI2SQL is an AI assistant for SQL work, published at ai2sql.io with the web application on builder.ai2sql.io. Its stated positioning is "the data layer for AI agents: schema-aware, governed, metered", and the product follows three steps. You connect a database with read-only credentials, which are encrypted at rest. The service then grounds itself by building a semantic layer from your schema, covering tables, joins and business terms, so the SQL it writes matches your data rather than a textbook example. Finally it answers: a query runs read-only over MCP or REST, audited and metered per call.

Six actions make up the everyday workflow: generate, explain, optimize, fix, format and run. The homepage lists ten database engines with connectors, among them PostgreSQL, MySQL, SQL Server, Oracle, Snowflake, BigQuery, Amazon Redshift, MongoDB, SQLite and Firebird, while the dedicated databases page adds roughly twenty more dialects for generation only, from ClickHouse and DuckDB to SAP HANA, Cassandra and Trino. Live schema browsing and query execution are narrower than generation: they cover PostgreSQL, MySQL and MariaDB, and Microsoft SQL Server.

The second half of the product is agent access. A hosted MCP server at builder.ai2sql.io exposes eight named tools, from generate_sql and explain_sql to describe_schema and run_query, to claude.ai, Claude Desktop, Claude Code, Cursor, VS Code with GitHub Copilot and ChatGPT in developer mode. Sign-in uses OAuth 2.1 with PKCE, so no API key is pasted into the client. A guard called sqlGuard classifies every statement before it reaches the database: only a single SELECT or WITH passes, and execution happens inside a read-only transaction as a second layer, capped at 1,000 rows and ten seconds. The AI2SQL Gateway adds per-agent API keys, monthly quotas, a full call log and one-click revocation.

For databases that only listen on localhost or a private address, a single-binary Connector runs on Windows, macOS or Linux and reads the schema where it already lives. The site displays customer logos including Nutanix, Gusto, Ocado, CGI, TELUS, Prime Therapeutics and Montefiore.

What it does

  • Turn a plain-English request into SQL written against your real tables and columns
  • Explain an existing query clause by clause before you trust it
  • Optimize a slow query and get the reasoning, including missing indexes
  • Fix a query that will not run, from syntax errors to dialect mismatches
  • Run a read-only query on a connected database and read the rows
  • Convert a query between PostgreSQL, MySQL, SQL Server, Oracle, Snowflake, BigQuery, SQLite and MariaDB
  • Give an AI agent governed database access through a single MCP endpoint
Audience

When to use AI2SQL / When not to

A quick filter to help you decide if AI2SQL is the right fit.

When to use AI2SQL

  • Data analysts who know the question but not the join, and want SQL written against their own column names
  • Backend developers with a query that is slow, broken or written by someone who has left
  • Data engineers juggling several engines at once, from PostgreSQL and MySQL to Snowflake, BigQuery and Oracle
  • Teams giving Claude, ChatGPT or Cursor access to a database and needing that access read-only, logged and revocable
  • People learning SQL, since every generated query comes with a clause-by-clause explanation

When not to use AI2SQL

  • Anyone who needs to write to a database: inserts, updates, deletes and DDL are refused by design
  • Users who must work offline, because query generation always needs a connection to the vendor's API
  • Teams whose live querying targets Snowflake, MongoDB or Oracle, which only get SQL written for them for now
  • Organizations that require a signed DPA, a published subprocessor list or a stated hosting jurisdiction before connecting production data
  • Anyone under 18, who is barred from the service by the terms and conditions
Get started

How to use AI2SQL

A typical end-to-end flow, from setup to results.

  1. Create an account at builder.ai2sql.io/signup; every plan opens with a seven-day trial, nothing is charged on the day, but a card is required
  2. Add a database connection in the dashboard using read-only credentials
  3. Describe the result you want in plain English and read back the SQL, written in the dialect of the connection you picked
  4. Paste an existing query instead, to have it explained, optimized, fixed or formatted
  5. Run the query from the page and read the rows returned by the read-only connection
  6. To work from Claude, open Settings then Connectors, add a custom connector, paste https://builder.ai2sql.io/api/chatgpt-mcp, leave client ID and secret empty, press Connect and allow access
  7. In Claude Code, register the server with claude mcp add --transport http, then run /mcp and choose Authenticate
  8. In Cursor or VS Code, use the one-click install buttons on the MCP page, then sign in when the client reports that the server needs a login
  9. For scripts and custom agents, generate an API key at builder.ai2sql.io/api-keys.html and call the key-based server with an X-API-Key header
  10. For a database on localhost or a private network, download the Connector, clear the unsigned-binary warning once, sign in, load the schema and pick your tables
Quick read

Pros & Cons

Pros

  • Works on your real schema, so joins and column names come from your database rather than a generic example
  • Read-only is enforced server-side by a statement classifier and a read-only transaction, not requested politely in a prompt
  • One account and one plan cover the web app, the MCP server and the desktop Connector
  • Generation, explanation, optimization, fixing, formatting and execution live in the same place
  • Ten engines have connectors and roughly twenty more dialects are supported for generation
  • MCP setup needs no API key for Claude, Cursor, VS Code or ChatGPT, and one-click installers exist for two of them
  • Entry pricing is low and readable at 9 USD per month, or 7 USD per month billed annually

Cons

  • A card is required to start the seven-day trial, and the terms rule out any refund once a subscription has begun
  • Live querying is limited to PostgreSQL, MySQL, MariaDB and SQL Server; the other engines only get SQL written for them
  • On the Gateway, only PostgreSQL is live today, with MySQL described as next
  • The Connector binaries are unsigned by Apple and Microsoft, so the first launch has to be forced through manually
  • The privacy policy dates from August 2020 and the terms from September 2021, long before the MCP and gateway offering they now cover
  • Two different legal entities appear depending on the page: seriouscode GmbH in the privacy policy, Cross Regions Technology in the terms and on the contact page
  • No DPA, no subprocessor list, no stated hosting country and no security certification such as SOC 2 or ISO 27001
Pricing

Pricing & Plans

A permanent free tier is available: the MCP server grants five SQL requests a day with schema browsing, and the Gateway offers a free plan at 0 USD covering one connection and one agent key. The cheapest paid entry point is the Start plan at 9.00 USD per month, or 7 USD per month when billed annually. Every paid plan opens with a seven-day free trial charged at 0 USD on the day, although a payment card is required to begin it.

Free tier — 0 USD
  • sign in
  • list connections
  • browse schemas and make five SQL requests a day
  • shared with the web application
Pro — 19 USD per month, or 14 USD per month billed annually (168 USD per year)
  • unlimited queries
  • advanced AI model
  • optimization and explanation
  • your own database connections
  • execution from Claude
  • ChatGPT and Cursor over MCP
  • the desktop app and priority support
Team — 39 USD per month, or 29 USD per month billed annually (348 USD per year)
  • everything in Pro
  • five users included
  • a shared query library
  • role-based access control
  • execution priority and advanced analytics
Lifetime — 29 USD once
  • full access with no recurring charge
  • 500 AI queries a month and all databases
Gateway Free — 0 USD forever
  • one database connection
  • one agent key
  • full guardrails
  • seven days of audit history and a fair-use monthly call cap
Gateway Pro — 29 USD per month
  • multiple connections and named keys
  • full audit history
  • higher call limits
  • table allowlist rolling out and priority support
Gateway Team — 99 USD per month
  • shared workspace and team members
  • key-to-connection scoping
  • audit export and Slack alerts
  • and a weekly digest of blocked writes
Special offers — Seven-day free trial on every paid plan, with 0 USD charged on the day it starts · Annual billing advertised at 25% off: 84 USD a year for Start, 168 USD for Pro and 348 USD for Team · Lifetime access for a single payment of 29 USD, including 500 AI queries a month and all databases · Gateway Free plan at 0 USD forever, with one database connection and one agent key
Prices and plans listed above may evolve. Always check the official pricing page before subscribing.
Trust & Privacy

Data, GDPR & hosting

A consolidated view of how AI2SQL handles your data.

GDPR overview

The privacy policy devotes a section to data protection rights under the GDPR for residents of the European Economic Area, listing access, rectification, erasure, objection, restriction, portability and withdrawal of consent, plus the right to complain to a supervisory authority. The legal bases are enumerated: consent, performance of a contract, legal obligation, public interest and legitimate interest. Requests go to support@ai2sql.io and identity is verified first. A separate section covers California residents. Three things are missing: no data protection officer is named, no Article 27 representative for the European Union is designated, and no data processing agreement is published or offered. The policy carries an effective date of 21 August 2020, well before the current product.

Who owns the data?

The privacy policy, last updated on 21 August 2020, presents itself as an agreement between the user and seriouscode GmbH, while the terms and the contact page name Cross Regions Technology. Account data stays under the vendor's control: users may delete some personal information, but an unrevised copy can be kept for as long as legal obligations and partner commitments require, and in a merger or acquisition the account and its personal data are among the transferred assets. Database content is treated differently. Connection credentials are encrypted at rest with AES-256, the gateway states that query results are not retained, and the local Connector keeps credentials, rows and connection details on the user's own machine.

Reuse rights

The vendor lists broad purposes for the data it collects: running accounts and orders, delivering and improving the service, sending administrative, marketing and promotional messages, answering support requests, delivering targeted advertising, running prize draws, enforcing the terms and responding to legal requests. Browsing data such as IP address, browser, operating system, pages visited and internal searches is collected automatically. Third-party payment processors are used but never named, and the policy states that personal information is not shared with unaffiliated third parties. On the user's side, nothing in the terms restricts reuse of the SQL that AI2SQL produces or of the rows returned by a query: the output goes back to the user's own database work without a permission step. Nowhere on the site is model training on customer data mentioned, in either direction.

Data retention & training

Retention summary
Personal information is kept for as long as needed to meet legal obligations, settle disputes and enforce the vendor's agreements, unless a longer period is required by law, and is deleted once that period expires. After expiry, the rights of access, erasure, rectification and portability can no longer be exercised. Users can delete some of their personal information themselves, but an unrevised copy may be retained for the duration of obligations to affiliates and partners, and anonymized aggregate data derived from it may be kept indefinitely. On the gateway side, query results are not retained at all; only audit metadata, meaning the SQL text, timing and status of each call, is stored. Audit history runs to seven days on the free gateway plan and is complete on paid ones. No fixed retention period in days or months is published.
GDPR contact

Hosting summary

The site never states where data is hosted. No hosting country, region or data centre is named on any of the pages collected, and the privacy policy only acknowledges in general terms that transfers may involve storing information in a country other than the user's own, without naming one. The only concrete indication is technical: the website resolves to 216.150.1.1, an anycast address geolocated in the United States on Amazon's network, which describes the marketing site rather than the query infrastructure. What the vendor does document is protection rather than location: database connection credentials are encrypted at rest with AES-256, the gateway states that query results are not retained and only audit metadata is stored, and the local Connector keeps credentials, rows and connection details on the user's own machine. Anyone with a jurisdictional requirement should ask before connecting a production database.

Watch-outs

Things to keep in mind

Risks and trade-offs to weigh before adopting AI2SQL.

  • Handing database credentials to a hosted third party is a real decision: read-only access is enforced, but the connection still leaves your perimeter
  • The published legal documents predate the current product by several years, so what you agree to may not describe what you are using
  • The publisher's identity is inconsistent across pages, which makes it harder to know who actually holds your account data
  • Nothing on the site says whether customer data is used to train models, and silence is not a commitment
  • Trusting a generated query without reading it is easy, and a wrong join produces a confident answer rather than an error
  • Leaning on generated SQL can quietly erode the habit of writing and reasoning about queries yourself
  • The trial requires a card and no refund is available once a subscription starts, so an unnoticed renewal cannot be undone
Setup

Setup & Integrations

Technical difficulty

Low for the web application: you sign up and start writing, with nothing to install. Connecting a database is a step up, since you need read-only credentials and the right to use them. The MCP route is advertised at two minutes, is a pasted URL and an OAuth sign-in, and has one-click installers for Cursor and VS Code, while ChatGPT requires developer mode. The desktop Connector is the most technical part: the binaries are unsigned, so the first launch means clearing a SmartScreen warning or running a quarantine command in a terminal.

Deployment

Web appDesktop appAPIPlugin

Integrations

Claude Claude Desktop Claude Code ChatGPT Cursor VS Code GitHub Copilot Slack PostgreSQL MySQL MariaDB SQL Server Oracle Snowflake BigQuery Amazon Redshift MongoDB SQLite Firebird

Supported languages

English
Company

Behind AI2SQL

Company name
Cross Regions Technology
Founded
27/02/2022
Country of origin
🇺🇸 United States
Headquarters
13553 Atlantic Blvd, Suite 201, FL 32225
UBO
Mustafa Ergisi
UBO country
INFORMATION_NOT_FOUND
Domain registrar country
🇩🇩 Germany
Support contact
Official links

Resources

All the official URLs gathered for verification and reference.

Compare

Alternatives

Tools that compete with or complement AI2SQL.

C ChatGPT
FAQ

Frequently asked questions

Is there a free trial, and do I need a card?
Every plan opens with a seven-day free trial and 0 USD is charged on the day you start it, but a payment card is required. You can cancel in one click from your account before the trial ends and pay nothing.
Can AI2SQL read my own database schema?
Yes, and that is the point of the product. Once a database is connected, the assistant uses your real tables, columns and relationships, so joins and names match your schema instead of a generic example.
Can the assistant change or delete my data?
No. Every statement is classified before it reaches your database, and only a single SELECT or WITH is allowed through. Inserts, updates, deletes, DDL and multi-statement batches are refused server-side, and queries also run inside a read-only transaction.
Which databases are supported?
Connectors cover PostgreSQL, MySQL, SQL Server, Oracle, Snowflake, BigQuery, Amazon Redshift, MongoDB, SQLite and Firebird, and roughly twenty further dialects are handled for generation. Live schema browsing and query execution, however, work only with PostgreSQL, MySQL, MariaDB and SQL Server.
Is there an API, and can my own AI agent use it?
Yes. There is a REST API and a governed MCP endpoint that any MCP-compatible client speaks, including Claude, Cursor, VS Code and ChatGPT in developer mode. Keys are scoped per agent and every call is metered and logged.
What does the free tier include?
Signing in, listing your connections, browsing schemas and five SQL requests a day shared with the web application. Running queries against a connected database belongs to the paid plans. The Gateway has its own free plan with one connection and one agent key.
Does it work offline or on the desktop?
A desktop app is available on the Pro plan for Windows and macOS, and it is also the way to reach a database that only listens on localhost or an internal address. Query generation itself still needs a connection to the vendor's API.
Is there a minimum age to use the service?
Yes. The terms and conditions restrict access and use to individuals who are at least eighteen years old, and the privacy policy states that no personal information is knowingly collected from anyone under 18.
Conclusion

Should you pick AI2SQL?

AI2SQL is a narrow tool that knows exactly what it is for. Where a general assistant writes plausible SQL from a schema you paste into a chat box, AI2SQL reads the live schema, targets the dialect of the connection you picked, runs the statement read-only and hands back rows. The same capability is offered twice over: once in a browser workspace, once as a hosted MCP server that Claude, ChatGPT, Cursor and VS Code can call directly, with a gateway that meters, logs and revokes what each agent is allowed to do. For a team already pointing agents at production data, that governance layer is arguably the real product.

The pricing is unusually plain for this category. A permanent free tier, a paid entry point at 9 USD per month, a top team plan at 39 USD and a one-off lifetime option leave little room for confusion, although the separate Gateway price list, which runs to 99 USD per month, is easy to mistake for the same thing.

The reservations are about paperwork rather than product. The privacy policy dates from 2020 and the terms from 2021, both older than the MCP and gateway features they are meant to cover. Two different legal entities appear depending on which page you read. There is no data processing agreement, no subprocessor list, no stated hosting jurisdiction and no published security certification, and nothing anywhere says whether customer data feeds model training. For an analyst connecting a staging database, none of that matters much. For anyone connecting production data under a compliance regime, it is the first conversation to have with the vendor.