sqlfluff-mcp-server MCP Server

An MCP server that exposes SQLFluff's linting, fixing, and parsing over the Model Context Protocol, so any MCP-aware client (Claude, other agents, IDE integrations) can lint and fix SQL directly.

Local serverstdio

What is the sqlfluff-mcp-server MCP Server?

sqlfluff-mcp-server is an MCP project maintained in the gswartwood/sqlfluff-mcp-server repository. The maintainer describes its purpose as “An MCP server that exposes SQLFluff's linting, fixing, and parsing over the Model Context Protocol, so any MCP-aware client (Claude, other agents, IDE integrations) can…”. Read the project documentation for the complete scope.

Installation

The documented pypi package is sqlfluff-mcp-server. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
lint_filepath on disk
fix_filepath on disk (+ write flag)
parse_filepath on disk
lint_sqlraw SQL text + dialect
fix_sqlraw SQL text + dialect
parse_sqlraw SQL text + dialect
list_dialects—
clear_config_cache—

How to install the sqlfluff-mcp-server MCP Server

{
  "mcpServers": {
    "sqlfluff": {
      "command": "uvx",
      "args": [
        "sqlfluff-mcp-server"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.