mysql-mcp MCP Server

An MCP server implementation that integrates with MySQL databases, providing secure database access capabilities for LLMs.

Local serverstdioMIT

What is the mysql-mcp Server?

mysql-mcp is an MCP project maintained in the kevinwatt/mysql-mcp repository. The maintainer describes its purpose as “An MCP server implementation that integrates with MySQL databases, providing secure database access capabilities for LLMs”. Read the project documentation for the complete scope.

Installation

The documented npm package is @kevinwatt/mysql-mcp. 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. 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.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
Inputstable (string): Table name to describe
LimitsMaximum query length: 4096 characters
paramsarray, optional): Parameters for the SQL statement
FeaturesReturns affected rows count

How to install the mysql-mcp Server

{
  "mcpServers": {
    "mysql": {
      "command": "npx",
      "args": [
        "-y",
        "@kevinwatt/mysql-mcp"
      ],
      "env": {
        "MYSQL_HOST": "127.0.0.1",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "root",
        "MYSQL_PASS": "",
        "MYSQL_DB": "your_database"
      }
    }
  }
}

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