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, …)

Configure

{ "mcpServers": { "sql": { "command": "npx", "args": ["-y", "@mukundakatta/sql-mcp"] } } }

License

MIT.

Install Server
A
license - permissive license
A
quality
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MukundaKatta/sql-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server