minecraft-mod-mcp
v0.4.35MCP server bridge & launcher CLI for Minecraft — connect AI tools to Minecraft via Model Context Protocol, launch and manage instances
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ping
Ping the Minecraft mod. Always available. Returns "pong".
screenshot
Capture a screenshot of the current Minecraft game window. Returns base64 PNG with coordinate grid overlay.
screenshot_to_file
Capture a screenshot and save it as PNG inside the game's screenshot workspace. Returns the written path and size; paths outside the workspace are rejected.
| Parameter | Type | Description |
|---|---|---|
path | string | Path inside the game's screenshots/ workspace (set via -Dmcp.screenshot.dir / MC_MCP_SCREENSHOT_DIR). Relative paths resolve there; paths outside are rejected. Defaults to screenshots/vtty/mcp-<timest… |
get_player_info
Get player state: position, rotation, health, hunger, game mode, dimension, etc.
get_world_info
Get world state: seed, time, weather, difficulty, loaded chunks, entities, etc.
debug_fields
Get the debug overlay fields (F3 screen data): FPS, coordinates, biome, etc.
get_screen_buttons
List all interactive buttons on the current GUI screen with IDs, labels, bounds.
enumerate_widgets
Enumerate the full widget tree of the current GUI screen.
enter_control_mode
Enter MCP control mode — releases mouse cursor, enables click/type/keyboard input. Works for games launched through this bridge (or with -Dmcp.remote_control=true); in any other game the user must take over in game first (ESC > MCP Take Over).
exit_control_mode
Exit MCP control mode — returns to normal Minecraft input handling.
release_mouse
Release the mouse cursor from Minecraft's grab.
pause_game
Pause the game (open pause screen).
close_screen
Close the current GUI screen.
open_chat
Open the chat input box.
set_gamemode
Change the player's game mode.
| Parameter | Type | Description |
|---|---|---|
mode * | string | Game mode to set. |
click
Click at the specified screen coordinates. Requires control mode.
| Parameter | Type | Description |
|---|---|---|
x * | integer | X coordinate in screen pixels. |
y * | integer | Y coordinate in screen pixels. |
button | string | Mouse button. Defaults to "left". |
right_click
Perform a right-click (use item / place block). Requires control mode.
mouse_drag
Drag mouse from one point to another. Requires control mode.
| Parameter | Type | Description |
|---|---|---|
x_end * | integer | End X. |
x_start * | integer | Start X. |
y_end * | integer | End Y. |
y_start * | integer | Start Y. |
button | string |
scroll
Scroll the mouse wheel. Requires control mode.
| Parameter | Type | Description |
|---|---|---|
clicks * | integer | Number of scroll clicks. Positive = up, negative = down. |
scroll_at
Scroll at specific coordinates. Requires control mode.
| Parameter | Type | Description |
|---|---|---|
clicks * | integer | |
x * | integer | |
y * | integer |
press_key
Press a keyboard key. Requires control mode.
| Parameter | Type | Description |
|---|---|---|
key * | string | Key name (e.g. "key.keyboard.w", "key.keyboard.space", "A"). |
hold_seconds | number | Duration to hold the key in seconds. |
type_text
Type text into the focused text field. Requires control mode.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to type. |
press_enter | boolean | Whether to press Enter after typing. |
paste_text
Paste text (uses clipboard injection). Requires control mode.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to paste. |
press_enter | boolean |
hotkey
Press a key combination (e.g. Ctrl+S). Requires control mode.
| Parameter | Type | Description |
|---|---|---|
keys * | string | Comma-separated key names, e.g. "key.keyboard.left control,key.keyboard.s". |
click_button_id
Click a GUI button by its numeric ID. Requires control mode.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Button ID from get_screen_buttons. |
click_button_index
Click a GUI button by its index (0-based). Requires control mode.
| Parameter | Type | Description |
|---|---|---|
index * | integer | Button index. |
switch_tab
Switch to a tab by index in a tabbed GUI. Requires control mode.
| Parameter | Type | Description |
|---|---|---|
index * | integer | Tab index. |
execute_command
Execute a Minecraft slash command (e.g. "/gamemode creative"). Requires control mode.
| Parameter | Type | Description |
|---|---|---|
command * | string | The command string, with or without leading /. |
set_view_angle
Set the player's view angles. Requires control mode.
| Parameter | Type | Description |
|---|---|---|
pitch * | number | Pitch angle in degrees (-90 to 90). |
yaw * | number | Yaw angle in degrees (-180 to 180). |
look_delta
Rotate view by a delta. Requires control mode.
| Parameter | Type | Description |
|---|---|---|
delta_pitch * | number | Pitch change in degrees. |
delta_yaw * | number | Yaw change in degrees. |
use_item
Use the currently held item. Requires control mode.
place_block
Place a block at the current target position. Requires control mode.
overlay_click
Click on the MCP overlay (e.g. the resume/transfer button).
| Parameter | Type | Description |
|---|---|---|
x * | integer | |
y * | integer |
wait
Wait for a specified duration. Useful for sequencing actions.
| Parameter | Type | Description |
|---|---|---|
seconds * | number | Seconds to wait. |
launch_minecraft
Launch a Minecraft instance with the specified version and mod loader. Automatically downloads and installs the version if not already present.
| Parameter | Type | Description |
|---|---|---|
version * | string | Minecraft version, e.g. "1.21.7", "26.1.2". |
fullscreen | boolean | Launch in fullscreen mode |
game_args | string | Extra game arguments (space-separated) |
height | number | Window height in pixels |
jvm_args | string | Extra JVM arguments (space-separated) |
loader | string | |
memory | number | Max memory pool in MB (default: 2048) |
min_memory | number | Min memory pool in MB |
server | string | Auto-connect to this server host on launch |
server_port | number | Server port (default: 25565) |
width | number | Window width in pixels |
kill_minecraft
Kill the running Minecraft process.
get_minecraft_status
Get Minecraft process and mod connection status.
install_version
Download and install a Minecraft version with the specified mod loader. Downloads base MC + loader (Forge/Fabric/NeoForge).
| Parameter | Type | Description |
|---|---|---|
version * | string | Minecraft version, e.g. "1.21.7", "26.1.2". Use list_supported_versions to see available versions. |
loader | string |
list_supported_versions
List all supported Minecraft versions with their Java requirements, available loaders, and version IDs.
list_installed_versions
List all locally installed Minecraft versions.
detect_java
Detect all Java installations on the system. Returns version, vendor, and path for each.
create_offline_account
Create an offline Minecraft account for launching without authentication.
| Parameter | Type | Description |
|---|---|---|
username * | string | Player username for the offline account. |
list_accounts
List all configured Minecraft accounts (offline and Microsoft).
install_server
Download and set up a Minecraft server. Supports vanilla, Paper, and Spigot frameworks. Generates server.properties with custom settings.
| Parameter | Type | Description |
|---|---|---|
version * | string | Minecraft version, e.g. "1.21.11", "26.1.2". |
difficulty | string | Difficulty |
gamemode | string | Default gamemode |
level_name | string | World save name (default: world) |
level_seed | string | World seed |
level_type | string | World type (default: flat) |
loader | string | |
max_players | number | Max players (default: 20) |
motd | string | Server MOTD message |
online_mode | boolean | Enable online authentication (default: false) |
port | number | Server port (default: 25565) |
server_type | string | Server framework (default: vanilla) |
white_list | boolean | Enable whitelist |
launch_server
Launch a Minecraft server. Supports vanilla, Paper, and Spigot frameworks. Auto-installs if not present.
| Parameter | Type | Description |
|---|---|---|
version * | string | Minecraft version. |
difficulty | string | Difficulty |
game_args | string | Extra server arguments (space-separated) |
gamemode | string | Default gamemode |
jvm_args | string | Extra JVM arguments (space-separated) |
loader | string | |
max_players | number | Max players (default: 20) |
memory | number | Server max memory in MB (default: 1024) |
min_memory | number | Server min memory in MB |
motd | string | Server MOTD message |
port | number | Server port (default: 25565) |
server_type | string | Server framework (default: vanilla) |
serve
One-command: install server + launch server + launch client auto-connected. Supports vanilla, Paper, and Spigot server frameworks.
| Parameter | Type | Description |
|---|---|---|
version * | string | Minecraft version. |
difficulty | string | Difficulty |
fullscreen | boolean | Launch client in fullscreen |
gamemode | string | Default gamemode |
height | number | Client window height in pixels |
loader | string | |
max_players | number | Max players (default: 20) |
memory | number | Client max memory in MB (default: 2048) |
motd | string | Server MOTD message |
port | number | Server port (default: 25565) |
server_memory | number | Server max memory in MB (default: 1024) |
server_type | string | Server framework (default: vanilla) |
width | number | Client window width in pixels |