Xiyan MCP Server

<b>A Model Context Protocol (MCP) server that enables natural language queries to databases</b>

Local serverstdioPython

What is the Xiyan MCP server?

A Model Context Protocol (MCP) server that enables natural language queries to databases. The xiyan mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 8 defined tools rather than through you.

What it actually does

  • 🌐 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

Its toolset

Everything the assistant can do here goes through one of these:

  • Architecture — There are two ways to integrate this server in your project, as shown below: The left is remote mode, which is the default mode. It requires an API
  • STDIO — For stdio protocol, you can set just like this: yaml mcp: transport: "stdio"
  • MySQL — The MySQL tool exposed by this server
  • PostgreSQL — Step 1: Install Python packages bash pip install psycopg2 Step 2: prepare the config.yml like this: yaml database: dialect: "postgresql" host
  • Cline — The Cline tool exposed by this server
  • Goose — If you use stdio, add following command in the config, ref Goose config example shell env YML=path/to/yml /xxx/python -m xiyan_mcp_server Otherwise
  • Cursor — The Cursor tool exposed by this server
  • Witsy — Add following in command: shell /xxx/python -m xiyan_mcp_server Add an env: key is YML and value is the path to your yml file. Ref Witsy config

Adding it to your client

The server ships on PyPI as xiyan-mcp-server, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

When to reach for it

Among the database access options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Xiyan's toolset — Architecture, STDIO, MySQL and 5 more — is a fair guide to whether it matches your workflow. It is maintained by XGenerationLab; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Xiyan's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the xiyan mcp server does with a few real requests.

Available tools

ToolWhat it does
ArchitectureThere are two ways to integrate this server in your project, as shown below: The left is remote mode, which is the default mode. It requires an API key to access the xiyanSQL-qwencoder-32B model from service provider (se
STDIOFor stdio protocol, you can set just like this: yaml mcp: transport: "stdio"
MySQLThe MySQL tool exposed by this server.
PostgreSQLStep 1: Install Python packages bash pip install psycopg2 Step 2: prepare the config.yml like this: yaml database: dialect: "postgresql" host: "localhost" port: 5432 user: "" password: "" database: ""
ClineThe Cline tool exposed by this server.
GooseIf you use stdio, add following command in the config, ref Goose config example shell env YML=path/to/yml /xxx/python -m xiyan_mcp_server Otherwise, if you use sse, change Type to SSE and set the endpoint to http://127.0
CursorThe Cursor tool exposed by this server.
WitsyAdd following in command: shell /xxx/python -m xiyan_mcp_server Add an env: key is YML and value is the path to your yml file. Ref Witsy config example

How to install the Xiyan MCP server

For `sse`:
```json
{
  "mcpServers": {
    "xiyan_mcp_server_1": {
      "url": "http://localhost:8000/sse"
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use Xiyan to Architecture.
  • Use Xiyan to STDIO.
  • Use Xiyan to MySQL.

Frequently asked questions

It connects Xiyan to MCP-compatible AI assistants such as Claude and Cursor, exposing 8 tools (Architecture, STDIO, MySQL, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Xiyan directly.