Features
- ? Analyze and query table information using natural language.
- ? Support general LLMs (GPT,Qwen-Max), and [XiYanTable]
- ? Read table contents from CSV files
- "The
get_data
tool 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"
}
}
}
}