io.github.MukundaKatta/sqlfmt-mcp โ MCP Server
This MCP server provides deterministic SQL formatting across 19 SQL dialects, including postgres, mysql, snowflake, and bigquery. It exposes tools to format SQL with consistent indentation and keyword casing so formatted output is repeatable for downstream diffing and code review.
๐ ๏ธ Key Features
- Deterministic formatting across 19 dialects
- Supports dialects such as postgres, mysql, snowflake, bigquery
- Tool to format_sql with optional parameters like dialect, keyword_case, tab_width, and use_tabs
๐ Use Cases
- Canonicalizing SQL output for code-review agents and downstream tooling that diffs SQL
- Reducing inconsistency in LLM-generated formatting across turns
โก Developer Benefits
list_dialects()helps confirm supported dialects before formattingformat_sql(...)returns formatted text + line count
โ ๏ธ Limitations
- The server is described as formatting SQL deterministically across 19 dialects (no additional capabilities are listed)