{"id":29113860,"url":"https://github.com/focussearch/focus_mcp_data","last_synced_at":"2025-06-29T11:07:50.255Z","repository":{"id":278353840,"uuid":"935344557","full_name":"FocusSearch/focus_mcp_data","owner":"FocusSearch","description":"The intelligent data query plugin under DataFocus that supports multi-round conversations provides plug-and-play ChatBI capabilities. ","archived":false,"fork":false,"pushed_at":"2025-04-14T07:00:39.000Z","size":645,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-17T13:09:31.456Z","etag":null,"topics":["nl2sql","text2sql"],"latest_commit_sha":null,"homepage":"https://www.datafocus.ai  ","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FocusSearch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-19T09:45:33.000Z","updated_at":"2025-06-12T07:17:58.000Z","dependencies_parsed_at":"2025-04-14T08:21:20.932Z","dependency_job_id":"dc2a03db-142b-446a-8b1e-b70bb3fedb7a","html_url":"https://github.com/FocusSearch/focus_mcp_data","commit_stats":null,"previous_names":["focussearch/focus_mcp_data"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FocusSearch/focus_mcp_data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FocusSearch%2Ffocus_mcp_data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FocusSearch%2Ffocus_mcp_data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FocusSearch%2Ffocus_mcp_data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FocusSearch%2Ffocus_mcp_data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FocusSearch","download_url":"https://codeload.github.com/FocusSearch/focus_mcp_data/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FocusSearch%2Ffocus_mcp_data/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262581388,"owners_count":23331913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nl2sql","text2sql"],"created_at":"2025-06-29T11:05:53.486Z","updated_at":"2025-06-29T11:07:50.225Z","avatar_url":"https://github.com/FocusSearch.png","language":"Java","readme":"# FOCUS DATA MCP Server [[中文](./README_CN.md)]\n\nA Model Context Protocol (MCP) server enables artificial intelligence assistants to directly query data results. Users can obtain data results from DataFocus using natural language.\n\n## Features\n\n-  Register on DataFocus to open an application space, and import (directly connect to) the data tables to be analyzed.\n- Select Datafocus data table initialization dialogue\n- Natural language data acquisition results\n\n## Prerequisites\n\n- jdk 23 or higher. Download [jdk](https://www.oracle.com/java/technologies/downloads/)\n- gradle 8.12 or higher. Download [gradle](https://gradle.org/install/)\n- register [Datafocus](https://www.datafocus.ai/) to obtain bearer token:\n  1. Register an account in [Datafocus](https://www.datafocus.ai/)\n  2. Create an application\n    3. Enter the application\n    4. Admin -\u003e Interface authentication -\u003e Bearer Token -\u003e New Bearer Token\n       ![bearer token](bearer_token.png)\n  \n## Installation\n\n1. Clone this repository:\n\n```bash\ngit clone https://github.com/FocusSearch/focus_mcp_data.git\ncd focus_mcp_data\n```\n\n2. Build the server:\n\n```bash\ngradle clean\ngradle bootJar\n\nThe jar path: build/libs/focus_mcp_data.jar\n```\n\n## MCP Configuration\n\nAdd the server to your MCP settings file (usually located\nat `~/AppData/Roaming/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"focus_mcp_data\": {\n      \"command\": \"java\",\n      \"args\": [\n        \"-jar\",\n        \"path/to/focus_mcp_data/focus_mcp_data.jar\"\n      ],\n      \"autoApprove\": [\n        \"tableList\",\n        \"gptText2DataInit\",\n        \"gptText2DataData\"\n      ]\n    }\n  }\n}\n```\n\n## Available Tools\n\n### 1. tableList\n\nGet table list in datafocus.\n\n**Parameters:**\n\n- `name` (optional): table name to filter\n- `bearer` (required): bearer token\n\n**Example:**\n\n```json\n{\n  \"name\": \"test\",\n  \"bearer\": \"ZTllYzAzZjM2YzA3NDA0ZGE3ZjguNDJhNDjNGU4NzkyYjY1OTY0YzUxYWU5NmU=\"\n}\n```\n\n### 2. gptText2DataInit\n\nInitialize dialogue.\n\n**Parameters:**\n\n- `names` (required): selected table names\n- `bearer` (required): bearer token\n- `language` (optional): language ['english','chinese']\n\n**Example:**\n\n```json\n{\n  \"names\": [\n    \"test1\",\n    \"test2\"\n  ],\n  \"bearer\": \"ZTllYzAzZjM2YzA3NDA0ZGE3ZjguNDJhNDjNGU4NzkyYjY1OTY0YzUxYWU5NmU=\"\n}\n```\n\n### 3. gptText2DataData\n\nQuery data results.\n\n**Parameters:**\n\n- `chatId` (required): chat id\n- `input` (required): Natural language\n- `bearer` (required): bearer token\n\n**Example:**\n\n```json\n{\n  \"chatId\": \"03975af5de4b4562938a985403f206d4\",\n  \"input\": \"max(age)\",\n  \"bearer\": \"ZTllYzAzZjM2YzA3NDA0ZGE3ZjguNDJhNDjNGU4NzkyYjY1OTY0YzUxYWU5NmU=\"\n}\n```\n\n## Response Format\n\nAll tools return responses in the following format:\n\n```json\n{\n  \"errCode\": 0,\n  \"exception\": \"\",\n  \"msgParams\": null,\n  \"promptMsg\": null,\n  \"success\": true,\n  \"data\": {\n  }\n}\n```\n\n## Visual Studio Code Cline Sample\n\n1. vsCode install cline plugin\n2. mcp server config\n   ![config mcp server](./mcp_server_config.png)\n3. use\n   1. get table list\n      ![get table list1](./focus_mcp_data_table_1.png)\n      ![get table list2](./focus_mcp_data_table_2.png)\n   2. Initialize dialogue\n      ![Initialize dialogue](./focus_mcp_data_init.png)\n   3. query: what is the sum salary\n     ![query](./focus_mcp_data_data.png)\n\n## Contact：\n[https://discord.gg/mFa3yeq9](https://discord.gg/AVufPnpaad )\n![Datafocus](./wechat-qrcode.png)\n","funding_links":[],"categories":["Data Platforms"],"sub_categories":["How to Submit"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffocussearch%2Ffocus_mcp_data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffocussearch%2Ffocus_mcp_data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffocussearch%2Ffocus_mcp_data/lists"}