Skip to main content
Glama

focus_mcp_sql

by FocusSearch

FOCUS DATA MCP サーバー [中文]

モデル コンテキスト プロトコル (MCP) サーバーにより、人工知能アシスタントは自然言語を SQL ステートメントに変換できます。

Text-to-SQLフレームワークはすでに数多く存在します。なぜさらにもう1つ必要なのでしょうか?

簡単に言えば、focus_mcp_sql は 2 段階の SQL 生成ソリューションを採用しており、これにより LLM の幻覚を制御し、生成された SQL 結果に対する非技術者ユーザーの信頼を真に構築できます。

以下は focus_mcp_sql とその他の比較表です。

比較分析表

以下は focus_mcp_sql と他の LLM ベースのフレームワークとの比較です。

特徴

従来のLLMフレームワーク

focus_mcp_sql

生成プロセス

ブラックボックス、直接SQL生成

透過的な2段階(キーワード + SQL)

幻覚リスク

高い(モデルの品質により異なる)

低い、制御可能(キーワード検証)

スピード

遅く、大規模なモデル推論に依存

高速で決定論的なキーワードからSQLへの変換

料金

高、高度なモデルが必要

低い、大規模モデルへの依存を減らす

非技術的なユーザーフレンドリーさ

結果が低く、検証が難しい

高度で簡単なキーワードチェック

特徴

- モデルを初期化する - 自然言語をSQL文に変換する

前提条件

  • jdk 23以上。jdkをダウンロード

  • gradle 8.12以降。gradleダウンロード

  • ベアラートークンを取得するには、 Datafocusを登録します。

    1. Datafocusにアカウントを登録する

    2. アプリケーションを作成する

    3. アプリケーションを入力してください

    4. 管理 -> インターフェース認証 -> ベアラートークン -> 新しいベアラートークン無記名トークン

インストール

  1. このリポジトリをクローンします:

git clone https://github.com/FocusSearch/focus_mcp_sql.git cd focus_mcp_sql
  1. サーバーを構築します。

gradle clean gradle bootJar The jar path: build/libs/focus_mcp_sql.jar

MCP構成

サーバーを MCP 設定ファイルに追加します。

{ "mcpServers": { "focus_mcp_data": { "command": "java", "args": [ "-jar", "path/to/focus_mcp_sql/focus_mcp_sql.jar" ], "autoApprove": [ "gptText2sqlStart", "gptText2sqlChat" ] } } }

利用可能なツール

1. gptText2sqlStart

初期モデル。

パラメータ:

  • model (必須): テーブルモデル

  • bearer (必須):ベアラートークン

  • language (オプション):言語 ['english','chinese']

例:

{ "model": { "tables": [ { "columns": [ { "columnDisplayName": "name", "dataType": "string", "aggregation": "", "columnName": "name" }, { "columnDisplayName": "address", "dataType": "string", "aggregation": "", "columnName": "address" }, { "columnDisplayName": "age", "dataType": "int", "aggregation": "SUM", "columnName": "age" }, { "columnDisplayName": "date", "dataType": "timestamp", "aggregation": "", "columnName": "date" } ], "tableDisplayName": "test", "tableName": "test" } ], "relations": [ ], "type": "mysql", "version": "8.0" }, "bearer": "ZTllYzAzZjM2YzA3NDA0ZGE3ZjguNDJhNDjNGU4NzkyYjY1OTY0YzUxYWU5NmU=" }

モデルパラメータの説明:

名称

位置

種類

必ず選択

説明

モデル

物体

なし

" タイプ

データストアタイプ

» バージョン

データバンク版

» テーブル

[物体]

テーブル構造リスト

»» テーブル表示名

表の表示名

»» テーブル名

表元の開始名

»» 列

[物体]

表一覧表

»»» 列表示名

列表示名

»»» 列名

列原始名

»»» データ型

列データタイプ

»»» 集約

列結合方式

» 関係

[物体]

表とシリーズ一覧

»» 条件

[物体]

結合条件

»»» dstColName

寸法表关联列原始名

»»» ソース列名

事実 表の関連原文

»» ディメンションテーブル

ディメンション表元名

»» ファクトテーブル

事実 表原名

»» 結合タイプ

結合されたタイプ

2. gptText2sqlチャット

自然言語を SQL に変換します。

パラメータ:

  • chatId (必須): チャットID

  • input (必須): 自然言語

  • bearer (必須):ベアラートークン

例:

{ "chatId": "03975af5de4b4562938a985403f206d4", "input": "what is the max age", "bearer": "ZTllYzAzZjM2YzA3NDA0ZGE3ZjguNDJhNDjNGU4NzkyYjY1OTY0YzUxYWU5NmU=" }

応答フォーマット

すべてのツールは次の形式で応答を返します。

{ "errCode": 0, "exception": "", "msgParams": null, "promptMsg": null, "success": true, "data": { } }

Visual Studio Code Cline サンプル

  1. vsCode で cline プラグインをインストールする

  2. mcp サーバー構成MCPサーバーの設定

  3. 使用

    1. 初期モデル初期モデル1初期モデル2

    2. 譲渡:最大年齢は何歳ですかチャット

接触:

https://discord.gg/mFa3yeq9データフォーカス

-
security - not tested
-
license - not tested
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

FocusSearch キーワード解析に基づいた NL2SQL プラグイン。より高い精度、より高速な速度、より高い信頼性を提供します。

  1. Text-to-SQLフレームワークはすでに数多く存在します。なぜさらにもう1つ必要なのでしょうか?
    1. 比較分析表
    2. 特徴
    3. 前提条件
    4. インストール
    5. MCP構成
    6. 利用可能なツール
    7. 応答フォーマット
    8. Visual Studio Code Cline サンプル
    9. 接触:

Related MCP Servers

  • A
    security
    -
    license
    A
    quality
    Enables querying documents through a Langflow backend using natural language questions, providing an interface to interact with Langflow document Q\&A flows.
    Last updated -
    1
    14
    MIT License
    • Apple
  • A
    security
    -
    license
    A
    quality
    A lightweight toolkit that enables Claude to search Twitter with natural language queries and display results based on user intent, supporting features like tweet filtering, pagination, and flexible output formatting.
    Last updated -
    1
    11
  • -
    security
    -
    license
    -
    quality
    Enables dynamic database querying through natural language questions using LLM-powered parameter extraction and template-based SQL generation. Supports flexible configuration for various domains and databases with automated response formatting.
    Last updated -
  • -
    security
    -
    license
    -
    quality
    Enables natural language database operations and semantic document search through SQLite and vector database integration. Converts plain English instructions into SQL queries and provides RAG capabilities for uploaded documents.
    Last updated -
    • Apple

View all related MCP servers

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/FocusSearch/focus_mcp_sql'

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