MCP Directory

DBHub vs XiYan MCP Server

A side-by-side comparison of two Databases servers — tools, transport, auth, maintenance, and copy-paste config for each.

 DBHub

Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, and SQLite.

Unverified
stdio (local)
No auth
TypeScript
XiYan MCP Server

Natural-language queries to MySQL/PostgreSQL via XiYanSQL text-to-SQL

Unverified
stdio (local)
API key
Python
CategoryDatabasesDatabases
LanguageTypeScriptPython
Transportstdio (local)stdio (local)
AuthNoneAPI key
GitHub stars3.0k236
Last commit1 month ago5 months ago
Verified
Actively maintained
Installnpx @bytebase/dbhub@latest --transport stdio --dsn "postgres://user:password@localhost:5432/dbname"pip install xiyan-mcp-server
RepoOpen Open

Verdict

Pick DBHub if you prefer the more popular, battle-tested option, and you want zero-setup with no API key.

Pick XiYan MCP Server if you want the official, vendor-maintained server.

Add DBHub

Install / run
npx @bytebase/dbhub@latest --transport stdio --dsn "postgres://user:password@localhost:5432/dbname"

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "dbhub": {
      "command": "npx",
      "args": [
        "@bytebase/dbhub@latest",
        "--transport",
        "stdio",
        "--dsn",
        "postgres://user:password@localhost:5432/dbname"
      ]
    }
  }
}

Add XiYan MCP Server

Install / run
pip install xiyan-mcp-server

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "xiyan-mcp-server": {
      "command": "/xxx/python",
      "args": [
        "-m",
        "xiyan_mcp_server"
      ],
      "env": {
        "YML": "PATH/TO/YML"
      }
    }
  }
}

FAQ

DBHub or XiYan MCP Server — which is better?

Pick DBHub if you prefer the more popular, battle-tested option, and you want zero-setup with no API key. Pick XiYan MCP Server if you want the official, vendor-maintained server.

Can I use both DBHub and XiYan MCP Server?

Yes — MCP clients let you enable multiple servers at once. Add both configs to your client's mcpServers and use whichever tool fits the task.

Do DBHub and XiYan MCP Server work with Claude, Cursor and Windsurf?

Both do. Copy the per-client config below into Claude Desktop, Cursor, or Windsurf.