Sql Formatter

Developer REST API MCP

Format (beautify) or minify a SQL query and return the result with lint warnings. Format mode puts each clause (SELECT, FROM, WHERE, JOIN, ...) on its own line, uppercases keywords, and indents by the chosen width; dialect adds MySQL, PostgreSQL, or SQLite keywords. Warnings flag unmatched parentheses, unclosed strings, empty clauses, and a missing final semicolon.

This page documents the MCP tool findutils:sql_formatter. See the REST reference →

Call it over MCP

Tool name findutils:sql_formatter · no API keys · 120 requests/min per IP

Claude Code

claude mcp add findutils --transport http https://mcp.findutils.com/

Claude Desktop — claude_desktop_config.json

{
  "mcpServers": {
    "findutils": {
      "url": "https://mcp.findutils.com/"
    }
  }
}

Raw JSON-RPC (any MCP client) — verified example

curl -X POST https://mcp.findutils.com/ \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "sql_formatter",
      "arguments": {
        "sql": "select id, name from users where id = 1;"
      }
    }
  }'

Input schema

Argument Type Required Description
sql string yes The SQL text to format or minify.
mode string (format | minify) no format = beautify, minify = one line without comments. Default: format. Default: "format".
indent integer no Spaces per indentation level in format mode (1-8). Default: 2. Default: 2.
dialect string (standard | mysql | postgresql | sqlite) no SQL dialect for keyword recognition. Default: standard. Default: "standard".

Example arguments (verified)

{
  "sql": "select id, name from users where id = 1;"
}

Also a REST endpoint

The same tool answers plain HTTP at POST /api/tools/sql-formatter/execute — no key, 60 requests/min.

Open the REST reference for Sql Formatter →

More Developer tools