GoSQLX MCP

MCP server and Claude Code plugin for SQL: validation, formatting, linting and injection scanning across eight dialects.

  • 124 ★ on the repository
  • Last commit
MCP serverOfficial

Extended access

Why this level

  • SQL text is sent to a remote public server.
  • The plugin hook runs a local CLI after `.sql` files are edited.
All reasons and checks

ajitpratap0/gosqlx

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add mcp/gosqlx

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • SQL text is sent to a remote public server.
  • The plugin hook runs a local CLI after `.sql` files are edited.

This is third-party code. Review the repository files before installing.

What it does

GoSQLX gives an agent seven SQL tools: `validate_sql`, `format_sql`, `parse_sql`, `extract_metadata`, `security_scan`, `lint_sql` and `analyze_sql`. All of them only read a query and return a result. Behind them is a pure Go parser covering PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite, Snowflake and ClickHouse. The server runs remotely at `https://mcp.gosqlx.dev/mcp`, with nothing to install and no key to obtain. Claude Code also gets a separate plugin: five skills, the commands `/gosqlx:analyze`, `/gosqlx:format`, `/gosqlx:lint` and `/gosqlx:security`, the `sql-reviewer` agent and a hook that validates a `.sql` file after the agent edits it. The same engine ships as a Go library, the `gosqlx` CLI, a VS Code extension and a GitHub Action.

Who it is for. Developers who write migrations and queries with an agent and want syntax errors and SQL injection caught before anything runs.

Good fit when

  • An agent wrote a PostgreSQL migration and its syntax must be checked without a database.
  • A MySQL query is moving to Snowflake and needs validation under another dialect.
  • Code concatenates SQL strings and you want to find the injection point.
  • A pull request carries dozens of `.sql` files that should share one style.

Not a fit when

  • Queries cannot be sent to an external public server.
  • The query must run and return data: the tool parses text and never connects to a database.
  • The work uses a dialect without its own grammar in the parser, such as BigQuery or Redshift, which get generic rules only.

Example request

Validate the migration `db/migrations/0042.sql` against PostgreSQL syntax, look for injection risks and show a formatted version.

MCP

Transport
http
Authentication
not required

Limitations

The public server rate-limits to 10 requests per second in a burst and 120 weighted requests per minute per address, and `analyze_sql` costs more than the rest. SQL text goes to that server, so self-host the engine for private schemas. Through MCP only linter rules L001–L010 are available; L011–L030 run via the Go library. MCP validation does not accept every dialect, and the list depends on the server version. The plugin hook needs the `gosqlx` CLI installed and is turned off with `GOSQLX_HOOK_DISABLE=1`.

How to disable. Remove the connection with `claude mcp remove gosqlx` or disable the `gosqlx@gosqlx` plugin in Claude Code.

FAQ

How do I connect GoSQLX to Claude Code?

Run `claude mcp add --transport http gosqlx https://mcp.gosqlx.dev/mcp`. For the plugin with skills and commands use `/plugin marketplace add ajitpratap0/GoSQLX`, then `/plugin install gosqlx@gosqlx`.

Is an API key required?

No. The public server works without registration or a key but with a request rate limit.

Can GoSQLX be connected to Cursor?

Yes, `https://mcp.gosqlx.dev/mcp` works for any MCP client with streamable HTTP support, Cursor included.

What does the plugin hook do?

After a `.sql` file is written or edited it runs `gosqlx validate` and returns the error to the agent so it can fix the file. The hook works only when the CLI is on `PATH`.

Which SQL dialects are supported?

Eight with their own grammar: PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite, Snowflake and ClickHouse. The `--dialect` flag also accepts `generic`, `bigquery` and `redshift`.

Discussion

No questions or reviews yet.

vi-sql is a terminal SQL client with a built-in MCP server: the agent sees the schema and drafts queries straight in your editor

MCP serverExtended access212Repository stars

pgEdge Postgres MCP

pgEdge Postgres MCP Server

Postgres MCP in Go with read-mode queries, EXPLAIN plans, semantic search, several databases and a ready chat client and web interface

MCP serverExtended access245Repository stars

A SQLite-based SQL engine with plugins for apps, databases and files: the anyquery mcp command exposes that data to Claude, Cursor and other MCP clients

MCP serverBroad access1.8KRepository stars

One MCP server for SQLite, SQL Server, PostgreSQL and MySQL: read and change data, edit schemas and export to CSV and JSON

MCP serverBroad access390Repository stars
Official

An MCP server and the dbcode-cli skill: an agent runs SQL through connections already saved in the DBCode editor extension.

MCP serverBroad access363Repository stars

A Go MCP server that lets an agent ask a PostgreSQL database questions in plain language and returns the query result

MCP serverExtended access542Repository stars

README in short

The core is a SQL parser library for Go accompanied by a CLI, a VS Code extension, a GitHub Action and a WASM playground. The agent side is a separate remote MCP server and a Claude Code plugin. Tests run with the race detector.

README badge

Report a problem

Foxx AIGoSQLX
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.