sql-format-mcp
v1.0.1Format, minify and split SQL offline, respecting strings, quotes and comments
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
format_sql
Lay out a SQL statement with clauses on their own lines, SELECT lists one item per line and subqueries indented.
| Parameter | Type | Description |
|---|---|---|
sql * | string | SQL text |
indent | integer | Spaces per indent level, 2 or 4, default 2 |
uppercaseKeywords | boolean | Upper-case keywords, default true |
minify_sql
Collapse a SQL statement onto one line without touching strings or comments.
| Parameter | Type | Description |
|---|---|---|
sql * | string | SQL text |
stripComments | boolean | Drop comments as well, default false |
split_statements
Split a SQL script into statements on top-level semicolons, keeping strings and comments intact.
| Parameter | Type | Description |
|---|---|---|
sql * | string | SQL script that may hold several statements |