Sqlfluff Server
БесплатноНе проверенMCP server that exposes SQLFluff's linting, fixing, and parsing capabilities, enabling MCP-aware clients to lint and fix SQL directly.
Описание
MCP server that exposes SQLFluff's linting, fixing, and parsing capabilities, enabling MCP-aware clients to lint and fix SQL directly.
README
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.
This project is independent of the SQLFluff maintainers — it's a thin wrapper
around the public sqlfluff Python package.
Tools
| Tool | Input | Config resolution |
|---|---|---|
lint_file |
path on disk | walks up from the file for .sqlfluff / pyproject.toml / etc. |
fix_file |
path on disk (+ write flag) |
same directory walk |
parse_file |
path on disk | same directory walk |
lint_sql |
raw SQL text + dialect |
none — dialect supplied explicitly |
fix_sql |
raw SQL text + dialect |
none — dialect supplied explicitly |
parse_sql |
raw SQL text + dialect |
none — dialect supplied explicitly |
list_dialects |
— | lists supported dialect names |
The *_file tools honor project config the same way the sqlfluff CLI does
(via FluffConfig.from_path, which walks up the directory tree looking for
.sqlfluff, pyproject.toml, setup.cfg, or tox.ini). The *_sql tools
are for content that hasn't been written to disk (e.g. streamed from an
editor buffer) and require you to pass dialect explicitly since there's no
file location to resolve config from.
Requirements
- Python 3.10+
- uv (recommended) or
pip
Install
git clone <this-repo-url>
cd sqlfluff-mcp-server
uv sync # or: pip install -e ".[dev]"
Run
uv run sqlfluff-mcp-server # or: sqlfluff-mcp-server, if installed on PATH
This starts the server over stdio, the standard transport for MCP clients that launch servers as a subprocess (Claude Desktop, Claude Code, etc.).
Registering with an MCP client
Example Claude Desktop / Claude Code config entry:
{
"mcpServers": {
"sqlfluff": {
"command": "uv",
"args": ["--directory", "/path/to/sqlfluff-mcp-server", "run", "sqlfluff-mcp-server"]
}
}
}
Development
uv sync --extra dev
uv run pytest
uv run ruff check .
Notes on dependencies
mcpis pinned to<2.0.0. The SDK's 2.0 line restructured the high-level server API (no moremcp.server.fastmcp.FastMCP); this project hasn't been migrated yet.sqlfluffis left unpinned above3.0.0— SQLFluff releases fairly often and this server only depends on its stableLinter/FluffConfigAPI.
License
MIT — see LICENSE.
Установка Sqlfluff Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/gswartwood/sqlfluff-mcp-serverFAQ
Sqlfluff Server MCP бесплатный?
Да, Sqlfluff Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Sqlfluff Server?
Нет, Sqlfluff Server работает без API-ключей и переменных окружения.
Sqlfluff Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Sqlfluff Server в Claude Desktop, Claude Code или Cursor?
Открой Sqlfluff Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
автор: wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
автор: madhurprashPostgres
Query your database in natural language
автор: AnthropicPostgreSQL
Read-only database access with schema inspection.
автор: modelcontextprotocolRedis
Interact with Redis key-value stores.
автор: modelcontextprotocolSQLite
Database interaction and business intelligence capabilities.
автор: modelcontextprotocolmxcp
Open-source framework for building enterprise-grade MCP servers using just YAML, SQL, and Python, with built-in auth, monitoring, ETL and policy enforcement.
автор: raw-labstadas-github/a2asearch-mcp
MCP server to search 4,800+ MCP servers, AI agents, CLI tools and agent skills. Install: npx -y a2asearch-mcp. Ask Claude: "Find MCP servers for database access
автор: tadas-githubjulien040/anyquery
Query more than 40 apps with one binary using SQL. It can also connect to your PostgreSQL, MySQL, or SQLite compatible database. Local-first and private by desi
автор: julien040drakonkat/wizzy-mcp-tmdb
A MCP server for The Movie Database API that enables AI assistants to search and retrieve movie, TV show, and person information.
автор: drakonkatCompare Sqlfluff Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
