claude mcp add mcp-server-sql-analyzer -- npx -y mcp-server-sql-analyzer
A pasteable skeleton generated from the repository name. Check the project README for the exact package and arguments.
Star count
32 โ ยท j4c0bs/mcp-server-sql-analyzer ยท read from the repository page ยท (checked 2026-10-16 20:00:20)
Source
collected from the punkpeye/awesome-mcp-servers list ยท type: MCP server
Harvest history
first seen 2026-10-09 ยท last seen 2026-10-16 ยท seen 32ร ยท listed by 10 sources
Score
score 1,003 ยท 32 โ ยท 10 sources ยท mcp
FAQ (answers come from our records)
How do I install it?
We did not find an install command for this repository (our install coverage is only about 4%). Check its README or releases page.
Who is it for?
We filed it under these tags: MCP ๆๅก. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
repository j4c0bs/mcp-server-sql-analyzer๏ผfirst catalogued 2026-10-09๏ผlast seen 2026-10-16ใThere is no official certification or quality rating here โ we record sources and dates only.
A Model Context Protocol (MCP) server that provides SQL analysis, linting, and dialect conversion capabilities using SQLGlot. Overview The SQL Analyzer MCP server provides tools for analyzing and working with SQL queries. It helps with: - SQL syntax validation and linting - Converting queries between different SQL dialects (e.g., MySQL to PostgreSQL) - Extracting and analyzing table references and dependencies - Identifying column usage and relationships - Discovering supported SQL dialects How Claude Uses This Server As an AI assistant, this server enhances my ability to help users work with SQL efficiently by: 1. **Query Validation**: I can instantly validate SQL syntax before suggesting it to users, ensuring I provide correct and dialect-appropriate queries. 2. **Dialect Conversion**: When users need to migrate queries between different database systems, I can accurately convert the syntax while preserving the query's logic. 3. **Code Analysis**: The table and column reference analysis helps me understand complex queries, making it easier to explain query structure and suggest optimizations. 4. **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. Tips Update your personal preferences in Claude Desktop settings to request that generated SQL is first validated using the lint_sql tool. Tools 1. lint_sql - Validates SQL query syntax and returns any errors - Input: - sql (string): SQL query to analyze - dialect (string, optional): SQL dialect (e.g., 'mysql', 'postgres') - Returns: ParseResult containing: - is_valid (boolean): Whether the SQL is valid - message (string): Error message or "No syntax errors" - position (object, optional): Line and column of error if present 2. transpile_sql - Converts SQL between different dialects - Inputs: - sql (string): SQL statement to transpile - read_dialect (string): Source SQL dialect - write_dialect (string): Target SQL dialect - Returns: TranspileResult containing: - is_valid (boolean): Whether transpilation succeeded - message (string): Error message or success confirmation - sql (string): Transpiled SQL if successful 3. get_all_table_references - Extracts table and CTE references from SQL - Inputs: - sql (string): SQL statement to analyze - dialect (string, optional): SQL dialect - Returns: TableReferencesResult containing: - is_valid (boolean): Whether analysis succeeded - message (string): Status message - tables (array): List of table references with type, catalog, database, table name, alias, and fully qualified name