You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-17Lines changed: 11 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,8 @@
1
1
2
2
# XiYan MCP Server
3
3
4
-
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases. This server allows AI assistants to list tables, read data, and execute SQL queries through a controlled interface, making database exploration and analysis safer and more structured.
4
+
A Model Context Protocol (MCP) server that enables natural language queries to MySQL databases, power by XiYanSQL as text-to-sql technique.
5
+
5
6
6
7
## Features
7
8
- Fetch data by natural language throught XiYanSQL (https://github.com/XGenerationLab/XiYan-SQL)
@@ -19,16 +20,16 @@ pip install xiyan-mcp-server
19
20
Set the following environment variables:
20
21
21
22
```bash
22
-
MYSQL_HOST= # Database host
23
-
MYSQL_PORT= # Optional: Database port (defaults to 3306 if not specified)
24
-
MYSQL_USER=
25
-
MYSQL_PASSWORD=
26
-
MYSQL_DATABASE=
27
-
MODEL_NAME=
28
-
MODEL_KEY=
29
-
MODEL_URL=
23
+
YML= # yml config file path
30
24
```
31
25
26
+
see config_demo.yml for example
27
+
28
+
## Models
29
+
30
+
Any LLMs are supported as long as they support the `chat` API.
31
+
We recommend using xiyansql-qwencoder-32b (https://github.com/XGenerationLab/XiYanSQL-QwenCoder) for best performance.
32
+
32
33
## Usage
33
34
34
35
### With Claude Desktop
@@ -47,14 +48,7 @@ Add this to your `claude_desktop_config.json`:
0 commit comments