Use ChatGPT Desktop as a companion in your Minecraft 1.21.1 game. Type a
question with @gpt in Minecraft and receive the reply as a local chat message.
MineGPT is client-only: it does not require a server Mod or plugin, and your
@gpt messages are never sent to a multiplayer server or other players.
Minecraft @gpt message -> local MineGPT Bridge -> ChatGPT Desktop -> local reply
-
Add the MineGPT Mod JAR to the
modsfolder of the Minecraft instance you will play. Fabric users must also install Fabric API in that same instance. -
Extract the MineGPT Bridge distribution somewhere that will remain available on your computer. You will give ChatGPT Desktop the absolute path to its launch script:
- macOS/Linux:
bin/minegpt-bridge - Windows:
bin/minegpt-bridge.bat
- macOS/Linux:
-
Start the selected Minecraft instance once. MineGPT runs only on your client; there is nothing to install on the multiplayer server.
-
In ChatGPT Desktop, open Settings -> MCP servers and add a STDIO server named
minegpt. -
Set its command to the absolute Bridge script path from the previous section. Do not add arguments or an API key.
-
Restart ChatGPT Desktop, then run
/mcpin a conversation to confirm thatminegptis connected. -
In that conversation, ask ChatGPT to call
minegpt_pairing_code, then copy the returnedtoken. -
In Minecraft, run:
/minegpt pair <token> -
Tell ChatGPT to listen for your in-game questions. This prompt is a useful starting point:
Start listening to Minecraft. For every MineGPT player message, answer it, call minegpt_reply with the exact message_id, then immediately call minegpt_next_message again with wait_seconds 45. Continue until I tell you to stop.
Keep this ChatGPT conversation open while it is listening. Minecraft cannot open or wake a conversation on its own.
Leaving a Minecraft world or returning to the title screen keeps the MineGPT Bridge session open. The Bridge closes only when the Minecraft client exits.
-
Type
@gpt <message>in the normal Minecraft chat box. For example:@gpt What can I craft with the items in my inventory? -
ChatGPT replies appear as local
[MineGPT]system messages. Ordinary chat without the@gptprefix is unchanged. -
Run
/minegpt statusto check pairing, Bridge connection, and queued-message status. -
Run
/minegpt github <github_url>to install one public GitHub Markdown skill into this Minecraft instance. Use a normal GitHub file-page URL or araw.githubusercontent.comURL. Existing skills are never overwritten.
MineGPT creates a user-editable skill folder for each Minecraft instance:
<game run directory>/minegpt/skills/
For most launchers, the game run directory is that instance's .minecraft
folder. This keeps skills separate between Prism, Modrinth, and other instances.
Add Markdown files directly or in subfolders, such as
building/redstone/guide.md. Paths may be up to eight folders deep and each
file may be up to 256 KiB.
The built-in minegpt-guide.md, live-data/SKILL.md, and
modpack-recipe-investigation/SKILL.md are restored if deleted.
live-data/SKILL.md selects read-only tools for player state, inventory,
entities, blocks, chunks, and environment data. The modpack recipe skill makes
ChatGPT investigate the current instance's local datapacks, KubeJS, configs,
FTB Quests files, and relevant Mod JAR resources before presenting a crafting
or progression route as confirmed. Your own skill files are never overwritten
or regenerated.
MineGPT listens only on 127.0.0.1:37832 and pairs your game with ChatGPT
Desktop through a random token. The Bridge keeps its token and up to 200 pending
messages for 24 hours in ~/.minegpt/bridge-state.json; the Minecraft client
stores only its pairing token in config/minegpt.json.
The connected ChatGPT conversation can inspect bounded, read-only information from the active Minecraft client. It cannot run Minecraft commands, move the player, modify the world, interact with a server, load new chunks, or access full chat history, item/block-entity NBT, or chunks your client has not loaded. Game-file access is limited to the paired instance directory and paths outside it are rejected.
If ChatGPT is between tool calls, the Bridge queues messages. If the Bridge is unavailable, the Mod reports the problem and keeps up to 200 unsent messages in memory until it reconnects or Minecraft closes.
For the complete MCP tool reference, see CHANGELOG.md.
You only need these steps when a built Mod JAR and Bridge distribution are not available. Build the Bridge and the one client Mod you plan to use:
cd bridge
./gradlew installDistcd fabric
./gradlew buildOr, for NeoForge:
cd neoforge
./gradlew buildThe Bridge is written to bridge/build/install/minegpt-bridge. The Mod JAR is
written to the selected project's build/libs directory.
Set minegpt_version once in the repository-root
version.properties. Fabric, NeoForge, the Bridge
distribution, Mod metadata, and the Bridge MCP Server version all use that
value.