AI2SQL MCP
A hosted MCP server by AI2SQL that allows AI assistants to write, fix, explain, optimize, and run read-only SQL queries against connected PostgreSQL, MySQL, and SQL Server databases using OAuth 2.1 authentication.
Endpoint and access
OAuth sign-in: the first time you connect, your client opens the vendor's own authorization prompt in a browser.
https://builder.ai2sql.io/api/chatgpt-mcpChecks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Passed Official MCP Registry namespace is tied to ai2sql.io ·
- Passed Endpoint is on the registry namespace domain ·
- Uptime 100% over 90 days
- Availability 3 of 3 checks passed in 30 days
What you can do with it
- Generate SQL from plain English descriptions
- Fix and optimize failing SQL queries
- Explain query execution plans
- Run read-only SELECT queries on connected databases
Source and maintenance
Tools
Reported by the attributed source; not independently observed by Koskamo.
90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-11-02: 4 of 4 checks answered
- 2026-11-03: 4 of 4 checks answered
- 2026-11-04: 4 of 4 checks answered
- 2026-11-05: 4 of 4 checks answered
- 2026-11-06: 4 of 4 checks answered
- 2026-11-07: 2 of 2 checks answered
- 2026-11-09: 1 of 1 checks answered
- 2026-11-10: 2 of 2 checks answered
- 2026-11-11: 1 of 1 checks answered
- 2026-11-12: 1 of 1 checks answered
- 2026-11-14: 1 of 1 checks answered
- 2026-11-15: 2 of 2 checks answered
- 2026-11-16: 4 of 4 checks answered
- 2026-11-17: 5 of 5 checks answered
- 2026-11-18: 5 of 5 checks answered
- 2026-11-19: 4 of 4 checks answered
- 2026-11-20: 2 of 2 checks answered
- 2026-11-21: 4 of 4 checks answered
- 2026-11-22: 4 of 4 checks answered
- 2026-11-23: 4 of 4 checks answered
- 2026-11-24: 4 of 4 checks answered
- 2026-11-25: 4 of 4 checks answered
- 2026-11-26: 3 of 3 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 3 of 3 (100%)
- Average latency
- 417 ms
- 95th percentile latency
- 443 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 438 ms · metadata changed · refuses unauthenticated initialize (HTTP 401)
- · probe · passed · 371 ms · metadata changed · refuses unauthenticated initialize (HTTP 401)
- · probe · passed · 443 ms · metadata changed · refuses unauthenticated initialize (HTTP 401)
- · registry · passed · metadata changed · Source metadata updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Try asking
Reviewed prompts from cited playbooks. Connect the listed servers before using them.
List my database connections. Then, describe the schema of the 'orders' table. Finally, run a query to show me last month's orders.Fix this failing query: [paste query and error]. Then, optimize it for better performance.Generate a SQL query to retrieve the total revenue per customer for the last 30 days from the sales table.Agent playbooks using this server
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http ai2sql-mcp https://builder.ai2sql.io/api/chatgpt-mcpCodex
codex mcp add ai2sql-mcp --url https://builder.ai2sql.io/api/chatgpt-mcpCursor
{
"mcpServers": {
"ai2sql-mcp": {
"url": "https://builder.ai2sql.io/api/chatgpt-mcp"
}
}
}Cline
{
"mcpServers": {
"ai2sql-mcp": {
"type": "streamableHttp",
"url": "https://builder.ai2sql.io/api/chatgpt-mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"ai2sql-mcp": {
"type": "http",
"url": "https://builder.ai2sql.io/api/chatgpt-mcp"
}
}
}Gemini CLI
gemini mcp add --transport http ai2sql-mcp https://builder.ai2sql.io/api/chatgpt-mcpClaude Desktop
https://builder.ai2sql.io/api/chatgpt-mcpWindsurf
{
"mcpServers": {
"ai2sql-mcp": {
"serverUrl": "https://builder.ai2sql.io/api/chatgpt-mcp"
}
}
}Let your agent find its tools
Find servers like AI2SQL MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.
Other developer tools servers
Do you run AI2SQL MCP?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.