Mysqldb MCP Server

The server provides two tools: - `connect_database`: Connects to a specific MySQL database - `database` parameter: Name of the database to connect to

Local serverstdio

What is the Mysqldb MCP Server?

The server provides two tools: - connect_database: Connects to a specific MySQL database - database parameter: Name of the database to connect to (string) -

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

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
connect_databaseConnects to a specific MySQL database
execute_queryExecutes MySQL queries

How to install the Mysqldb MCP Server

{
  "mcpServers": {
    "mysqldb-mcp-server": {
      "command": "uv",
      "args": [
        "--directory",
        "/Users/burakdirin/Projects/mysqldb-mcp-server",
        "run",
        "mysqldb-mcp-server"
      ],
      "env": {
        "MYSQL_HOST": "localhost",
        "MYSQL_USER": "root",
        "MYSQL_PASSWORD": "YOUR_MYSQL_PASSWORD",
        "MYSQL_DATABASE": "[optional]",
        "MYSQL_READONLY": "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_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.Optional
MYSQL_READONLYDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Mysqldb to connect database.”
  • “Use Mysqldb to execute query.”
  • “Use Mysqldb to Tools.”

Frequently asked questions

The server provides two tools: - `connect_database`: Connects to a specific MySQL database - `database` parameter: Name of the database to connect to (string) - Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.