minecraft-mod-mcp

v0.4.35
minecraft-mod-mcp Checked 2 hours ago Published 6 days ago

MCP 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.

ParameterTypeDescription
pathstringPath 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.

ParameterTypeDescription
mode *stringGame mode to set.

click

Click at the specified screen coordinates. Requires control mode.

ParameterTypeDescription
x *integerX coordinate in screen pixels.
y *integerY coordinate in screen pixels.
buttonstringMouse 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.

ParameterTypeDescription
x_end *integerEnd X.
x_start *integerStart X.
y_end *integerEnd Y.
y_start *integerStart Y.
buttonstring

scroll

Scroll the mouse wheel. Requires control mode.

ParameterTypeDescription
clicks *integerNumber of scroll clicks. Positive = up, negative = down.

scroll_at

Scroll at specific coordinates. Requires control mode.

ParameterTypeDescription
clicks *integer
x *integer
y *integer

press_key

Press a keyboard key. Requires control mode.

ParameterTypeDescription
key *stringKey name (e.g. "key.keyboard.w", "key.keyboard.space", "A").
hold_secondsnumberDuration to hold the key in seconds.

type_text

Type text into the focused text field. Requires control mode.

ParameterTypeDescription
text *stringText to type.
press_enterbooleanWhether to press Enter after typing.

paste_text

Paste text (uses clipboard injection). Requires control mode.

ParameterTypeDescription
text *stringText to paste.
press_enterboolean

hotkey

Press a key combination (e.g. Ctrl+S). Requires control mode.

ParameterTypeDescription
keys *stringComma-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.

ParameterTypeDescription
id *integerButton ID from get_screen_buttons.

click_button_index

Click a GUI button by its index (0-based). Requires control mode.

ParameterTypeDescription
index *integerButton index.

switch_tab

Switch to a tab by index in a tabbed GUI. Requires control mode.

ParameterTypeDescription
index *integerTab index.

execute_command

Execute a Minecraft slash command (e.g. "/gamemode creative"). Requires control mode.

ParameterTypeDescription
command *stringThe command string, with or without leading /.

set_view_angle

Set the player's view angles. Requires control mode.

ParameterTypeDescription
pitch *numberPitch angle in degrees (-90 to 90).
yaw *numberYaw angle in degrees (-180 to 180).

look_delta

Rotate view by a delta. Requires control mode.

ParameterTypeDescription
delta_pitch *numberPitch change in degrees.
delta_yaw *numberYaw 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).

ParameterTypeDescription
x *integer
y *integer

wait

Wait for a specified duration. Useful for sequencing actions.

ParameterTypeDescription
seconds *numberSeconds 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.

ParameterTypeDescription
version *stringMinecraft version, e.g. "1.21.7", "26.1.2".
fullscreenbooleanLaunch in fullscreen mode
game_argsstringExtra game arguments (space-separated)
heightnumberWindow height in pixels
jvm_argsstringExtra JVM arguments (space-separated)
loaderstring
memorynumberMax memory pool in MB (default: 2048)
min_memorynumberMin memory pool in MB
serverstringAuto-connect to this server host on launch
server_portnumberServer port (default: 25565)
widthnumberWindow 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).

ParameterTypeDescription
version *stringMinecraft version, e.g. "1.21.7", "26.1.2". Use list_supported_versions to see available versions.
loaderstring

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.

ParameterTypeDescription
username *stringPlayer 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.

ParameterTypeDescription
version *stringMinecraft version, e.g. "1.21.11", "26.1.2".
difficultystringDifficulty
gamemodestringDefault gamemode
level_namestringWorld save name (default: world)
level_seedstringWorld seed
level_typestringWorld type (default: flat)
loaderstring
max_playersnumberMax players (default: 20)
motdstringServer MOTD message
online_modebooleanEnable online authentication (default: false)
portnumberServer port (default: 25565)
server_typestringServer framework (default: vanilla)
white_listbooleanEnable whitelist

launch_server

Launch a Minecraft server. Supports vanilla, Paper, and Spigot frameworks. Auto-installs if not present.

ParameterTypeDescription
version *stringMinecraft version.
difficultystringDifficulty
game_argsstringExtra server arguments (space-separated)
gamemodestringDefault gamemode
jvm_argsstringExtra JVM arguments (space-separated)
loaderstring
max_playersnumberMax players (default: 20)
memorynumberServer max memory in MB (default: 1024)
min_memorynumberServer min memory in MB
motdstringServer MOTD message
portnumberServer port (default: 25565)
server_typestringServer framework (default: vanilla)

serve

One-command: install server + launch server + launch client auto-connected. Supports vanilla, Paper, and Spigot server frameworks.

ParameterTypeDescription
version *stringMinecraft version.
difficultystringDifficulty
fullscreenbooleanLaunch client in fullscreen
gamemodestringDefault gamemode
heightnumberClient window height in pixels
loaderstring
max_playersnumberMax players (default: 20)
memorynumberClient max memory in MB (default: 2048)
motdstringServer MOTD message
portnumberServer port (default: 25565)
server_memorynumberServer max memory in MB (default: 1024)
server_typestringServer framework (default: vanilla)
widthnumberClient window width in pixels