Updated March 2026
Install GoSQLX
Pick your client, copy the command, done.
Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1
Set the server up locally
Run this once to clone and prepare the server before adding it to Claude Code.
git clone https://github.com/ajitpratap0/GoSQLX
cd GoSQLXThen follow the repository README for any remaining dependency or build steps before continuing.
2
Register it in Claude Code
After the local setup is done, run this command to point Claude Code at the built server.
claude mcp add gosqlx -- node "<FULL_PATH_TO_GOSQLX>/dist/index.js"Replace <FULL_PATH_TO_GOSQLX>/dist/index.js with the actual folder you prepared in step 1.
Available 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.
Need the legacy visual installer? Open Conare IDE.