SQL Formatter
Pretty-print SQL across 14 dialects — Postgres, MySQL, BigQuery, Snowflake, and more.
Formatted
</>Use this tool programmaticallycurl · JavaScript · MCP
Same tool, callable from any HTTP client or from Claude (via MCP). Anonymous: 100 req/day per IP. Sign up for 1,000 req/day.
curl
curl https://api.b-e-a-d.com/tools/sql-formatter/run \
-H "Content-Type: application/json" \
-d '{
"input": "your input here",
"dialect": "sql",
"tabWidth": 2,
"keywordCase": "upper",
"linesBetweenQueries": 1
}'JavaScript (fetch)
const res = await fetch("https://api.b-e-a-d.com/tools/sql-formatter/run", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"input": "your input here",
"dialect": "sql",
"tabWidth": 2,
"keywordCase": "upper",
"linesBetweenQueries": 1
}),
});
const data = await res.json();
console.log(data.result);MCP (Claude Desktop / Claude Code)
# In Claude Desktop / Claude Code, add to your MCP config:
{
"mcpServers": {
"bead": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.b-e-a-d.com"]
}
}
}
# Then ask Claude to call:
mcp__bead__bead_sql_formatterFull reference: developer docs · OpenAPI spec
You might also like
- SQL CREATE TABLE GeneratorInfer column types from sample data and emit CREATE TABLE for PostgreSQL, MySQL, SQLite, or SQL Server.
- JSON Formatter & ValidatorPretty-print, minify, and validate JSON.
- XML Formatter & ValidatorPretty-print or minify XML and validate that it's well-formed.
- Escape / UnescapeEscape or unescape strings for JSON, JavaScript, HTML attribute, XML, and SQL contexts.