drio
Open app

MySQL MCP Server Docker

Source

MySQL MCP (Model, Controller, Presenter) server implementation using Docker

Catalog onlyCatalog onlySTDIO

Overview

MySQL MCP Server Docker is a project that implements a Minecraft MCP (Model, Controller, Presenter) server using Docker, integrated with MySQL for data management.

To use this project, clone the repository, build the Docker image, and start the container using Docker Compose. Connect to the Minecraft client at localhost:25565 to access the server.

  • Easy setup with Docker and Docker Compose - Automatic creation of necessary MySQL tables - Environment variable configuration for MySQL connection settings
  1. Hosting a Minecraft server with a MySQL backend for data storage.
  2. Managing player data and game state using a relational database.
  3. Simplifying server deployment and management through Docker.

Add to your AI client

Use these steps to connect MySQL MCP Server Docker in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-mysql-ryosuketanaka": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-mysql-ryosuketanaka"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-mysql-ryosuketanaka": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-mysql-ryosuketanaka"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-mysql-ryosuketanaka": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-mysql-ryosuketanaka"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-mysql-ryosuketanaka": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-mysql-ryosuketanaka"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-mysql-ryosuketanaka": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-mysql-ryosuketanaka"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-mysql-ryosuketanaka": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-mysql-ryosuketanaka"
      ]
    }
  }
}

FAQ

What are the prerequisites for using this project?

You need Docker and Docker Compose installed on your machine.

How do I connect to the MySQL database?

The necessary tables will be created automatically when the server starts. You can connect using the configured MySQL credentials.

Is it safe to use in production?

Yes, but make sure to change the default passwords and regularly back up your database.