1
Add it to Claude Code
claude mcp add gosqlx -- curl https://mcp.gosqlx.dev/mcpAvailable Tools (5)
Once configured, GoSQLX gives your AI agent access to:
validateValidates SQL syntax for supported dialectssqldialectformatFormats SQL queries for readabilitysqloptionslintAnalyzes SQL for best practices and potential issuessqlsecurity_scanScans SQL for potential security vulnerabilitiessqlparseParses SQL into a structured ASTsqlTry It Out
After setup, try these prompts with your AI agent:
→Validate this SQL query for PostgreSQL syntax: SELECT * FROM users WHERE id = 1
→Format the following messy SQL query to make it readable: select id,name from users where id=1
→Perform a security scan on this SQL query to check for potential injection risks: SELECT * FROM users WHERE name = '$USER_INPUT'
→Parse this SQL statement and return the AST structure: SELECT u.name, COUNT(*) FROM users u JOIN orders o ON u.id = o.user_id GROUP BY u.name
Keep this setup from going cold
Save the docs, env vars, and workflow around GoSQLX in Conare so Claude Code, Codex, and Cursor remember it next time.