Skip to main content
Glama
gswartwood

sqlfluff-mcp-server

by gswartwood

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
lint_fileA

Lint a SQL file on disk, honoring any .sqlfluff / pyproject.toml config found by walking up from the file's directory.

Args: path: Path to the SQL file to lint. config_path: Optional path to an extra config file to layer on top of whatever is discovered by walking the directory tree.

fix_fileA

Fix a SQL file on disk, honoring discovered .sqlfluff config.

Args: path: Path to the SQL file to fix. write: If True, overwrite the file in place with the fixed SQL. If False (default), just return the fixed SQL without touching the file. config_path: Optional path to an extra config file to layer on top of whatever is discovered by walking the directory tree.

parse_fileA

Parse a SQL file on disk and return its parse tree, honoring discovered .sqlfluff config.

Args: path: Path to the SQL file to parse. config_path: Optional path to an extra config file to layer on top of whatever is discovered by walking the directory tree.

lint_sqlA

Lint a raw SQL string using an explicitly specified dialect.

Args: sql: The SQL text to lint. dialect: SQLFluff dialect name, e.g. "ansi", "bigquery", "snowflake", "postgres". See sqlfluff.list_dialects() for the full set. rules: Optional list of rule codes/names to restrict linting to.

fix_sqlA

Fix a raw SQL string using an explicitly specified dialect and return the fixed SQL text (does not touch any file).

Args: sql: The SQL text to fix. dialect: SQLFluff dialect name, e.g. "ansi", "bigquery", "snowflake", "postgres". rules: Optional list of rule codes/names to restrict fixing to.

parse_sqlA

Parse a raw SQL string using an explicitly specified dialect and return its parse tree.

Args: sql: The SQL text to parse. dialect: SQLFluff dialect name, e.g. "ansi", "bigquery", "snowflake", "postgres".

list_dialectsA

List the SQL dialects SQLFluff supports (for use with lint_sql / fix_sql / parse_sql).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gswartwood/sqlfluff-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server