MCP.so
登录

Focus MCP Sql

@FocusSearch

基本信息

分类

数据库

许可证

Apache-2.0

传输方式

stdio

作者

FocusSearch

提交者

王韬

关于 Focus MCP Sql

A NL2SQL plugin based on FocusSearch keyword parsing, offering greater accuracy, higher speed, and more reliability!

#nl2sql#sql-generator#focussearch

Focus MCP Sql 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Focus MCP Sql 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Focus_mcp_sql?

Focus_mcp_sql is a Model Context Protocol (MCP) server that enables AI assistants to convert natural language into SQL statements. It employs a transparent two-step generation process (keywords first, then SQL) to reduce LLM hallucinations and build trust in the generated SQL results.

How to use Focus_mcp_sql?

Clone the repository, build the server with Gradle (requires JDK 23+ and Gradle 8.12+), then add the server to your MCP settings file with the java -jar command. After configuration, use the gptText2sqlStart tool to initialize the model with table schema (and a Datafocus bearer token), then use gptText2sqlChat to convert natural language queries into SQL.

Key features of Focus_mcp_sql

  • Transparent two-step generation: keywords then SQL
  • Low hallucination risk through keyword verification
  • Fast, deterministic keyword-to-SQL conversion
  • Low cost by reducing reliance on large models
  • Non-technical user friendly with easy keyword checking
  • Requires only a Datafocus bearer token for authentication

Use cases of Focus_mcp_sql

  • Non-technical users querying databases via natural language
  • Scenarios where SQL accuracy and transparency are critical
  • Reducing operational costs by minimizing LLM inference usage
  • Providing a verifiable SQL generation pipeline for business analysts

常见问题

1

How does Focus_mcp_sql reduce hallucinations?

It uses a two-step approach: first generates keywords from the natural language query, then maps those keywords deterministically to SQL. This keyword verification step makes the process transparent and controllable, lowering hallucination risk.

2

What are the prerequisites for running Focus_mcp_sql?

You need JDK 23 or higher, Gradle 8.12 or higher, and a registered Datafocus account to obtain a bearer token for authentication.

3

Where does my data live during SQL generation?

The table schema and bearer token are sent to the server as parameters in the `gptText2sqlStart` tool. The actual database is not accessed directly; only the metadata provided by the user is used.

4

What transport does Focus_mcp_sql use?

The server communicates over stdio via the MCP protocol, as configured in the MCP settings file with a `java -jar` command.

5

What limits should I be aware of?

The server relies on the Datafocus API for token authentication and keyword generation. It is designed for structured table schemas and does not handle unstructured data or complex joins without explicit relation definitions.

评论

数据库 分类下的更多 MCP 服务器