
arjunkmrm/mcp-minecraft
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
arjunkmrm/mcp-minecraft — это кандидат на MCP-сервер, импортированный из https://github.com/arjunkmrm/mcp-minecraft.
Обзор
arjunkmrm/mcp-minecraft — это кандидат на MCP-сервер, импортированный из https://github.com/arjunkmrm/mcp-minecraft.
Обзор (машинный перевод)
Интеграция с протоколом контекста модели (MCP) для Minecraft, позволяющая ассистентам ИИ взаимодействовать с сервером Minecraft. Эта интеграция позволяет моделям ИИ наблюдать и взаимодействовать с миром Minecraft через бота.
Предварительные требования
- Launcher Minecraft
- Node.js 18 лет и выше
- Десктопное приложение Claude
- Java 21.0.5 (рекомендую)
⚠️ Примечание: В настоящее время тестировалось только на macOS/Linux. Совместимость с Windows не гарантируется.
Важное замечание
-
Используйте ярлык F3+P: Нажмите F3 + P вместе. Это включает функцию «Пауза при потере фокуса». После выключения можно переключиться на рабочий стол Claude, и Minecraft продолжит работу без паузы.
-
Проблемы с подключением на Claude Restart: Если вы перезапустите Claude во время работы сервера Minecraft, при следующем запуске Claude могут возникнуть проблемы с подключением MCP из-за затяжного процесса Java. См. раздел «Устранение неполадок: MCP Connection Failed» для шагов по разрешению.
Этапы установки
- Скачать и настроить сервер Minecraft
- Скачать сервер Minecraft v1.21 с mcversions.net/1.21
- Установите Java 21.0.5, если она ещё не установлена (другие версии не протестированы)
- Создать выделенный каталог (например,
~/minecraft-server/)
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Minecraft MCP Integration
A Model Context Protocol (MCP) integration for Minecraft that enables AI assistants to interact with a Minecraft server. This integration allows AI models to observe and interact with the Minecraft world through a bot.
Prerequisites
- Minecraft Launcher
- Node.js 18 or higher
- Claude Desktop App
- Java 21.0.5 (recommended)
⚠️ Note: Currently only tested on macOS/Linux. Windows compatibility is not guaranteed.
Important Note
- Use the F3+P Shortcut: Press F3 + P together. This toggles the “Pause on Lost Focus” feature. Once turned off, you can switch to claude desktop and Minecraft will continue running without pausing.
- Connection Issues on Claude Restart: If you restart Claude while the Minecraft server is running, you may experience MCP connection issues on the next claude launch due to lingering java process. See Troubleshooting: MCP Connection Failed for resolution steps.
Installation Steps
-
Download and Setup Minecraft Server
- Download Minecraft server v1.21 from mcversions.net/1.21
- Install Java 21.0.5 if not already installed (other versions are untested)
- Create a dedicated directory (e.g.,
~/minecraft-server/) - Place the downloaded
server.jarfile in this directory - Note down the absolute path to your
server.jarfile
-
Install and Configure MCP Integration
Quick Install (Recommended):
npx -y @smithery/cli install mcp-minecraft --client claudeFollow the CLI prompts to complete the setup.
Or Manual Setup:
- Navigate to
~/Library/Application Support/Claude/claude_desktop_config.json - Add the MCP server configuration:
{ "mcpServers": { "mcp-minecraft": { "command": "npx", "args": [ "-y", "mcp-minecraft@latest", "--server-jar", "/absolute/path/to/minecraft-server/server.jar" ] } } }⚠️ Replace
/absolute/path/to/minecraft-server/server.jarwith your actual server.jar path - Navigate to
-
Launch Claude Desktop
- Start Claude Desktop after completing the configuration
-
Connect to Server
- Open Minecraft Launcher
- Install and launch Minecraft Java Edition v1.21
- Click “Play” and Select “Multiplayer”
- Click “Add Server”
- Enter server details:
- Server Name:
Minecraft Server - Server Address:
localhost:25565
- Server Name:
- Click “Done”
Features
Resources
The integration exposes these MCP resources:
minecraft://bot/location- Current bot position in the worldminecraft://bot/status- Bot connection status
Tools
Available MCP tools:
chat- Send chat messages to the serverjump- Make the bot jumpmoveForward- Make the bot move forward
Установка
npx -y mcp-minecraft@latest --server-jar /absolute/path/to/minecraft-server/server.jarКонфигурация
{
"mcpServers": {
"mcp-minecraft": {
"command": "npx",
"args": [
"-y",
"mcp-minecraft@latest",
"--server-jar",
"/absolute/path/to/minecraft-server/server.jar"
]
}
}
}