Mindustry
БесплатноНе проверенEnables AI agents to control the MindustryX strategy game via a local TCP bridge for world state queries and game interactions.
Описание
Enables AI agents to control the MindustryX strategy game via a local TCP bridge for world state queries and game interactions.
README
依赖 / Dependency:https://github.com/BEK-Group/MindustryX
用于通过本机 AI bridge 控制 MindustryX 的 MCP 服务器。
环境要求
- Node.js 20+
- 带 AI bridge 的 MindustryX 桌面 jar
本 MCP 服务器会自动读取桥接文件并连接,使用者不需要手动填写端口。
MindustryX jar 是外部产物,不提交到本仓库。
默认 jar 路径:
artifacts/MindustryX-MCP-no-render.jar
artifacts/MindustryX-MCP-render.jar
也可在 launch_client 中传入 jarPath,或设置环境变量:
MINDUSTRYX_MCP_NO_RENDER_JAR
MINDUSTRYX_MCP_RENDER_JAR
安装
npm install
npm run build
npm start
建立连接
AI 使用流程
- 启动本 MCP 服务器,或让 MCP 客户端通过以下配置启动:
{
"mcpServers": {
"mindustry": {
"command": "node",
"args": [
"<path-to-Mindustry-MCP>/dist/index.js"
]
}
}
}
- 调用
launch_client工具。- 默认:启动
MindustryX-MCP-no-render.jar。 - 需要可见窗口调试时传
mode: "render"。
- 默认:启动
- 调用
get_state验证桥接。 - 用
load_map载入本地地图,或用join_game让 X 端连接服务器。 - 使用完由 MCP 拉起的客户端后,调用
close_client。
MCP prompt mindustry_client_usage 也提供同样的 AI 使用提示。
手动流程
也可以先手动启动 MindustryX AI bridge jar,再使用本 MCP server:
- 双击打开一个 MindustryX AI bridge jar。
MindustryX-MCP-render.jar:带渲染的普通桌面客户端。MindustryX-MCP-no-render.jar:默认关闭世界/UI 渲染的桌面客户端。 手动构建产物位于artifacts/。
- 等 MindustryX 启动完成,桥接文件会出现在
%TEMP%\mindustryx-ai-bridge\bridge-info.json。
连接后可先调用 get_state 验证桥接,再用 load_map 载入本地地图,或用 join_game 让 X 端连接服务器。
工具
- 客户端:
launch_client、close_client - 读取:
get_state、list_maps、get_tiles、get_buildings、get_units、get_content - 写入:
load_map、join_game、leave_game、place_block、break_block、write_logic、spawn_unit、set_speed、pause - 工具:
await_op
持续集成
仓库已包含 CI 工作流,会在每次 push 和 pull request 时运行 npm ci 和 npm run build。
源码 fork:https://github.com/BEK-Group/MindustryX
Mindustry MCP Server
Dependency: https://github.com/BEK-Group/MindustryX
MCP server for controlling MindustryX through its local AI bridge.
Requirements
- Node.js 20+
- A MindustryX desktop jar built with the AI bridge
The X client starts a local TCP bridge on 127.0.0.1 and writes connection metadata to:
%TEMP%\mindustryx-ai-bridge\bridge-info.json
This MCP server reads that file and connects automatically. Users do not need to enter the port manually.
The MindustryX jars are external artifacts. They are not committed to this repository.
Default jar paths:
artifacts/MindustryX-MCP-no-render.jar
artifacts/MindustryX-MCP-render.jar
You can also pass jarPath to launch_client, or set:
MINDUSTRYX_MCP_NO_RENDER_JAR
MINDUSTRYX_MCP_RENDER_JAR
Install
npm install
npm run build
npm start
Connect
AI workflow
- Start this MCP server, or let your MCP client launch it with:
{
"mcpServers": {
"mindustry": {
"command": "node",
"args": [
"<path-to-Mindustry-MCP>/dist/index.js"
]
}
}
}
- Call the
launch_clienttool.- Default: starts
MindustryX-MCP-no-render.jar. - Use
mode: "render"when a visible client is needed for debugging.
- Default: starts
- Call
get_stateto verify the bridge. - Use
load_mapto enter a local map, orjoin_gameto connect the X client to a server. - When done with a client launched by this MCP server, call
close_client.
The MCP prompt mindustry_client_usage contains the same AI-facing workflow for clients that expose prompts.
Manual workflow
You can still start a MindustryX AI bridge jar manually before using this MCP server:
- Double-click one of the MindustryX AI bridge jars.
MindustryX-MCP-render.jar: normal desktop client with rendering.MindustryX-MCP-no-render.jar: desktop client with world/UI rendering disabled by default. Manual build outputs are placed inartifacts/.
- Wait until MindustryX finishes startup. The bridge file should appear at
%TEMP%\mindustryx-ai-bridge\bridge-info.json.
After connection, use get_state to verify the bridge. Use load_map to enter a local map, or join_game to connect the X client to a server.
Tools
- Client:
launch_client,close_client - Read:
get_state,list_maps,get_tiles,get_buildings,get_units,get_content - Write:
load_map,join_game,leave_game,place_block,break_block,write_logic,spawn_unit,set_speed,pause - Utility:
await_op
GitHub Actions
The repository includes a CI workflow that runs npm ci and npm run build on every push and pull request.
MindustryX fork: https://github.com/BEK-Group/MindustryX
Установка Mindustry
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/determination-wind/mindustry-mcpFAQ
Mindustry MCP бесплатный?
Да, Mindustry MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Mindustry?
Нет, Mindustry работает без API-ключей и переменных окружения.
Mindustry — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Mindustry в Claude Desktop, Claude Code или Cursor?
Открой Mindustry на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Mindustry with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
