Skip to main content
Glama

sql-mcp

npm mcp license

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
  id

Field

Default

Notes

dialect

sql

postgresql, mysql, mariadb, sqlite, bigquery, redshift, snowflake, transactsql, db2, plsql, trino, hive, spark

tab_width

2

0-8

uppercase

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 tool
formatA

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

    A3.8/5.0

    Scored across 1 tool

    Disambiguation5/5

    Only one tool exists, so there is no ambiguity. The tool's purpose is clearly defined.

    Naming Consistency5/5

    With a single tool, naming consistency is trivially maintained. The name 'format' is a clear verb indicating its action.

    Tool Count2/5

    A single tool for a SQL server is far too sparse. Users would expect multiple tools for querying, explaining, or managing databases.

    Completeness1/5

    The server only offers formatting, missing essential SQL operations like executing queries or analyzing schema, making it severely incomplete.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      A
      maintenance
      7 SQL tools (validate, format, parse, lint, security scan, metadata extraction, full analysis) over Streamable HTTP. Supports 6 SQL dialects with 1.25M+ ops/sec.
      7
      127
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Deterministic SQL static analysis and query-equivalence checking for Postgres, MySQL, SQLite, and SQL Server. Tokenizes locally before forwarding to the API.
      8
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides 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 npm
      1
      MIT