MCP Minecraft Remote
Enables AI assistants to remotely control a Minecraft player, including navigation, mining, building, and interaction with the world and other players.
README
MCP Minecraft Remote
This project is inspired by mcp-minecraft by arjunkmrm. While the original only supported local Minecraft server connections, this project was newly created from scratch to add support for connecting to remote Minecraft servers.
Minecraft Remote Control using MCP (Model Context Protocol).
Features
- Connect to and control a Minecraft player via an AI assistant
- Navigate, mine, build, and interact with the Minecraft world
- Chat with other players on the server
- Check inventory, player position, and server information
- Advanced movement control including jumping, sneaking, and sprinting
- Entity interaction including attacking and following
- Container usage (chests, furnaces, etc.)
- Item crafting and villager trading
- Detailed inventory management
Smart Features & Autonomous Capabilities
- Stuck Detection & Recovery: The bot intelligently detects if it's stuck while moving. If it cannot make progress, it cancels the operation and suggests solutions (jumping, digging).
- Death Handling: If the bot dies while performing a task, it immediately stops, reports its death location, and protects itself from getting into a broken state.
- Smart Movement:
moveToPlayer: Can dynamically find and travel to a specific player's moving position.- Includes announcement capability to notify players in chat before moving.
- Auto-Eat (Survival): The
eattool intelligently manages hunger. It won't waste food if hunger is full and automatically selects the best available food from the inventory. - Smart Resource Collection: The
collectBlockstool uses "Vein Mining" logic. When cutting a tree or mining an ore vein, it smartly checks connected blocks (prioritizing vertical for trees) instead of blindly searching the world, making it much more efficient.
Installation
Quick Install (Recommended)
npx -y mcp-minecraft-remote@latest
Follow the CLI prompts to complete the setup.
Manual Installation
# Install from npm
npm install -g mcp-minecraft-remote
# Or clone the repository
git clone https://github.com/hudayiarici/mcp-minecraft-remote.git
cd mcp-minecraft-remote
# Install dependencies
npm install
# Build the project
npm run build
Usage
Using with Claude Desktop
-
Navigate to Claude Desktop configuration file:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- Windows:
-
Add the Minecraft Remote MCP configuration to your configuration file:
{
"mcpServers": {
"minecraft-remote": {
"command": "npx",
"args": ["-y", "mcp-minecraft-remote@latest"]
}
}
}
If you've installed it globally:
{
"mcpServers": {
"minecraft-remote": {
"command": "mcp-minecraft-remote"
}
}
}
If you've cloned the repository locally:
{
"mcpServers": {
"minecraft-remote": {
"command": "node",
"args": ["/absolute/path/to/mcp-minecraft-remote/build/index.js"]
}
}
}
- Save the file and restart Claude Desktop
- Start a new conversation with Claude and begin using the Minecraft control commands
Important Server Requirements
- Server Online Mode: The Minecraft server must have
online-mode=falseset in the server.properties file. This allows the bot to connect without authentication against Minecraft's session servers. - If using a server with authentication, you'll need to provide valid premium account credentials when connecting.
Available Tools
Core Functionality
connectToServer: Connect to a Minecraft server with specified credentialsdisconnectFromServer: Disconnect from the Minecraft serversendChat: Send a chat message to the servergetServerInfo: Get information about the connected server
Movement
getPosition: Get current player positionmoveTo: Move to specific coordinatesmoveControl: Basic movement controls (forward, back, left, right, jump, sprint, sneak, stop)lookAt: Make the player look in a specific direction or at coordinates
World Interaction
digBlock: Mine a block at specific coordinatesplaceBlock: Place a block at specific coordinatescollectBlocks: Smartly collect blocks of a specific type (e.g. "oak_log") using vein-mining logic (follows connected blocks).
Inventory Management
checkInventory: Basic inventory checkinventoryDetails: Get detailed information about inventory itemsequipItem: Equip an item from inventory to hand or armor slottossItem: Throw items from inventory
Entity Interaction
getNearbyPlayers: Get list of nearby playersgetNearbyEntities: Get a list of all entities nearbyattackEntity: Attack a specific entityuseOnEntity: Use held item on a specific entityfollowEntity: Follow a specific entity
Container Interaction
openContainer: Open a container (chest, furnace, etc.) at specific coordinateswithdrawItem: Take items from an open containerdepositItem: Put items into an open containercloseContainer: Close the currently open container
Crafting
getRecipes: Get a list of available crafting recipescraftItem: Craft an item using available materials
Trading
listTrades: List available trades from a nearby villagertradeWithVillager: Trade with a nearby villager
Example Prompts
Basic Controls
- "Connect to the Minecraft server at play.example.com with the username player1"
- "What is my current position in the game?"
- "Move me to coordinates x=100, y=64, z=-200"
- "Make me walk forward for 3 seconds"
- "Make me jump and sprint toward that mountain"
Inventory & Items
- "Check what's in my inventory in detail"
- "Equip my diamond sword to my hand"
- "Throw 5 dirt blocks from my inventory"
Block Interaction
- "Dig the block at coordinates x=10, y=65, z=20"
- "Place a stone block at coordinates x=11, y=65, z=20"
Entity Interaction
- "Are there any other players nearby?"
- "What entities are within 20 blocks of me?"
- "Attack the zombie with ID 12345"
- "Follow the player named Steve"
Container Usage
- "Open the chest at coordinates x=100, y=64, z=200"
- "Take 10 iron ingots from the chest"
- "Put 5 cobblestone in the chest"
- "Close the container"
Crafting & Trading
- "What recipes do I have available for a wooden pickaxe?"
- "Craft 4 sticks using the wood in my inventory"
- "Check what trades the nearby villager offers"
- "Trade with the villager to get 10 emeralds"
Communication
- "Send a hello message to the chat"
- "Tell everyone that I found diamonds"
Requirements
- Node.js 18+
- An AI assistant that supports MCP (like Claude)
- A Minecraft Java Edition server (version 1.8 or later)
Note: This tool has been tested and verified to work specifically with vanilla Minecraft 1.21. While it may function with other versions or modded servers, compatibility is not guaranteed.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。