Skip to main content

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_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"
            }
        }
    }
}

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

xiyan_table_mcp_server-0.9.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xiyan_table_mcp_server-0.9.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

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

Hashes for xiyan_table_mcp_server-0.9.0.tar.gz
Algorithm Hash digest
SHA256 451846eb85ed37350ef5c35cbd0d8c72b57561c4ed5f786e2f27f24ea8566343
MD5 c370cd3306d50d8285885bddad44ecc7
BLAKE2b-256 404a237421075ed348ad93dda1ba8e96114c17effb462a37d4d4f0485de3545d

See more details on using hashes here.

File details

Details for the file xiyan_table_mcp_server-0.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for xiyan_table_mcp_server-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c14d5fdc4fe5f0dee198e4404a9f403958d73260a6039be0d9ab1535595e89d1
MD5 ffb131902e79b501ecac8b5f7f881db2
BLAKE2b-256 cd149b9037e15e68a854dbf1d77c256cc2e5ddc592a7ceeabe468639106542b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page