Minecraft MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Minecraft MCP Servergive me creative mode and teleport me to spawn"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Minecraft-MCP-Server
Python MCP Server to control a Minecraft server via RCON, using FastMCP.
🔧 Features
Exposes a set of commands (dictionary) to contextualize the LLM
Executes commands on the Minecraft server via RCON
Integration with Claude Desktop or any MCP client
Simple structure:
stdio(local development) or HTTP/SSE (production)
Related MCP server: Minecraft RCON MCP Server
📦 Project Structure
mcp_server/
├── __pycache__/
├── .env # Environment variables for Gemini and paths
├── commands.json # Commands dictionary and examples
├── mcp_chat_client.py # NEW: Client that listens to @ai messages from chat
├── server.py # Main MCP server
├── .gitattributes
├── .gitignore
├── readme.md
└── requirements.txt⚙️ Installation
Clone the repository:
cd Minecraft-MCP-Server/mcp_serverCreate an environment and install dependencies:
python -m venv venv venv\Scripts\activate pip install -r requirements.txt
📝 Setup
In the commands.json file, you will have a list of commands like /give, /weather, /gamemode, etc., with descriptions and examples.
Don’t forget to enable RCON in the Minecraft server.properties file:
enable-rcon=true
rcon.password=minemcp
rcon.port=25575Create a .env file like this:
MINECRAFT_LOG_PATH=C:\Users\YourUser\Desktop\mineserver\logs\latest.log
MCP_SERVER_PATH=mcp_server/server.py
GEMINI_API_KEY=your_gemini_api_key🚀 Running the MCP Server
Activate the virtual environment and run:
venv\Scripts\activate
python mcp_server/server.pyMonkey patch: starts MCP server in STDIO by default (apidog.com, reddit.com, github.com)
💬 Running the Chat Client (@ai)
After starting the server, in a new terminal, run the chat client:
venv\Scripts\activate
python mcp_server/mcp_chat_client.pyThis script monitors the Minecraft server log and listens for player chat messages that start with @ai. It sends the message to the Gemini API and executes the resulting command on the server via MCP.
⚠️ Important: The server must be started before running the client.
Current version has a known memory overflow bug if the client starts before the server.
⚙️ Integration with Claude Desktop
In claude_desktop_config.json (e.g., %APPDATA%\Claude\):
{
"mcpServers": {
"minecraft-controller": {
"type": "stdio",
"command": "/home/qkeq/Documentos/GitHub/Minecraft-MCP-Server/venv/bin/python3",
"args": ["C:\\...\\mcp_server\\server.py"],
"env": {"PATH": "%PATH%"}
}
}
}Then restart Claude — the ‘minecraft-controller’ server will appear.
🧪 Local Test with Python
from fastmcp import Client
import asyncio
async def test():
client = Client("mcp_server/server.py")
async with client:
res = await client.call_tool("run_minecraft_command", {"command": "/list"})
print("Players:", res)
cmds = await client.read_resource("minecraft://commands")
print("Commands:", list(cmds.keys())[:5])
asyncio.run(test())🧰 How It Works
🎯
FastMCPautomatically loads tools and resources (medium.com, github.com)Resource
minecraft://commandsprovides the commands dictionaryTool
run_minecraft_commandusesmcrconto send commands to Minecraft
📚 References
🛠 Next Steps
Support for HTTP/SSE transport with Docker
Argument validation/autocomplete via commands dictionary
Logging extra actions:
/start,/stop,/backup,/whitelist
Ready to make your server smart! 🚀
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables AI interactions with a running Minecraft server inside a Docker container using RCON, allowing models to programmatically create Minecraft builds and manage the server.Last updated10
- AlicenseAqualityDmaintenanceConnects AI agents to Minecraft servers via RCON to execute commands, monitor logs, and perform read-only SQLite database queries. It is specifically designed to facilitate AI-assisted plugin development, live debugging, and automated testing workflows.Last updated611MIT
- Alicense-qualityDmaintenanceEnables AI assistants to interact with and manage Minecraft servers through a standardized interface, supporting server monitoring, player management, log analysis, and command execution.Last updatedMIT
- Alicense-qualityDmaintenanceEnables Minecraft server management via RCON: execute commands, list players, get server info, manage whitelist and operators.Last updated1MIT
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
MCP server for AI dialogue using various LLM models via AceDataCloud
An MCP server that integrates with Discord to provide AI-powered features.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Peterson047/Minecraft-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server