F
FocusSearch/focus_mcp_sql
Natural language to SQL, parsed from keywords
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
我们没有从该仓库取到可核对的安装命令,也没有公开的远端端点。这两样都没有时,我们不出配置——编一条出来比不给更糟。 各客户端的接法 →
- 来源明细
- 收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-11-05 · 最近见到 2026-11-14 · 共见到 10 次 · 被 10 个来源列出
- 评分构成
- 综合分 1,003 · 10 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-05;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
# FOCUS DATA MCP Server [中文]
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
A Model Context Protocol (MCP) server enables artificial intelligence assistants to convert natural language into SQL statements.
# There are already so many Text-to-SQL frameworks. Why do we still need another one?
In simple terms, focusmcpsql adopts a two-step SQL generation solution, which enables control over the hallucinations of LLM and truly builds the trust of non-technical users in the generated SQL results.
Below is the comparison table between focusmcpsql and others:
#### Comparison Analysis Table
Here’s a side-by-side comparison of focusmcpsql with other LLM-based frameworks:
| Feature | Traditional LLM Frameworks | focusmcpsql |
| Generation Process | Black box, direct SQL generation | Transparent, two-step (keywords + SQL) |
| Hallucination Risk | High, depends on model quality | Low, controllable (keyword verification) |
| Speed | Slow, relies on large model inference | Fast, deterministic keyword-to-SQL |
| Cost | High, requires advanced models | Low, reduces reliance on large models |
| Non-Technical User Friendliness | Low, hard to verify results | High, easy keyword checking |
## Features
-Initialize the model
-Convert natural language to SQL statements
## Prerequisites
jdk 23 or higher. Download jdk
gradle 8.12 or higher. Download gradle
register Datafocus to obtain bearer token:
1. Register an account in Datafocus
2. Create an application
3. Enter the application
4. Admin -> Interface authentication -> Bearer Token -> New Bearer Token
## Installation
1. Clone this repository:
bash
git clone https://github.com/FocusSearch/focusmcpsql.git
cd focusmcpsql
2. Build the server:
bash
gradle clean
gradle bootJar
The jar path: build/libs/focusmcpsql.jar
## MCP Configuration
Add the server to your MCP settings file:
json
"mcpServers": {
"focusmcpdata": {
"command": "java",
"args": [
"-jar",
"path/to/focusmcpsql/focusmcpsql.jar"
],
"autoApprove": [
"gptText2sqlStart",
"gptText2sqlChat"
## Available Tools
### 1. gptText2sqlStart
initial model.
Parameters:
model (required): table model
bearer (required): bearer token
language (optional): language ['english','chinese']
Example:
json
"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="
model 参数说明:
|名称|位置|类型|必选|说明|
| model|body|object| 是 |none|
|» type|body|string| 是 |数据库类型|
|» version|body|string| 是 |数据库版本|
|» tables|body|[object]| 是 |表结构列表|
|»» tableDisplayName|body|string| 否 |表显示名|
# There are already so many Text-to-SQL frameworks. Why do we still need another one?
In simple terms, focusmcpsql adopts a two-step SQL generation solution, which enables control over the hallucinations of LLM and truly builds the trust of non-technical users in the generated SQL results.
Below is the comparison table between focusmcpsql and others:
#### Comparison Analysis Table
Here’s a side-by-side comparison of focusmcpsql with other LLM-based frameworks:
| Feature | Traditional LLM Frameworks | focusmcpsql |
| Generation Process | Black box, direct SQL generation | Transparent, two-step (keywords + SQL) |
| Hallucination Risk | High, depends on model quality | Low, controllable (keyword verification) |
| Speed | Slow, relies on large model inference | Fast, deterministic keyword-to-SQL |
| Cost | High, requires advanced models | Low, reduces reliance on large models |
| Non-Technical User Friendliness | Low, hard to verify results | High, easy keyword checking |
## Features
-Initialize the model
-Convert natural language to SQL statements
## Prerequisites
jdk 23 or higher. Download jdk
gradle 8.12 or higher. Download gradle
register Datafocus to obtain bearer token:
1. Register an account in Datafocus
2. Create an application
3. Enter the application
4. Admin -> Interface authentication -> Bearer Token -> New Bearer Token
## Installation
1. Clone this repository:
bash
git clone https://github.com/FocusSearch/focusmcpsql.git
cd focusmcpsql
2. Build the server:
bash
gradle clean
gradle bootJar
The jar path: build/libs/focusmcpsql.jar
## MCP Configuration
Add the server to your MCP settings file:
json
"mcpServers": {
"focusmcpdata": {
"command": "java",
"args": [
"-jar",
"path/to/focusmcpsql/focusmcpsql.jar"
],
"autoApprove": [
"gptText2sqlStart",
"gptText2sqlChat"
## Available Tools
### 1. gptText2sqlStart
initial model.
Parameters:
model (required): table model
bearer (required): bearer token
language (optional): language ['english','chinese']
Example:
json
"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="
model 参数说明:
|名称|位置|类型|必选|说明|
| model|body|object| 是 |none|
|» type|body|string| 是 |数据库类型|
|» version|body|string| 是 |数据库版本|
|» tables|body|[object]| 是 |表结构列表|
|»» tableDisplayName|body|string| 否 |表显示名|
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/focussearch-focus-mcp-sql/)
- 来源
- awesome · https://github.com/FocusSearch/focus_mcp_sql
- 按领域浏览
- MCP 服务
- 收录来源
- 10 个独立来源
- 收录于
- 今天
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。