MySQL MCP Server Docker
@RyosukeTanaka
MySQL MCP (Model, Controller, Presenter) server implementation using Docker
Overview
What is MySQL MCP Server Docker?
MySQL MCP Server Docker is a Docker‑compatible container that runs a Minecraft MCP (Mod Coder Pack) server integrated with a MySQL database. It automatically creates the required database tables, making it easy to deploy a persistent Minecraft server with a relational database backend.
How to use MySQL MCP Server Docker?
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.
Key features of MySQL MCP Server Docker
- 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
Use cases of MySQL MCP Server Docker
- Quickly deploy a Minecraft server with a MySQL‑backed inventory/world database
- Run a multiplayer Minecraft session with auto‑generated table schema
- Isolate the Minecraft server in a container for clean deployment and updates
FAQ from MySQL MCP Server Docker
What are the system requirements?
Docker and Docker Compose must be installed on the host machine.
How do I configure the MySQL connection?
Set the environment variables MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASSWORD, and MYSQL_DATABASE before starting the container.
Is the default configuration safe for production?
No. You must change the default MySQL password and regularly back up the database for production use.
How do clients connect to the server?
Minecraft clients should connect to localhost:25565 (the default Minecraft port).
How can I build and push the image to Docker Hub?
Use docker build with your Docker Hub username and tag, then docker push to upload the image.