mysql-mcp-server

by leopeng1995

1 2.7k downloads Not rated yet MIT

About

# mysql-mcp-server mysql-mcp-server is a Model Context Protocol (MCP) server for connecting to MySQL Server. ## Installation ``` git clone https://github.com/leopeng1995/mysql-mcp-server.git cd mysql-mcp-server uv sync uv run mysql-mcp-server ``` ## Configuration in Cline ```json { "mcpServers": { "mysql-mcp-server"…

Details

License
MIT

Explore

- Connects to MySQL Server via the Model Context Protocol.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name mysql-mcp-server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

git clone https://github.com/leopeng1995/mysql-mcp-server.git
cd mysql-mcp-server

uv sync
uv run mysql-mcp-server

{
  "mcpServers": {
    "mysql-mcp-server": {
      "command": "uv",
      "args": [
        "--directory",
        "H:/workspaces/leopeng1995/mysql-mcp-server",
        "run",
        "mysql-mcp-server"
      ],
      "env": {
        "MYSQL_HOST": "localhost",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "username",
        "MYSQL_PASSWORD": "password",
        "MYSQL_DATABASE": "database"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mysql-mcp-server": {
            "mysql-mcp-server": {
                "command": "uv",
                "args": [
                    "--directory",
                    "H:/workspaces/leopeng1995/mysql-mcp-server",
                    "run",
                    "mysql-mcp-server"
                ],
                "env": {
                    "MYSQL_HOST": "localhost",
                    "MYSQL_PORT": "3306",
                    "MYSQL_USER": "username",
                    "MYSQL_PASSWORD": "password",
                    "MYSQL_DATABASE": "database"
                }
            }
        }
    }
}

McpServers

{
    "mysql-mcp-server": {
        "command": "uv",
        "args": [
            "--directory",
            "H:/workspaces/leopeng1995/mysql-mcp-server",
            "run",
            "mysql-mcp-server"
        ],
        "env": {
            "MYSQL_HOST": "localhost",
            "MYSQL_PORT": "3306",
            "MYSQL_USER": "username",
            "MYSQL_PASSWORD": "password",
            "MYSQL_DATABASE": "database"
        }
    }
}

mysql-mcp-server is a Model Context Protocol (MCP) server for connecting to MySQL Server.

Installation

git clone https://github.com/leopeng1995/mysql-mcp-server.git
cd mysql-mcp-server

uv sync
uv run mysql-mcp-server

Configuration in Cline

{
  "mcpServers": {
    "mysql-mcp-server": {
      "command": "uv",
      "args": [
        "--directory",
        "H:/workspaces/leopeng1995/mysql-mcp-server",
        "run",
        "mysql-mcp-server"
      ],
      "env": {
        "MYSQL_HOST": "localhost",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "username",
        "MYSQL_PASSWORD": "password",
        "MYSQL_DATABASE": "database"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.