mysql-mcp-pro MCP Server

🇺🇸 English version available here

Local serverstdio

What is the mysql-mcp-pro MCP Server?

mysql-mcp-pro is an MCP project maintained in the ccct173/mysql-mcp-pro repository. The maintainer describes its purpose as “🇺🇸 English version available here”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using python. 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 MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE. 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
pingTest MySQL connection; returns server version and connection-pool stats.
get_server_statusKey MySQL status metrics (connections, QPS, slow queries, InnoDB rows, traffic).
list_databasesList all databases (system vs user).
list_tablesList tables with engine, row count, size, comment. Optional database argument.
describe_tableShow table schema: columns, primary key, indexes, foreign keys, CREATE SQL. Arguments: table (required), database (optional).
list_viewsList views in the database.
list_routinesList stored procedures or functions. Arguments: routine_type (PROCEDURE/FUNCTION), database.
list_triggersList triggers in the database.
er_graphCross-table foreign-key graph as nodes + edges, ready for ER diagrams.
execute_queryExecute any SQL (read/write/DDL, safety-guarded), parameterized. Arguments: sql, database, params, session_id.
execute_selectRead-only SELECT/SHOW/DESCRIBE/EXPLAIN with extra safety layer. Arguments: sql, database, params, limit.
get_table_dataQuick paginated table fetch. Arguments: table, columns, where, order_by, limit, offset.
count_rowsCount rows in a table with optional WHERE. Arguments: table, database, where.
explain_queryRun EXPLAIN on a query and return plain-language performance insights. Arguments: sql, database, params, format.
export_queryExport SELECT results to a CSV (UTF-8 BOM, Excel-friendly) or JSON file. Arguments: sql, filename, format (csv/json), database, params.
list_query_historyRecent SQL executed in this session (duration, row count, errors). Argument: limit.
begin_transactionStart a new transaction; returns a session_id for chained calls. Argument: database.
commit_transactionCommit an open transaction. Argument: session_id.
rollback_transactionRollback an open transaction. Argument: session_id.
show_processlistShow the current MySQL process list (SHOW FULL PROCESSLIST).
kill_queryKill a MySQL process (requires SUPER privilege). Argument: process_id.

How to install the mysql-mcp-pro MCP Server

{
  "mcpServers": {
    "mysql": {
      "command": "python",
      "args": [
        "-m",
        "server"
      ],
      "cwd": "D:/path/to/mysql-mcp-pro",
      "env": {
        "MYSQL_HOST": "localhost",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "root",
        "MYSQL_PASSWORD": "YOUR_MYSQL_PASSWORD",
        "MYSQL_DATABASE": "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_PASSWORDDeclared in the maintainer’s client configuration.Check documentation
MYSQL_DATABASEDeclared in the maintainer’s client configuration.Check documentation