cd /news/ai-agents/let-your-ai-assistant-run-sql-on-36-… · home › topics › ai-agents › article
[ARTICLE · art-177359] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Let your AI assistant run SQL on 36 real database engines: the sqlize.online MCP server

A developer launched an MCP server for sqlize.online that lets AI assistants such as Claude, Cursor and VS Code Copilot execute SQL against 36 real database engines and return actual result sets instead of guessed syntax. The server, listed in the official MCP Registry as online.sqlize/sqlize, exposes tools including list_databases, run_sql, describe_database and create_share_link over Streamable HTTP. The developer cited a case where MySQL 8.0 silently returns 0 for 'abc' || 'def' because it treats || as logical OR, which a model that only writes SQL would miss.

key takeaway

Wiring an MCP server that runs SQL on real engines lets assistants catch silent dialect traps like MySQL 8.0 returning 0 for 'abc' || 'def' instead of concatenating.

by read2 min views7 publishedNov 27, 2026

AI assistants are good at writing SQL and bad at knowing whether it actually runs. Is || string concatenation in MySQL? Does that window function work in SQL Server 2017? Does PostgreSQL 19 still accept this syntax? The model guesses, you copy the query into a terminal, and only then do you find out.

Today I launched an MCP server for sqlize.online, the online SQL sandbox I've been running for several years. Now Claude, Cursor, VS Code Copilot and any other Model Context Protocol client can run SQL themselves, on real database engines, and show you the actual result instead of a guess.

It's listed in the official MCP Registry as online.sqlize/sqlize.

Claude Code

claude mcp add --transport http sqlize https://api.sqlize.online/mcp

claude.ai: Settings → Connectors → Add custom connector → https://api.sqlize.online/mcp

Cursor (~/.cursor/mcp.json), Windsurf and other clients:

{ "mcpServers": { "sqlize": { "url": "https://api.sqlize.online/mcp" } } }

VS Code (.vscode/mcp.json):

{ "servers": { "sqlize": { "type": "http", "url": "https://api.sqlize.online/mcp" } } }
Tool What it does
list_databases Engines and versions, with the sql_version id to pass to the other tools
run_sql Runs a script in a fresh database and returns every result set as a table, errors per statement, and a sqlize.online link
describe_database Tables, columns and foreign keys of a preloaded sample database
create_share_link Saves a script without running it and returns its sqlize.online link

Ask the assistant something like "Rank customers by total order amount, check it on PostgreSQL 19". It writes the script, including the test data, and calls run_sql. This is the real answer from the server:

PostgreSQL 19: ran 3 statements.

Result 1: 2 rows
| customer | total | place |
| --- | --- | --- |
| Ann | 165 | 1 |
| Bob | 80 | 2 |

Open on sqlize.online: https://sqlize.online/sql/psql19/95b720bc118059606dbdb8e1bb6068b9

Now the case where running the query really matters. In PostgreSQL, Oracle and SQLite 'abc' || 'def' gives abcdef. Ask the assistant to check the same expression on MySQL 8.0:

MySQL 8.0: ran 1 statement.

Result 1: 1 row
| concat_test |
| --- |
| 0 |

No error, just a silent 0: by default MySQL reads || as logical OR. A model that only writes SQL would happily hand you that query. A model that runs it sees the 0 and switches to CONCAT().

It's a free public sandbox, so there are fair-use limits:

The server speaks Streamable HTTP (stateless JSON, protocol versions 2025-03-26 to 2025-11-25). You can also try the tools by hand on the API page.

If you're learning SQL, the same engines power the practice tasks and the playground on SQLtest.online.

Try it and tell me what you'd want next: more engines, persistent databases, query plans? I read every comment.

── more in #ai-agents 4 stories · sorted by recency
── more on @sqlize.online 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/let-your-ai-assistan…] indexed:0 read:2min 2026-11-27 · —