Minecraft Mod MCPのロゴ

Minecraft Mod MCP

コミュニティ
langyo

Multi-Version, Multi-Modloader Minecraft MCP (Model Context Protocol) Mod for building mods

公開者langyo
リポジトリminecraft-mod-mcp
言語Python
フォーク
6
スター
43
利用可能なツール
0
通信方式stdio
ライセンスApache-2.0
リンク
  • ツールをAIワークフローに接続

    Minecraft Mod MCPは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには43件のスターと6件のフォークがあります。

Minecraft Mod MCP

AI-powered mod development toolkit — build, test, and debug Minecraft mods with AI

License Java Release npm

English • 简体中文 • 繁體中文 • 日本語 • 한국어 • Français • Español • Русский

🤖 Connect Your AI to Minecraft

Copy this link and paste it to your AI agent — it will configure itself automatically:

https://github.com/langyo/minecraft-mod-mcp/blob/master/docs/guides/en/AI-TOOLS.md

Your AI reads the guide, sets up the MCP connection, and starts controlling the game. No manual config needed.

Already have the mod installed? That one link is all you need.


What is Minecraft Mod MCP

Minecraft Mod MCP is a mod designed for AI-assisted mod development. It exposes Minecraft's internals to AI tools via the MCP protocol, letting your AI agent inspect screens, click through GUIs, and run commands — perfect for testing mods, verifying behavior, and automating repetitive workflows.

Built for mod developers — test your GUIs, verify block/item behavior, and run smoke tests on new features.

  • See — capture screenshots with coordinate grids
  • Act — click, type, scroll, drag, and press any key
  • Know — query player position, world info, screen buttons, and debug fields
  • Record — stream events in real time via SSE

Supported Versions

MC VersionForgeFabricNeoForge
26.2⬇⬇⬇
26.3⬇⬇⬇
26.1.2⬇—⬇
1.21.11⬇⬇⬇

Older versions (1.7.2 – 1.21.10) are available on the releases page.


Getting Started

1. Install the Mod

Download the JAR from GitHub Releases and place it in your Minecraft mods folder.

  • Requires Forge, Fabric, or NeoForge (see supported versions above)
  • Works with Minecraft 1.7.2 through 26.3

2. Install the MCP Bridge

bash
npm install -g minecraft-mod-mcp

Or run without installing:

bash
npx minecraft-mod-mcp

3. Launch Minecraft

Launch the game with your modloader. The mod starts an HTTP server on port 9876 automatically.

4. Connect Your AI

→ AI Tool Integration Guide — step-by-step for Claude Code, Cursor, Cline, Copilot, and 20+ other AI tools.

Or paste this link to your AI agent and let it handle the setup:

https://github.com/langyo/minecraft-mod-mcp/blob/master/docs/guides/en/AI-TOOLS.md

5. Using the CLI

→ CLI Usage Guide — launch clients, servers, manage versions, accounts, and build SDKs all from the command line.


Usage Tips

Working alongside the mod

Normally, switching away from Minecraft opens the pause screen, which can interrupt MCP commands. Use either method to break free:

  • Pause screen: Press Esc to open the pause screen, then click the MCP overlay's release mouse button. This lets you switch windows freely without re-triggering the pause screen.
  • In-game overlay: In the 3D view, click the MCP overlay button in the top-right corner to temporarily detach the mouse cursor. Once released, you can Alt+Tab away and the game won't auto-pause — perfect for working in your IDE or AI tool while the MCP connection stays alive.

Port & HTTP server

The mod starts an HTTP server when the game loads. It tries port 9876 first; if occupied it falls back through 9875 → 9874 → ... → 9000 until it finds a free one. Set a fixed port with -Dmcp.port=XXXX (JVM arg) or MC_MCP_PORT (env).

To confirm which port the mod chose:

  • GET /api/status returns version, loader, port, pid, uptime — the Node.js bridge uses this to auto-discover the mod on any port
  • Open http://localhost:{port}/debug in your browser for a live dashboard with MCP logs, SSE events, and connection status

The version and loader (Forge/Fabric/NeoForge) are confirmed at handshake via /api/status so both the bridge and the debug page know exactly which mod environment they're talking to.

Background input mode (driving a client in the background)

On Windows, a Minecraft window launched by a background process still counts as "focused" to GLFW, so while an agent drives the client the mod's cursor moves (glfwSetCursorPos) and cursor locking (GLFW_CURSOR_DISABLED) would move and confine your real desktop cursor, even though the game window stays behind your other windows.

If an agent or CI drives the client while you keep working, enable background input mode with -Dmcp.background_input=true (JVM arg) or MC_MCP_BACKGROUND_INPUT=1 (env). In this mode the mod:

  • only edits Minecraft-internal mouse state (window-local xpos/ypos) instead of calling glfwSetCursorPos;
  • never locks or confines the OS cursor when entering/leaving MCP control mode, and releases any confinement vanilla itself applies;
  • never falls back to java.awt.Robot, whose injected clicks/keystrokes would land on whatever window is actually in front.

How It Works

The mod runs an HTTP server on port 9876 inside Minecraft. Your AI tool talks MCP over stdio to the minecraft-mod-mcp bridge, which forwards every command — click, type, screenshot, etc. — to the mod; Java reflection makes it work across all Minecraft versions without version-specific code.


Building from Source

This section is for contributors. If you just want to use the mod, see Getting Started above.

See CONTRIBUTING.md for development setup, project structure, and guidelines.


License

Licensed under any of:

at your option.

Minecraft Mod MCPのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Minecraft Mod MCPに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Minecraft Mod MCPをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Minecraft Mod MCPのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "minecraft-mod-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてMinecraft Mod MCPのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Minecraft Mod MCPのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Minecraft Mod MCPを使ってこのタスクを手伝ってもらえますか?
Minecraft Mod MCP
はい、読みました。
Minecraft Mod MCPで調べた結果をお伝えします。

よくある質問

Minecraft Mod MCP MCPサーバーは何に使いますか?

Minecraft Mod MCPは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでMinecraft Mod MCP MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでMinecraft Mod MCPを利用できます。

TypingMindでMinecraft Mod MCP MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Minecraft Mod MCPを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Minecraft Mod MCP MCPをTypingMindに接続するにはどうすればよいですか?

Minecraft Mod MCPはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでMinecraft Mod MCP MCPのどのようなツールを利用できますか?

Minecraft Mod MCPはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Minecraft Mod MCP MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Minecraft Mod MCPで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇