sql-mcp
Provides SQL query formatting for MariaDB dialect, with configurable tab width and uppercase keywords.
Provides SQL query formatting for MySQL dialect, with configurable tab width and uppercase keywords.
Provides SQL query formatting for PostgreSQL dialect, with configurable tab width and uppercase keywords.
Provides SQL query formatting for Snowflake dialect, with configurable tab width and uppercase keywords.
Provides SQL query formatting for SQLite dialect, with configurable tab width and uppercase keywords.
Provides SQL query formatting for Trino dialect, with configurable tab width and uppercase keywords.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@sql-mcp format this SQL: select id, name from users"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
sql-mcp
MCP server: format SQL queries. Backed by sql-formatter, supports 14
dialects.
Tool
format
{ "sql": "select id, name from users where age > 21 order by id", "dialect": "postgresql" }→
SELECT
id,
name
FROM
users
WHERE
age > 21
ORDER BY
idField | Default | Notes |
|
|
|
| 2 | 0-8 |
| true | Uppercase keywords (SELECT, FROM, …) |
Related MCP server: mcp-server-sql-analyzer
Configure
{ "mcpServers": { "sql": { "command": "npx", "args": ["-y", "@mukundakatta/sql-mcp"] } } }License
MIT.
Available Tools
1 toolformatA
Format a SQL query. Supports 14 dialects (Postgres, MySQL, SQLite, BigQuery, Snowflake, MSSQL, etc.). Default uppercases keywords.
Inputs: sql (required), dialect, tab_width, uppercase.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
Only one tool exists, so there is no ambiguity. The tool's purpose is clearly defined.
With a single tool, naming consistency is trivially maintained. The name 'format' is a clear verb indicating its action.
A single tool for a SQL server is far too sparse. Users would expect multiple tools for querying, explaining, or managing databases.
The server only offers formatting, missing essential SQL operations like executing queries or analyzing schema, making it severely incomplete.
Related MCP Connectors
SQL validation, formatting, parsing, metadata extraction, linting, and security analysis.
Format/lint JS, Python, HubL for automation platforms. Tools: format_code, format_json, ask_codefmt
Kotlin compile-time SQL library. Docs, code validation, and SQLite execution tools.
Turn a messy CSV, Excel, JSON or XML file or URL into a clean, typed table you can query with SQL.
Related MCP Servers
- AlicenseAqualityAmaintenance7 SQL tools (validate, format, parse, lint, security scan, metadata extraction, full analysis) over Streamable HTTP. Supports 6 SQL dialects with 1.25M+ ops/sec.7127Apache 2.0
- AlicenseAqualityDmaintenanceProvides SQL analysis, linting, and dialect conversion using SQLGlot, enabling validation, transpilation, and extraction of table/column references.432MIT
- AlicenseNot gradedqualityBmaintenanceDeterministic SQL static analysis and query-equivalence checking for Postgres, MySQL, SQLite, and SQL Server. Tokenizes locally before forwarding to the API.8Apache 2.0
- AlicenseNot gradedqualityCmaintenanceProvides tools to prepare and validate ABAP Open SQL statements for SAP's ADT data-preview console, automatically fixing dialect issues like parenthesis spacing and 255-character limits.67 npm1MIT