MySQL MCP Server Docker
About
MySQL MCP (Model, Controller, Presenter) server implementation using Docker
Details
- Author
- RyosukeTanaka
- Downloads
- 220
- Categories
- Database
Jump to
- Fully containerized using Docker and Docker Compose
- Integrated with MySQL for persistent data storage
- Automatically creates necessary database tables
- Configurable via environment variables for MySQL connection details
- Easy Minecraft client access on default port 25565
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:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
MySQL MCP Server DockerCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Clone the repository and configure the MySQL connection by setting the environment variables (MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE). Then build and start the container with docker-compose up -d. Minecraft clients can connect to localhost:25565.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mysql mcp server docker": {
"mcp-mysql-ryosuketanaka": {
"command": "docker",
"args": [
"login"
]
}
}
}
}
McpServers
{
"mcp-mysql-ryosuketanaka": {
"command": "docker",
"args": [
"login"
]
}
}
MySQL MCP Server Docker
このプロジェクトは、MinecraftのMCPサーバーをDocker化し、MySQLと連携させたものです。
必要条件
- Docker
- Docker Compose
セットアップ
1. リポジトリをクローンします:
git clone [your-repository-url]
cd [repository-name]
2. Dockerイメージをビルドし、コンテナを起動します:
docker-compose up -d
環境変数
以下の環境変数を必要に応じて変更できます:
- MYSQL_HOST: MySQLサーバーのホスト名
- MYSQL_PORT: MySQLサーバーのポート
- MYSQL_USER: MySQLユーザー名
- MYSQL_PASSWORD: MySQLパスワード
- MYSQL_DATABASE: 使用するデータベース名
Docker Hubへのプッシュ
1. Docker Hubにログインします:
docker login
2. イメージをビルドします:
docker build -t [your-dockerhub-username]/mysql-mcp-server:latest .
3. イメージをプッシュします:
docker push [your-dockerhub-username]/mysql-mcp-server:latest
使用方法
1. Minecraftクライアントで接続する際は、localhost:25565に接続してください。
2. MySQLデータベースには自動的に必要なテーブルが作成されます。
注意事項
- 本番環境では、必ずパスワードを変更してください。
- データベースのバックアップを定期的に行うことをお勧めします。
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



