MySQL MCP Server

Сервер привязан к одной базе: она задана конфигурацией, и ни один инструмент не может уйти в другую. По умолчанию доступно только чтение.

Local serverstdioMIT

What is the MySQL MCP Server?

mcp-mysql-client is an MCP project maintained in the gistrec/mcp-mysql-client repository. The maintainer describes its purpose as “Сервер привязан к одной базе: она задана конфигурацией, и ни один инструмент не может уйти в другую. По умолчанию доступно только чтение”. Read the project documentation for the complete scope.

Installation

The documented npm package is mcp-mysql-client. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASS, MYSQL_DB, MYSQL_SSL. 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 MySQL MCP Server

{
  "mcpServers": {
    "mysql-myapp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-mysql-client"
      ],
      "env": {
        "MYSQL_HOST": "db.example.com",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "myapp_ro",
        "MYSQL_PASS": "пароль",
        "MYSQL_DB": "myapp",
        "MYSQL_SSL": "true"
      }
    }
  }
}

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

Configuration

VariableDescriptionRequired
MYSQL_HOSTDeclared in the maintainer’s client configuration.Check documentation
MYSQL_PORTDeclared in the maintainer’s client configuration.Check documentation
MYSQL_USERDeclared in the maintainer’s client configuration.Check documentation
MYSQL_PASSDeclared in the maintainer’s client configuration.Check documentation
MYSQL_DBDeclared in the maintainer’s client configuration.Check documentation
MYSQL_SSLDeclared in the maintainer’s client configuration.Check documentation