MCP server

syntaqlite includes an MCP server for Claude Desktop, Cursor, Windsurf, and other MCP-compatible clients.

Install syntaqlite

The MCP server is built into the syntaqlite binary. If you haven't installed it yet:

curl -sSf https://raw.githubusercontent.com/LalitMaganti/syntaqlite/main/tools/syntaqlite | python3 - install

See the CLI tutorial for other install methods.

Claude Desktop

Open 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

Add the syntaqlite server:

{
  "mcpServers": {
    "syntaqlite": {
      "command": "syntaqlite",
      "args": ["mcp"]
    }
  }
}

Restart Claude Desktop. You can now ask Claude to format or validate SQL, and it will use syntaqlite's tools.

Cursor

Add to .cursor/mcp.json in your project:

{
  "mcpServers": {
    "syntaqlite": {
      "command": "syntaqlite",
      "args": ["mcp"]
    }
  }
}

Restart Cursor. Try asking it to format a SQL query. It will use syntaqlite's format_sql tool.

Windsurf

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

{
  "mcpServers": {
    "syntaqlite": {
      "command": "syntaqlite",
      "args": ["mcp"]
    }
  }
}

Restart Windsurf.

Try it out

Ask your AI assistant something like:

Format this SQL: select id,name from users where active=1

It should call syntaqlite's format_sql tool and return:

SELECT id, name FROM users WHERE active = 1;

See the MCP tools reference for all available tools and their parameters.