Logotipo de Minecraft Mod MCP

Minecraft Mod MCP

Comunidad
langyo

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

Editorlangyo
Repositoriominecraft-mod-mcp
IdiomaPython
Forks
6
Estrellas
43
Herramientas disponibles
0
Tipo de transportestdio
LicenciaApache-2.0
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    Minecraft Mod MCP ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 0 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    43 estrellas y 6 forks en el repositorio enlazado.

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.

Usa el MCP de Minecraft Mod MCP con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado Minecraft Mod MCP, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade Minecraft Mod MCP como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de Minecraft Mod MCP.
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "minecraft-mod-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de Minecraft Mod MCP y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de Minecraft Mod MCP.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar Minecraft Mod MCP para ayudarme con esta tarea?
Minecraft Mod MCP
Claro. Lo he leído.
Esto he encontrado usando Minecraft Mod MCP.

Preguntas frecuentes

¿Para qué sirve el servidor MCP Minecraft Mod MCP?

Minecraft Mod MCP es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP Minecraft Mod MCP con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar Minecraft Mod MCP con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de Minecraft Mod MCP con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con Minecraft Mod MCP conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP Minecraft Mod MCP a TypingMind?

Minecraft Mod MCP funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP Minecraft Mod MCP en TypingMind?

Minecraft Mod MCP ofrece funciones MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP Minecraft Mod MCP?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si Minecraft Mod MCP requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇