Claude Code

syntaqlite has a Claude Code plugin that gives Claude access to SQL formatting, parsing, and validation tools.

Install the plugin

claude plugin install syntaqlite

Once installed, Claude can format SQL, inspect parse trees, and run the language server — you can ask it to format a query, check a .sql file for errors, or debug a parse issue.

What the plugin provides

  • Format SQLsyntaqlite fmt with configurable line width, keyword casing, and semicolons
  • Parse SQLsyntaqlite ast to inspect the parse tree
  • Language serversyntaqlite lsp for diagnostics, completions, and semantic tokens

MCP server

If you use Claude Desktop, Cursor, Windsurf, or other MCP-compatible tools, you can also set up syntaqlite as an MCP server. This exposes three tools: format_sql, parse_sql, and validate_sql.

Install

pip install syntaqlite-mcp

The syntaqlite CLI must be on your PATH.

Claude Desktop

Add to your config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "syntaqlite": {
      "command": "syntaqlite-mcp"
    }
  }
}

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "syntaqlite": {
      "command": "syntaqlite-mcp"
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "syntaqlite": {
      "command": "syntaqlite-mcp"
    }
  }
}