Minecraft Server MCP
Click on "Deploy 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 Server MCP check the server status and set the game rule keepInventory to true"
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 Server MCP
English | 日本語
An MCP (Model Context Protocol) server for Minecraft Java Edition server administration. Lets AI directly manage world generation, server configuration, player management, and more.
Unlike existing Minecraft MCP servers that focus on bot movement via Mineflayer, this project provides server administrator-level control — world generation,
server.propertiesediting, RCON commands, NBT data, backups, and full player management.
Features
Server Lifecycle — Start / stop / restart / status monitoring
World Generation — Seeds, world types (normal, flat, amplified, large biomes), superflat config
Configuration — Read/write all
server.propertiessettingsRCON Commands — Execute any server command remotely
World Data — Read/write
level.datvia NBT parsingPlayer Management — OP, ban, whitelist, gamemode, effects
Backup & Restore — Compressed backups with safe hot-backup (save-off/save-on)
Building — setblock, fill, summon, teleport, give
Game Rules — keepInventory, doDaylightCycle, mobGriefing, etc.
Related MCP server: Minecraft MCP Server
Tools (40)
Server Management
Tool | Description |
| Start the server (auto EULA acceptance) |
| Graceful shutdown via RCON → stdin → SIGKILL |
| Restart the server |
| Running state, uptime, online players, MOTD |
| Recent console output |
| Check JAR, EULA, RCON configuration |
| Update MCP runtime config |
Configuration & World Generation
Tool | Description |
| Read all settings with descriptions |
| Set a single property |
| Set multiple properties at once |
| Configure world generation (seed, type, gamemode, difficulty, structures) |
| List all game rules via RCON |
| Set a game rule |
World Management
Tool | Description |
| List worlds with size, seed, game type |
| Detailed level.dat info (NBT parsed) |
| Delete a world (confirmation required) |
| Modify spawn point in level.dat |
Commands
Tool | Description |
| Run any server command via RCON |
| Batch execute multiple commands |
| Set time (presets: day, noon, sunset, night, midnight, sunrise) |
| Set weather (clear, rain, thunder) |
| Place a block at coordinates |
| Fill a region with blocks |
| Summon an entity with optional NBT |
| Teleport players/entities |
| Give items to players |
Player Management
Tool | Description |
| Online players and max count |
| Grant/revoke operator |
| Moderation |
| Add, remove, on, off, reload |
| Change player game mode |
| Apply status effects |
| List operators from ops.json |
Backup & Restore
Tool | Description |
| Create compressed tar.gz backup (hot-backup safe) |
| List all backups |
| Restore from backup (auto safety-backup before overwrite) |
| Delete a backup |
Resources (read-only data)
URI | Description |
| Server status as JSON |
| Current server.properties as JSON |
| World list with info |
| Recent console output |
Setup
Prerequisites
Node.js >= 20.0.0
Java (for running the Minecraft server)
Minecraft Java Edition server JAR (download)
Install
git clone https://github.com/tamo2918/Minecraft-Server-MCP.git
cd Minecraft-Server-MCP
npm install
npm run buildDownload the Server JAR
mkdir -p minecraft-server
cd minecraft-server
# Download the latest server JAR from https://www.minecraft.net/en-us/download/server
# Place server.jar in this directoryUsage
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"minecraft": {
"command": "node",
"args": [
"/path/to/minecraft-server-mcp/dist/index.js",
"--server-dir", "/path/to/minecraft-server",
"--rcon-password", "your_secure_password"
]
}
}
}Claude Code
Add to .claude/settings.json or ~/.claude.json:
{
"mcpServers": {
"minecraft": {
"command": "node",
"args": [
"/path/to/minecraft-server-mcp/dist/index.js",
"--server-dir", "/path/to/minecraft-server",
"--rcon-password", "your_secure_password"
]
}
}
}Environment Variables
export MC_SERVER_DIR="/path/to/minecraft-server"
export MC_RCON_PASSWORD="your_secure_password"
export MC_BACKUP_DIR="/path/to/backups"
node dist/index.jsCLI Options
--server-dir <path> Minecraft server directory (default: ./minecraft-server)
--server-jar <filename> Server JAR filename (default: server.jar)
--java-path <path> Java executable (default: java)
--jvm-args <args> JVM arguments (default: "-Xmx2G -Xms1G")
--rcon-host <host> RCON host (default: localhost)
--rcon-port <port> RCON port (default: 25575)
--rcon-password <pass> RCON password
--backup-dir <path> Backup directory (default: ./backups)Examples
Tell your AI things like:
"Generate a flat world with seed 12345 in creative mode"
→ setup_world + restart_server
"Give all players a diamond sword"
→ give_item(@a, diamond_sword, 1)
"Fill 0,64,0 to 10,70,10 with diamond blocks"
→ fill_blocks(0, 64, 0, 10, 70, 10, diamond_block)
"Set weather to clear and time to noon"
→ set_weather(clear) + set_time(noon)
"Backup the current world, then generate a new one"
→ create_backup + setup_world + delete_world + restart_server
"Turn on keepInventory"
→ set_game_rule(keepInventory, true)Architecture
src/
index.ts # MCP server entry point + CLI arg parsing
core/
types.ts # Shared type definitions
RconClient.ts # RCON connection management
ServerProperties.ts # server.properties parser/writer
ServerManager.ts # Server process lifecycle
WorldManager.ts # World file operations (NBT)
BackupManager.ts # Backup/restore with tar.gz
tools/
server-tools.ts # Server lifecycle tools
config-tools.ts # Configuration & game rule tools
world-tools.ts # World management tools
command-tools.ts # RCON command tools
player-tools.ts # Player management tools
backup-tools.ts # Backup tools
resources/
server-resources.ts # MCP resource definitionsHow It Works
Server Management: Spawns the Minecraft server as a child process, captures stdout/stderr, waits for "Done" on startup
RCON: Connects to the server's RCON port for runtime command execution (requires
enable-rcon=truein server.properties — auto-configured)Configuration: Directly reads/writes
server.propertiesas a text file, preserving commentsWorld Data: Parses
level.datusing prismarine-nbt for reading seed, spawn point, game type, version infoBackups: Uses
tar -czffor compression, withsave-off/save-onRCON commands for hot backups
Compared to Other Minecraft MCPs
Feature | This Project | mcp-minecraft | mcp-minecraft-remote |
Server start/stop | Yes | Yes | No |
server.properties editing | Yes | No | No |
World generation config | Yes | No | No |
level.dat NBT parsing | Yes | No | No |
Backup/restore | Yes | No | No |
RCON commands | Yes | No | No |
Game rules | Yes | No | No |
Player management | Yes | Limited | Limited |
Bot movement | No | Yes | Yes |
Block mining/placing (bot) | No | Yes | Yes |
Crafting/trading | No | No | Yes |
This project is complementary to bot-based MCPs — use both together for full AI control.
License
MIT
Available Tools
40 toolsapply_effectA
Apply a status effect to a player. Examples: speed, strength, regeneration, night_vision, invisibility, resistance.
Inputs: target (required), effect (required), duration, amplifier.
ban_playerC
Ban a player from the server.
Inputs: player (required), reason.
configure_mcpC
Update the MCP server configuration (server directory, JAR path, RCON settings, Java path, JVM args).
Inputs: server_dir, server_jar, java_path, jvm_args, +4 more.
create_backupA
Create a compressed backup (tar.gz) of a world. Safe to use while the server is running (uses save-off/save-on).
Inputs: world_name (required).
delete_backupC
Delete a backup file.
Inputs: backup_name (required), confirm (required).
delete_worldA
Delete a world folder. WARNING: This is irreversible! Consider creating a backup first. The server must be stopped.
Inputs: world_name (required), confirm (required).
deop_playerC
Revoke operator status from a player.
Inputs: player (required).
execute_commandB
Execute a Minecraft server command via RCON. Send any command without the leading '/'. Examples: 'time set 0', 'weather clear', 'give @a diamond 64', 'tp @a 0 64 0', 'setblock 0 64 0 diamond_block'.
Inputs: command (required).
execute_commandsA
Execute multiple Minecraft commands sequentially via RCON. Useful for batch operations like building structures or setting up game scenarios.
Inputs: commands (required).
fill_blocksA
Fill a region with blocks. Uses the /fill command. Max 32,768 blocks per operation.
Inputs: x1 (required), y1 (required), z1 (required), x2 (required), +4 more.
get_game_rulesA
Get all game rules for the current world via RCON. Server must be running.
Inputs: no named parameters.
get_server_propertiesA
Read all server.properties settings. Returns key-value pairs with descriptions for known settings.
Inputs: no named parameters.
get_world_infoA
Get detailed information about a world from its level.dat file, including seed, spawn point, game type, and version.
Inputs: world_name (required).
give_itemB
Give items to a player. Examples: 'diamond', 'diamond_sword', 'golden_apple'.
Inputs: target (required), item (required), count.
kick_playerB
Kick a player from the server with an optional reason.
Inputs: player (required), reason.
list_backupsB
List all available world backups, optionally filtered by world name.
Inputs: world_name.
list_opsB
List all server operators from ops.json.
Inputs: no named parameters.
list_playersA
List all online players and the server's max player count.
Inputs: no named parameters.
list_worldsA
List all Minecraft worlds in the server directory with their sizes.
Inputs: no named parameters.
op_playerB
Grant operator status to a player.
Inputs: player (required).
pardon_playerA
Remove a ban from a player.
Inputs: player (required).
restart_serverA
Restart the Minecraft server (stop then start). Useful after configuration changes.
Inputs: no named parameters.
restore_backupA
Restore a world from a backup. Creates a safety backup of the current world before overwriting. The server MUST be stopped first.
Inputs: backup_name (required), confirm (required).
server_logsA
Get recent server console output. Useful for debugging startup issues or monitoring activity.
Inputs: lines.
server_statusA
Get the current server status including running state, uptime, online players, and MOTD.
Inputs: no named parameters.
set_blockC
Place a block at a specific position. Uses the /setblock command.
Inputs: x (required), y (required), z (required), block (required), +1 more.
set_gamemodeC
Change a player's game mode.
Inputs: target (required), gamemode (required).
set_game_ruleB
Set a game rule value via RCON. Common rules: doDaylightCycle, doWeatherCycle, doMobSpawning, keepInventory, mobGriefing, doFireTick, randomTickSpeed, playersSleepingPercentage.
Inputs: rule (required), value (required).
set_server_properties_bulkA
Set multiple server.properties values at once. Useful for configuring a new server or changing world generation settings.
Inputs: properties (required).
set_server_propertyA
Set a server.properties value. The server must be restarted for changes to take effect. Common properties: gamemode, difficulty, level-seed, level-type, max-players, view-distance, motd, online-mode, pvp, spawn-protection.
Inputs: key (required), value (required).
set_timeA
Set the world time. Presets: 'day' (1000), 'noon' (6000), 'sunset' (12000), 'night' (13000), 'midnight' (18000), 'sunrise' (23000). Or use a tick value.
Inputs: time (required).
setup_worldA
Configure server.properties for generating a new world. Sets the level name, seed, world type, and other generation options. The server must be restarted (with the old world deleted or renamed) to generate the new world.
Inputs: level_name (required), seed, world_type, gamemode, +5 more.
set_weatherC
Set the weather. Options: clear, rain, thunder.
Inputs: weather (required), duration.
set_world_spawnA
Set the world spawn point by modifying level.dat. The server must be stopped.
Inputs: world_name (required), x (required), y (required), z (required).
start_serverA
Start the Minecraft Java Edition server. Ensures RCON is enabled and waits for startup completion.
Inputs: accept_eula.
stop_serverA
Gracefully stop the Minecraft server. Uses RCON 'stop' command, falls back to stdin, then SIGKILL after 30s.
Inputs: no named parameters.
summon_entityB
Summon an entity at a position. Examples: 'zombie', 'skeleton', 'villager', 'item_frame', 'armor_stand'.
Inputs: entity (required), x (required), y (required), z (required), +1 more.
teleportB
Teleport a player or entity to coordinates or another entity.
Inputs: target (required), x, y, z, +1 more.
validate_serverB
Check if the server directory, JAR file, and EULA are properly configured.
Inputs: no named parameters.
whitelist_manageC
Manage the server whitelist.
Inputs: action (required), player.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 40 tools
Most tools have distinct purposes with clear boundaries, such as apply_effect for status effects, ban_player for bans, and create_backup for backups. However, there is some overlap between execute_command and execute_commands, which could cause confusion as they differ only in single vs. multiple command execution, and between set_server_property and set_server_properties_bulk, which are similar in function but differ in scope.
Tool names follow a highly consistent verb_noun pattern throughout, such as apply_effect, ban_player, create_backup, and delete_world. All tools use snake_case without deviation, making the naming predictable and easy to understand across the entire set.
With 40 tools, the count is excessive for a Minecraft server management domain, leading to potential bloat and complexity. While the tools cover many operations, a more streamlined set of 15-25 tools could achieve similar functionality without overwhelming users or agents.
The tool set provides comprehensive coverage for Minecraft server management, including server control (start/stop/restart), player management (ban/kick/op), world operations (backup/restore/setup), configuration (properties/game rules), and in-game commands (teleport/summon/set_block). No significant gaps are apparent, supporting full lifecycle management.
Related MCP Connectors
Manage NodePal Minecraft servers, worlds, mods, backups and console from AI agents.
Generate and edit images, video, voice and music from any MCP client. 50 tools, 46 models.
All 20 YourAITools agent APIs in one MCP server. Most tools free; pay with credits or x402.
AI memory governance & hallucination-blocking MCP server with verifiable knowledge cells.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to manage Minecraft servers through MCSManager, including instance control (start/stop/restart), file management, scheduled tasks, user management, and backup operations.5-
- FlicenseNot gradedqualityDmaintenanceEnables control of a Minecraft server through RCON commands via natural language, including game commands, chat-based AI interactions, and server management capabilities.6-
- 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.612MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with and manage Minecraft servers through a standardized interface, supporting server monitoring, player management, log analysis, and command execution.111MIT