
Sqlfmt Mcp
Format SQL consistently across warehouses and OLTP dialects while agents write migrations, reports, and ad hoc queries.
Overview
Sqlfmt MCP is a MCP server for the Build phase that deterministically formats SQL across 19 dialects including Postgres, MySQL, Snowflake, and BigQuery.
What is this MCP server?
- Deterministic formatting across 19 SQL dialects
- Covers postgres, mysql, snowflake, bigquery, and related variants
- stdio npm @mukundakatta/sqlfmt-mcp v0.1.0
- Keeps agent-generated SQL reviewable in PRs
- No live database connection required—format-only MCP
- 19 SQL dialects supported
- Server version 0.1.0
- stdio npm package @mukundakatta/sqlfmt-mcp
What problem does it solve?
Agent-written SQL arrives as unreadable one-liners and dialect drift makes reviews painful.
Who is it for?
Builders working across multiple SQL engines who want formatting inside the agent workflow.
Skip if: Query optimization, schema linting, or live migration execution against production databases.
What do I get? / Deliverables
You get consistently styled SQL per dialect ready for commits and team review.
- Deterministically formatted SQL for the chosen dialect
- Review-ready query text for version control
Recommended MCP Servers
Journey fit
How it compares
SQL formatter MCP, not a database client or migration runner skill.
Common Questions / FAQ
Who is sqlfmt-mcp for?
Solo developers and small teams writing SQL for Postgres, MySQL, Snowflake, BigQuery, and similar dialects via MCP agents.
When should I use sqlfmt-mcp?
When cleaning up generated migrations, analytics SQL, or multi-dialect scripts before committing.
How do I add sqlfmt-mcp to my agent?
Install @mukundakatta/sqlfmt-mcp from npm, add stdio MCP server config, and call format tools with your dialect id.