通用数据库 MCP 服务器

这是一个通用的数据库 MCP (Model Context Protocol) 服务器,支持连接到各种关系型数据库系统并提供数据库结构信息和执行只读 SQL 查询。

Local serverstdio

What is the 通用数据库 MCP 服务器 MCP Server?

通用数据库 MCP 服务器 is an MCP project maintained in the xiaoshi7915/universal-db-mcp-server repository. The maintainer describes its purpose as “这是一个通用的数据库 MCP (Model Context Protocol) 服务器,支持连接到各种关系型数据库系统并提供数据库结构信息和执行只读 SQL 查询。”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using /path/to/start.sh. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares DB_TYPE. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

How to install the 通用数据库 MCP 服务器 MCP Server

{
  "mcpServers": {
    "db": {
      "command": "/path/to/start.sh",
      "args": [
        "--db-host",
        "localhost",
        "--db-user",
        "root",
        "--db-password",
        "password",
        "--db-name",
        "mydatabase"
      ],
      "env": {
        "DB_TYPE": "mysql"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
DB_TYPEDeclared in the maintainer’s client configuration.Check documentation