A Model Context Protocol (MCP) server enables artificial intelligence assistants to directly query data results. Users can obtain data results from DataFocus using natural language.
git clone https://github.com/FocusSearch/focus_mcp_data.git
cd focus_mcp_data
gradle clean
gradle bootJar
The jar path: build/libs/focus_mcp_data.jar
Add the server to your MCP settings file (usually located
at ~/AppData/Roaming/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
):
{
"mcpServers": {
"focus_mcp_data": {
"command": "java",
"args": [
"-jar",
"path/to/focus_mcp_data/focus_mcp_data.jar"
],
"autoApprove": [
"tableList",
"gptText2DataInit",
"gptText2DataData"
]
}
}
}
Get table list in datafocus.
Parameters:
name
(optional): table name to filterbearer
(required): bearer tokenExample:
{
"name": "test",
"bearer": "ZTllYzAzZjM2YzA3NDA0ZGE3ZjguNDJhNDjNGU4NzkyYjY1OTY0YzUxYWU5NmU="
}
Initialize dialogue.
Parameters:
names
(required): selected table namesbearer
(required): bearer tokenlanguage
(optional): language ['english','chinese']Example:
{
"names": [
"test1",
"test2"
],
"bearer": "ZTllYzAzZjM2YzA3NDA0ZGE3ZjguNDJhNDjNGU4NzkyYjY1OTY0YzUxYWU5NmU="
}
Query data results.
Parameters:
chatId
(required): chat idinput
(required): Natural languagebearer
(required): bearer tokenExample:
{
"chatId": "03975af5de4b4562938a985403f206d4",
"input": "max(age)",
"bearer": "ZTllYzAzZjM2YzA3NDA0ZGE3ZjguNDJhNDjNGU4NzkyYjY1OTY0YzUxYWU5NmU="
}
All tools return responses in the following format:
{
"errCode": 0,
"exception": "",
"msgParams": null,
"promptMsg": null,
"success": true,
"data": {
}
}
Seamless access to top MCP servers powering the future of AI integration.