Labsco
MCP SERVER

SQL Builder AI MCP

by CSOAI-ORG

Compose SELECT and INSERT statements and get a query explained, over stdio with no database credentials involved.

Code Generation, Scaffolding & Migration
Summary
It writes the query; it never runs it.

Because it holds no connection and no credentials, the worst outcome of a bad call is a wrong string you can read before executing it — which is a very different risk profile from a server that has your database handle. Treat it as a composition and review step in front of whatever actually runs the SQL.

What it is

A SQL composition helper exposed as tools. It builds statements from structured input and explains a query back in plain terms, which keeps the query-writing step inspectable rather than buried inside a model's free-text output.

What you get
  • A SELECT statement composed from the parts you supply — `build_select`
  • An INSERT statement composed the same way — `build_insert`
  • A query explained — `explain_query`
Requirements

Python, and no account or key — nothing here connects to a database, so there are no connection strings to hand over. The PyPI package is `sql-builder-ai-mcp` (1.0.7): install with `pip install sql_builder_ai_mcp` and run the `sql-builder-ai-mcp` command over stdio, or launch it with `uvx sql-builder-ai-mcp`. A Smithery one-line install is documented as well.

Setup effort

One command — pip install sql_builder_ai_mcp