sql-mcp
by MukundaKatta
README.md
# sql-mcp
[](https://www.npmjs.com/package/@mukundakatta/sql-mcp)
[](https://modelcontextprotocol.io)
[](LICENSE)
MCP server: format SQL queries. Backed by `sql-formatter`, supports 14
dialects.
## Tool
### `format`
```json
{ "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
```json
{ "mcpServers": { "sql": { "command": "npx", "args": ["-y", "@mukundakatta/sql-mcp"] } } }
```
## License
MIT.
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 issues