AI2SQL MCP Server for Claude and ChatGPT
By AI2SQL
Overview
Ask Claude questions about your own database in plain English. AI2SQL gives Claude your real table and column names, writes the SQL and runs it as a read-only query, so the answer comes from your data. Try it first on demo_shop, a sample store every account can query: "Use AI2SQL to show the top 5 customers by revenue this year in demo_shop" What it does: - Get started: see the databases in your account, what your plan includes, and example questions to ask. - Connect a database: get a link to connect PostgreSQL, MySQL or SQL Server in AI2SQL, including Supabase, Neon, AWS RDS and Azure. Credentials are entered in AI2SQL, never in Claude. - List your databases and read their tables and columns, so queries use real names. - Run a single read-only SELECT or WITH query and return up to 1,000 rows. Writes and DDL are rejected. - Generate SQL from a plain-English request for PostgreSQL, MySQL, SQL Server, SQLite, Oracle, Snowflake, BigQuery and MariaDB. - Fix, optimize, explain and convert SQL you already have. Database on your own machine or network? Save its schema in AI2SQL and Claude writes SQL that matches it. How it works: you sign in with your AI2SQL account over OAuth, and every tool follows your AI2SQL plan. A free account can generate a limited number of queries each day, browse its databases and query demo_shop. Querying your own databases, saving a local schema, and fixing, optimizing, explaining and converting SQL are part of the paid plans, each of which starts with a 7-day free trial. No tool can change or delete data in your database.
How to connect
- Claude: Open the AI2SQL listing in the Claude connectors directory and choose Connect. Claude listing AI2SQL exposes 10 tools here.
- ChatGPT: Open the AI2SQL listing in the ChatGPT app directory and choose Connect. ChatGPT listing AI2SQL exposes 10 tools here.
Tools
describe_schema
ChatGPTexplain_sql
ChatGPTfix_sql
ChatGPTgenerate_sql
ChatGPTget_agent_activity
ChatGPTget_database_setup_steps
ChatGPTlist_connections
ChatGPToptimize_sql
ChatGPTrun_query
ChatGPTconnect_database
Claudeconvert_sql
Claudedescribe_schema
Claudeexplain_sql
Claudefix_sql
Claudegenerate_sql
Claudeget_started
Claudelist_connections
Claudeoptimize_sql
Clauderun_query
ClaudeLinks
Similar Apps
Listed on MCP App Store
Add this badge to your site or README. It links to this page.
HTML
<a href="https://mcp-app-store.keenethics-labs.com/app/ai2sql"><img src="https://mcp-app-store.keenethics-labs.com/badges/listed-on-mcp-app-store.svg" alt="Listed on MCP App Store" width="220" height="44"></a>
Markdown
[](https://mcp-app-store.keenethics-labs.com/app/ai2sql)





