A Model Context Protocol (MCP) server that allows AI assistants to display table contents and perform natural language queries.
Project description
Features
- 🌐 Analyze and query table information using natural language.
- 🤖 Support general LLMs (GPT,Qwen-Max), and [XiYanTable]
- 🔧 Read table contents from CSV files
Tools Preview
- "The
get_datatool offers a natural language interface for accessing CSV files and uses language model to analyze and respond to queries."
QuickStart
Python 3.10+ is required. You can install the server through pip, and it will install the latest version:
pip install xiyan-table-mcp-server
After that you can directly run the server by:
python -m xiyan_table_mcp_server
But it does not provide any functions until you complete following config. You will get a yml file. After that you can run the server by:
env YML=path/to/yml python -m xiyan_table_mcp_server
Configuration
You need a YAML config file to configure the server. A default config file is provided in config_demo.yml which looks like this:
table:
path: ""
encoding: "utf-8"
preview_rows: 20
model:
model_name: "qwen-max-0125"
api_key: ""
api_base: "https://dashscope.aliyuncs.com/compatible-mode/v1"
temperature: 0.1
server:
name: "xiyan-table"
version: "0.1.0"
Launch
{
"mcpServers": {
"xiyan-table-mcp-server": {
"command": "python",
"args": [
"-m",
"xiyan_table_mcp_server"
],
"env": {
"YML": "PATH/TO/YML"
}
}
}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xiyan_table_mcp_server-0.9.0.tar.gz.
File metadata
- Download URL: xiyan_table_mcp_server-0.9.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
451846eb85ed37350ef5c35cbd0d8c72b57561c4ed5f786e2f27f24ea8566343
|
|
| MD5 |
c370cd3306d50d8285885bddad44ecc7
|
|
| BLAKE2b-256 |
404a237421075ed348ad93dda1ba8e96114c17effb462a37d4d4f0485de3545d
|
File details
Details for the file xiyan_table_mcp_server-0.9.0-py3-none-any.whl.
File metadata
- Download URL: xiyan_table_mcp_server-0.9.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c14d5fdc4fe5f0dee198e4404a9f403958d73260a6039be0d9ab1535595e89d1
|
|
| MD5 |
ffb131902e79b501ecac8b5f7f881db2
|
|
| BLAKE2b-256 |
cd149b9037e15e68a854dbf1d77c256cc2e5ddc592a7ceeabe468639106542b1
|