XiYan
Created 6 months ago
XiYan MCP Server enables natural language queries to databases powered by XiYan-SQL.
development
location
documentation
public
MCP
text-to-sql
What is XiYan?
🗄️ An MCP server that supports fetching data from a database using natural language queries, powered by XiyanSQL as the text-to-SQL LLM.
Documentation
Table of Contents
- Features
- Preview
- Architecture
- Best Practice
- Tools Preview
- Installation
- Configuration
- Launch
- It Does Not Work
Features
- 🌐 Fetch data by natural language through XiYanSQL
- 🤖 Support general LLMs (GPT,qwenmax), Text-to-SQL SOTA model
- 💻 Support pure local mode (high security!)
- 📝 Support MySQL and PostgreSQL.
- 🖱️ List available tables as resources
- 🔧 Read table contents
Installation
To install the server, use the following command:
pip install xiyan-mcp-server
Configuration
You need a YAML config file to configure the server. A default config file is provided in config_demo.yml.
Launch
To launch the server, run:
YML=path/to/yml python -m xiyan_mcp_server
Server Config
{
"mcpServers": {
"xiyan-server": {
"command": "npx",
"args": [
"xiyan"
]
}
}
}
Links & Status
Project Info
Hosted
Featured
Created At:
May 23, 2025
Updated At:
Aug 07, 2025
Author:
XGenerationLab
Category:
community
License:
MIT License
Tags:
development
location
documentation