Minecraft Docker MCP
An MCP server for Minecraft-in-Docker that enables AI interactions with a running Minecraft server using itzgβs docker-minecraft-server container.
- Expose server administration to AI clients like Claude Desktop, Cursor, and Zed.
- Allow models to programmatically create minecraft builds in game
LLMs have largely been trained on rcon
commands, so thereβs a wide breadth of ability inherent in just exposing rcon
to the model.
If youβre already using the itzg/minecraft-server
docker image, this MCP server will allow you to interact with your server via clients like Claude Desktop, Cursor, and Zed. The only requirement is that mc
is the name of the container.
Prerequisites
- A running Minecraft server in a Docker container named
mc
- RCON enabled and properly configured
docker run -d --name mc -p 25565:25565 -e EULA=TRUE itzg/minecraft-server
To ensure youβre able to use this server, try running an rcon
command to see if you get a response.
docker exec -it mc rcon "list"
If you get a response, youβre all set! If you donβt, please refer to the itzg/docker-minecraft-serverβ repository for troubleshooting.
MCP Integration
This MCP server leverages itzgβs docker-minecraft-server containerβs built-in RCON functionality to interact with the Minecraft server. The container provides the rcon
command within the running container, making it an ideal target for MCP interactions.
Connecting to Claude Desktop
Clone this repository and install the rcon.py
tool using the MCP CLI.
mcp install rcon.py