MCP Minecraft Remote
允许人工智能助手连接和控制远程服务器上的 Minecraft 玩家,从而可以通过自然语言命令实现导航、建造、挖掘、库存管理、实体互动和聊天通信。
Tools
getPosition
Get the current position of the player in the Minecraft world
moveTo
Move the player to a specific location
connectToServer
Connect to a Minecraft server with the specified credentials
disconnectFromServer
Disconnect from the Minecraft server
sendChat
Send a chat message to the Minecraft server
moveControl
Control the player with basic movement commands
lookAt
Make the player look in a specific direction or at coordinates
digBlock
Dig a block at the specified coordinates
placeBlock
Place a block at the specified location
getNearbyPlayers
Get a list of players nearby
getServerInfo
Get information about the currently connected server
checkInventory
Check the items in the player inventory
equipItem
Equip an item from inventory to hand or armor slot
inventoryDetails
Get detailed information about inventory items
tossItem
Throw items from inventory
getNearbyEntities
Get a list of all entities nearby
attackEntity
Attack a specific entity
useOnEntity
Use held item on a specific entity
followEntity
Follow a specific entity
openContainer
Open a container (chest, furnace, etc.) at specific coordinates
withdrawItem
Take items from an open container
depositItem
Put items into an open container
closeContainer
Close the currently open container
getRecipes
Get a list of available crafting recipes
craftItem
Craft an item using available materials
listTrades
List available trades from a nearby villager
tradeWithVillager
Trade with a nearby villager
README
MCP Minecraft 远程控制
本项目灵感来源于 arjunkmrm 的 mcp-minecraft。虽然原项目仅支持本地 Minecraft 服务器连接,但本项目从头开始创建,增加了对连接远程 Minecraft 服务器的支持。
使用 MCP (模型上下文协议) 进行 Minecraft 远程控制。
功能
- 通过 AI 助手连接和控制 Minecraft 玩家
- 导航、挖掘、建造和与 Minecraft 世界互动
- 与服务器上的其他玩家聊天
- 检查库存、玩家位置和服务器信息
- 高级移动控制,包括跳跃、潜行和冲刺
- 实体互动,包括攻击和跟随
- 容器使用(箱子、熔炉等)
- 物品制作和村民交易
- 详细的库存管理
安装
快速安装 (推荐)
npx -y @smithery/cli install mcp-minecraft-remote --client claude
按照 CLI 提示完成设置。
手动安装
# 从 npm 安装
npm install -g mcp-minecraft-remote
# 或者克隆仓库
git clone https://github.com/nacal/mcp-minecraft-remote.git
cd mcp-minecraft-remote
# 安装依赖
npm install
# 构建项目
npm run build
使用
与 Claude Desktop 一起使用
-
导航到 Claude Desktop 配置文件:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- Windows:
-
将 Minecraft Remote MCP 配置添加到您的配置文件:
{
"mcpServers": {
"minecraft-remote": {
"command": "npx",
"args": ["-y", "mcp-minecraft-remote@latest"]
}
}
}
如果您已全局安装:
{
"mcpServers": {
"minecraft-remote": {
"command": "mcp-minecraft-remote"
}
}
}
如果您已在本地克隆了存储库:
{
"mcpServers": {
"minecraft-remote": {
"command": "node",
"args": ["/absolute/path/to/mcp-minecraft-remote/build/index.js"]
}
}
}
- 保存文件并重启 Claude Desktop
- 与 Claude 开始新的对话,并开始使用 Minecraft 控制命令
重要的服务器要求
- 服务器在线模式: Minecraft 服务器必须在 server.properties 文件中设置
online-mode=false。 这允许机器人连接,而无需针对 Minecraft 的会话服务器进行身份验证。 - 如果使用需要身份验证的服务器,则需要在连接时提供有效的付费帐户凭据。
可用工具
核心功能
connectToServer: 连接到具有指定凭据的 Minecraft 服务器disconnectFromServer: 断开与 Minecraft 服务器的连接sendChat: 向服务器发送聊天消息getServerInfo: 获取有关连接服务器的信息
移动
getPosition: 获取当前玩家位置moveTo: 移动到特定坐标moveControl: 基本移动控制(前进、后退、左、右、跳跃、冲刺、潜行、停止)lookAt: 使玩家看向特定方向或坐标
世界互动
digBlock: 挖掘特定坐标的方块placeBlock: 在特定坐标放置方块
库存管理
checkInventory: 基本库存检查inventoryDetails: 获取有关库存物品的详细信息equipItem: 将库存中的物品装备到手上或盔甲槽中tossItem: 从库存中扔出物品
实体互动
getNearbyPlayers: 获取附近玩家列表getNearbyEntities: 获取附近所有实体的列表attackEntity: 攻击特定实体useOnEntity: 在特定实体上使用手持物品followEntity: 跟随特定实体
容器互动
openContainer: 在特定坐标打开容器(箱子、熔炉等)withdrawItem: 从打开的容器中取出物品depositItem: 将物品放入打开的容器中closeContainer: 关闭当前打开的容器
制作
getRecipes: 获取可用制作配方列表craftItem: 使用可用材料制作物品
交易
listTrades: 列出附近村民提供的可用交易tradeWithVillager: 与附近村民交易
示例提示
基本控制
- "连接到 play.example.com 的 Minecraft 服务器,用户名为 player1"
- "我在游戏中的当前位置是什么?"
- "将我移动到坐标 x=100, y=64, z=-200"
- "让我向前走 3 秒钟"
- "让我跳跃并冲刺向那座山"
库存和物品
- "详细检查我的库存里有什么"
- "将我的钻石剑装备到我的手上"
- "从我的库存中扔出 5 个泥土块"
方块互动
- "挖掘坐标 x=10, y=65, z=20 的方块"
- "在坐标 x=11, y=65, z=20 放置一个石头块"
实体互动
- "附近有其他玩家吗?"
- "在我 20 个方块范围内有哪些实体?"
- "攻击 ID 为 12345 的僵尸"
- "跟随名为 Steve 的玩家"
容器使用
- "打开坐标 x=100, y=64, z=200 的箱子"
- "从箱子里取出 10 个铁锭"
- "将 5 个圆石放入箱子"
- "关闭容器"
制作和交易
- "我有哪些可用于制作木镐的配方?"
- "使用我库存中的木头制作 4 根木棍"
- "检查附近村民提供的交易"
- "与村民交易以获得 10 个绿宝石"
通讯
- "向聊天发送一条问候消息"
- "告诉大家我找到了钻石"
要求
- Node.js 18+
- 支持 MCP 的 AI 助手(如 Claude)
- Minecraft Java 版服务器(1.8 或更高版本)
注意: 此工具已经过测试和验证,可以专门与 vanilla Minecraft 1.21 一起使用。 虽然它可能与其他版本或修改后的服务器一起使用,但不保证兼容性。
许可证
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 模型以安全和受控的方式获取实时的网络信息。