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.7.0.tar.gz (2.1 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.7.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file xiyan_table_mcp_server-0.7.0.tar.gz.

File metadata

  • Download URL: xiyan_table_mcp_server-0.7.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.9

File hashes

Hashes for xiyan_table_mcp_server-0.7.0.tar.gz
Algorithm Hash digest
SHA256 a2f46895da197988dcae745cd52446cbedb8af4fff9b626c0213d1665200ae86
MD5 f325429deb303d26306a36f1a04f1e9e
BLAKE2b-256 941fe6f9bb3cdd2ff034436c23b2c727c78d0d51dbf7a54b1de319f2368e9ba5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xiyan_table_mcp_server-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 87f01422de865f7ae584c223a524b7c1adc750a101b77d723a3c93be68a1335a
MD5 ce0133b199cd86cc67daa382ae61aec6
BLAKE2b-256 9d66898915c416e144289eb3b1673098a085644ef61453199cf3f9c7bd6fdd28

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