A Model Context Protocol (MCP) server that provides SQL analysis, linting, and dialect conversion capabilities using
Sql analyzer mcp server connects Sql Analyzer to AI assistants that speak the Model Context Protocol. A Model Context Protocol (MCP) server that provides SQL analysis, linting, and dialect conversion capabilities using SQLGlot.
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:
Once connected, the assistant can call these 4 tools directly:
Input — - sql (string): SQL query to analyzeReturns — ParseResult containing:Inputs — - sql (string): SQL statement to transpileTips — Update your personal preferences in Claude Desktop settings to request that generated SQL is first validated using the lint_sql toolThe server is distributed via npm as @modelcontextprotocol/inspector, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.
Database servers turn schema archaeology and ad-hoc reporting into conversation, which is why they tend to be the second or third server people install. Sql Analyzer sits in that group, and the shape of its toolset — Input, Returns, Inputs among others — tells you what it is really for. Worth comparing against the other databases servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.
| Tool | What it does |
|---|---|
| Input | - sql (string): SQL query to analyze |
| Returns | ParseResult containing: |
| Inputs | - sql (string): SQL statement to transpile |
| Tips | Update your personal preferences in Claude Desktop settings to request that generated SQL is first validated using the lint_sql tool. |
{
"mcpServers": {
"server-sql-analyzer": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/inspector"]
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
Read-only SQL access to Postgres — let your assistant inspect schemas and answer questions from real data.
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.
Serverless Postgres with database branching — point your assistant at Neon and let it work on disposable copies.