datafocus.com
datafocus.com logo

Datafocus

Interface with Datafocus data tables via natural language.

Created byApr 23, 2025

FOCUS DATA MCP Server [[ ](./README_CN.md)]

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.

Features

  • Register on DataFocus to open an application space, and import (directly connect to) the data tables to be analyzed.
  • Select Datafocus data table initialization dialogue
  • Natural language data acquisition results

Prerequisites

  • jdk 23 or higher. Download [jdk](https://www.oracle.com/java/technologies/downloads/)
  • gradle 8.12 or higher. Download [gradle](https://gradle.org/install/)
  • register [Datafocus](https://www.datafocus.ai/) to obtain bearer token: 1. Register an account in [Datafocus](https://www.datafocus.ai/) 2. Create an application 3. Enter the application 4. Admin -> Interface authentication -> Bearer Token -> New Bearer Token ![bearer token](bearer_token.png)

Installation

  1. Clone this repository:
  1. Build the server:

MCP Configuration

Add the server to your MCP settings file (usually located at `~/AppData/Roaming/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`):

Available Tools

1. tableList

Get table list in datafocus.
**Parameters:**
  • `name` (optional): table name to filter
  • `bearer` (required): bearer token
**Example:**

2. gptText2DataInit

Initialize dialogue.
**Parameters:**
  • `names` (required): selected table names
  • `bearer` (required): bearer token
  • `language` (optional): language ['english','chinese']
**Example:**

3. gptText2DataData

Query data results.
**Parameters:**
  • `chatId` (required): chat id
  • `input` (required): Natural language
  • `bearer` (required): bearer token
**Example:**

Response Format

All tools return responses in the following format:

Visual Studio Code Cline Sample

  1. vsCode install cline plugin
  1. mcp server config ![config mcp server](./mcp_server_config.png)
  1. use 1. get table list ![get table list1](./focus_mcp_data_table_1.png) ![get table list2](./focus_mcp_data_table_2.png) 2. Initialize dialogue ![Initialize dialogue](./focus_mcp_data_init.png) 3. query: what is the sum salary ![query](./focus_mcp_data_data.png)

Contact

[https://discord.gg/mFa3yeq9](https://discord.gg/AVufPnpaad ) ![Datafocus](./wechat-qrcode.png)