A Model Context Protocol (MCP) server that provides SQL analysis, linting, and fixing capabilities using [SQLFluff](https://sqlfluff.com/).
A Model Context Protocol (MCP) server that provides SQL analysis, linting, and fixing capabilities using SQLFluff.
The sqlfluff MCP server provides tools for analyzing and working with SQL queries. It helps with:
start_line_no — Line number where the issue startsstart_line_pos — Position in the line where the issue startscode — Error codedescription — Description of the issuename — Name of the linting rulewarning — Whether it's a warning or an errorfixes — List of possible fixesstart_file_pos — Start position in the fileend_line_no — Line number where the issue endsend_line_pos — Position in the line where the issue endsend_file_pos — End position in the fileCompare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| Inputs: | sql (string): SQL query to parse. |
| dialect | string, optional): SQL dialect (e.g., 'mysql', 'postgresql'). |
| Returns: | Parsed tree as a string. |
| start_line_no | Line number where the issue starts |
| start_line_pos | Position in the line where the issue starts |
| code | Error code |
| warning | Whether it's a warning or an error |
| fixes | List of possible fixes |
| start_file_pos | Start position in the file |
| end_line_no | Line number where the issue ends |
| end_line_pos | Position in the line where the issue ends |
| end_file_pos | End position in the file |
{
"mcpServers": {
"mcp-server-sqlfluff": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/antoprince001/mcp-server-sqlfluff.git",
"mcp-server-sqlfluff"
]
}
}
}From the project documentation. Replace placeholders and example paths before connecting.
Inspect PostgreSQL schemas and run read-only queries with the archived MCP reference server. Review its maintenance status before choosing it.
Connect the Notion MCP server to search workspace content and work with pages and databases through Notion’s hosted OAuth service.
Use the Supabase MCP server to inspect database schemas, query project data and retrieve docs through a project-scoped connection.
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.