MCP server for SQL syntax validation, linting, dialect conversion, and query analysis using SQLGlot.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Server Sql Analyzer.
A Model Context Protocol (MCP) server that provides SQL analysis, linting, and dialect conversion capabilities using SQLGlot.
The SQL Analyzer MCP server provides tools for analyzing and working with SQL queries. It helps with:
As an AI assistant, this server enhances my ability to help users work with SQL efficiently by:
Query Validation: I can instantly validate SQL syntax before suggesting it to users, ensuring I provide correct and dialect-appropriate queries.
Dialect Conversion: When users need to migrate queries between different database systems, I can accurately convert the syntax while preserving the query's logic.
Code Analysis: The table and column reference analysis helps me understand complex queries, making it easier to explain query structure and suggest optimizations.
Compatibility Checking: By knowing the supported dialects and their specific features, I can guide users toward database-specific best practices.
This toolset allows me to provide more accurate and helpful SQL-related assistance while reducing the risk of syntax errors or dialect-specific issues.
Update your personal preferences in Claude Desktop settings to request that generated SQL is first validated using the lint_sql tool.
lint_sql
transpile_sql
get_all_table_references
get_all_column_references
Returns a list of all supported SQL dialects for use in all tools.
Add this to your claude_desktop_config.json:
After cloning this repo, add this to your claude_desktop_config.json:
To run the server in development mode:
To run unit tests:
MIT
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/j4c0bs-mcp-server-sql-analyzer)<a href="https://allmcps.com/mcp/j4c0bs-mcp-server-sql-analyzer"><img src="https://allmcps.com/api/badge/j4c0bs-mcp-server-sql-analyzer?style=directory" alt="MCP Server Sql Analyzer on AllMCPs" /></a>