← Back to GoSQLX

Install GoSQLX

Pick your client, copy the command, done.

1

Add it to Claude Code

claude mcp add gosqlx -- curl https://mcp.gosqlx.dev/mcp

Available Tools (5)

Once configured, GoSQLX gives your AI agent access to:

validateValidates SQL syntax for supported dialects
sqldialect
formatFormats SQL queries for readability
sqloptions
lintAnalyzes SQL for best practices and potential issues
sql
security_scanScans SQL for potential security vulnerabilities
sql
parseParses SQL into a structured AST
sql

Try 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.

Remember this setup