GoSQLX logo

GoSQLX

by ajitpratap0

Analyze, validate, format, lint, parse, scan, and inspect SQL through seven MCP tools over Streamable HTTP.

Install GoSQLX

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://mcp.gosqlx.dev/mcp

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

ajitpratap0/GoSQLX exposes GoSQLX’s SQL parsing and analysis engine to MCP clients through a public Streamable HTTP endpoint. Its seven tools cover syntax validation, AST summaries, formatting, style linting, security checks, metadata extraction, and combined analysis. Use it when an agent needs dialect-aware SQL review without connecting to a database or installing local software. The engine supports PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite, Snowflake, and ClickHouse.

Use cases

  • Validate migration and application SQL before deployment
  • Format generated queries for review
  • Lint SQL files for consistent style
  • Scan query text for injection patterns
  • Extract referenced objects for lineage analysis

Key features

  • Seven SQL analysis tools over Streamable HTTP
  • Public endpoint with no local installation
  • Eight database dialects
  • Concurrent composite analysis
  • Metadata extraction for tables, columns, and functions
  • Security scanning for common injection patterns

Tools7

What GoSQLX lets your agent do. Expand a tool for its parameters.

Verified live~915 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

28/28 checks healthy over the last 97d

What it can do

From the 7 tools this server returned when we ran it.

Read-only tools · 7
Tool definitions changed on 2026-11-04. Review them if you approved this server earlier.

Observed 2026-11-04 in an isolated sandbox. A description of reach, not a security audit.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars126Stargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Tools exposed7Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How GoSQLX works

What ajitpratap0/GoSQLX MCP server does

ajitpratap0/GoSQLX brings GoSQLX’s SQL parser and analysis functions into MCP-compatible assistants. It processes SQL text rather than executing queries against a database. The server can check syntax, summarize parsed statements, reformat queries, report style violations, identify injection patterns, extract referenced objects, or combine these checks into one report.

The implementation is based on GoSQLX, a pure-Go parser that builds SQL abstract syntax trees. Supported dialects include PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite, Snowflake, and ClickHouse. Dialect selection matters most for validation and parsing behavior; validation can also be run without selecting a specific dialect.

How it works

Clients send SQL and tool parameters over MCP using Streamable HTTP. The hosted endpoint is https://mcp.gosqlx.dev/mcp, so a client can use the service without compiling Go code or running a local process. The combined analysis operation runs validation, parsing, metadata extraction, security scanning, linting, and formatting concurrently, then returns a composite result. MCP Apps-capable hosts can render that result as an interactive report.

GoSQLX analyzes query text locally within the service’s SQL-processing workflow. Its tools report structural and textual findings; they are not database execution or schema inspection operations.

Setup and configuration

Add the remote endpoint to an MCP client that supports Streamable HTTP. For Claude, the documented command is:

Terminal
claude mcp add --transport http gosqlx https://mcp.gosqlx.dev/mcp

The public service requires no local installation. The repository also provides a Claude Code plugin with skills, slash commands, and a SQL reviewer agent. A ChatGPT connector can use the same endpoint in developer mode, where the interactive analysis widget is available.

Tools and capabilities

  • validate_sql checks whether SQL is syntactically valid and can target a selected dialect. It returns validity and an error when parsing fails.
  • parse_sql returns a compact AST-oriented summary, including statement count and statement types.
  • format_sql lays out clauses for readability, with options for uppercase keywords and a trailing semicolon. Formatting removes comments.
  • lint_sql reports style issues such as whitespace, indentation, line length, keyword case, comma placement, alias consistency, and alignment.
  • security_scan looks for injection-related patterns, including tautologies, UNION attacks, stacked queries, and comment bypasses, with severity counts.
  • extract_metadata lists referenced tables, columns, and functions for lineage or impact analysis.
  • analyze_sql combines all six analysis stages into one response.

Limitations and notes

The server analyzes SQL text but does not run queries or connect to a database. Formatting does not preserve comments. The repository describes dialect-specific grammar for eight database systems, while generic, BigQuery, and Redshift names are also accepted by the underlying library with capability-gated grammar rather than dedicated dialect keyword sets.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about GoSQLX

ajitpratap0/GoSQLX is an MCP server that connects MCP clients to the GoSQLX SQL parsing engine. Its main tools validate, parse, format, lint, security-scan, and extract metadata from SQL, while analyze_sql combines those checks into one report. It runs over Streamable HTTP at the public GoSQLX endpoint.

No local installation is required; add https://mcp.gosqlx.dev/mcp as a Streamable HTTP MCP endpoint. For Claude, run `claude mcp add --transport http gosqlx https://mcp.gosqlx.dev/mcp`. The endpoint can also be added as a ChatGPT developer-mode connector.

Yes, ajitpratap0/GoSQLX works with Cursor because it exposes a standard Streamable HTTP MCP endpoint. Configure Cursor with `https://mcp.gosqlx.dev/mcp` and use the seven SQL tools from the client.

No, ajitpratap0/GoSQLX analyzes SQL text and does not execute queries or connect to a database. Its tools inspect syntax, structure, formatting, style, security patterns, and referenced tables, columns, and functions.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGoSQLX AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ajitpratap0-gosqlx?style=directory)](https://allmcps.com/mcp/ajitpratap0-gosqlx)
HTML Embed
<a href="https://allmcps.com/mcp/ajitpratap0-gosqlx"><img src="https://allmcps.com/api/badge/ajitpratap0-gosqlx?style=directory" alt="GoSQLX on AllMCPs" /></a>