OlympHill
M

mcp-server-sql-analyzerMCP 服务器 - SQL静态分析器

(0)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年7月

概览

SQL 分析器 MCP 服务器提供了分析和处理 SQL 查询的工具。它帮助 SQL 语法验证和代码检查、将查询转换为不同 SQL 方言、提取和分析表和列引用和依赖项、确定列使用情况和关系、发现支持的 SQL 方言。

主要功能

  • SQL 语法验证和代码检查
  • SQL 方言转换
  • 表和列引用分析
  • 支持的SQL 方言发现
  • 与 Claude 类型的 AI 助手集成

价格

模型
Free
评分
暂无评价

使用场景

SQL 查证工作

在向用户推荐 SQL 查询前验证 SQL 语法,确保准确且方言适当的查询。

方言转换

在不同数据库系统之间转换 SQL 查询,同时保留查询逻辑。

优点 & 缺点

优点

  • 提供 SQL 语法验证和代码检查
  • 支持转换为不同 SQL 方言
  • 分析表和列引用
  • 发现支持的SQL 方言
  • 增强 AI 助手对于 SQL 相关任务的能力

缺点

  • 有限的可扩展性和性能信息
  • 依赖于 SQLGlot 库
  • 可能需要配置特定用例

评测

登录以留下评测。

暂无评测。来当第一个吧!

问答

What are the main limitations when integrating mcp-server-sql-analyzer with other systems?

Limitations include unclear scalability and performance details, dependence on the SQLGlot library, and the need for configuration for specific use cases such as custom dialects or large query sets.

Asked by Nadia Petrova · Nov 22, 2025

Can the tool convert queries between different database dialects? Which dialects are supported?

Yes, the transpile_sql function can convert SQL from a source dialect to a target dialect (e.g., MySQL to PostgreSQL). The tool discovers supported dialects internally, but the exact list depends on SQLGlot’s capabilities at runtime.

Asked by Daniel Schmidt · Nov 18, 2025

How does mcp-server-sql-analyzer validate SQL syntax and what format does it return errors?

The server uses the SQLGlot library to lint queries via the lint_sql tool. It returns a ParseResult JSON with is_valid, a message string, and an optional position object indicating line and column of any syntax errors.

Asked by Bruno Kaufmann · Sep 30, 2025

提问

服务配缩器 的替代品