What does the `lint_sql` tool do?
It validates SQL query syntax and returns any errors, including the line and column position of the issue.
@j4c0bs
Basic information
MCP server for SQL static analysis.
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-server-sql-analyzer": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"uv",
"--directory",
"/path/to/mcp-server-sql-analyzer",
"run",
"mcp-server-sql-analyzer"
]
}
}
}sql (string): SQL query to analyze
ParseResult containing:
sql (string): SQL statement to transpile
TranspileResult containing:
sql (string): SQL statement to analyze
TableReferencesResult containing:
sql (string): SQL statement to analyze
ColumnReferencesResult containing:
mcp-server-sql-analyzer is a Model Context Protocol (MCP) server that provides SQL analysis, linting, and dialect conversion using SQLGlot. It is designed for AI assistants like Claude to validate, convert, and analyze SQL queries.
Install the server by adding it to claude_desktop_config.json using uvx (recommended) or uv. Invoke its tools—lint_sql, transpile_sql, get_all_table_references, get_all_column_references—with SQL statements and optional dialect parameters.
It validates SQL query syntax and returns any errors, including the line and column position of the issue.
Use the `transpile_sql` tool, specifying the source dialect with `read_dialect` and the target dialect with `write_dialect`.
Use the `dialects://all` resource to retrieve a complete list of all supported SQL dialects.
The server requires SQLGlot and is installed via `uvx` from a git repository or `uv` from a local clone. No other runtime dependencies are mentioned.
Add the server to your `claude_desktop_config.json` under `mcpServers` with either the `uvx` or `uv` command, as shown in the README.

Model Context Protocol Servers

Local database MCP server: your agent sees a migration's impact before it runs, for PostgreSQL, MySQL, SQL Server and SQLite, with no database credentials.

Fund Momentum MCP Server — VC intelligence for AI assistants. 1000+ active VC funds, live investor signals, AI-powered startup matching.

nuzur is a model-first database platform for MySQL and PostgreSQL. The MCP server lets any AI assistant or agent (Claude, Cursor, Gemini, or anything else that speaks MCP) design your schema, query your data, generate mi
MCP server for interacting with Neon Management API and databases
Comments