minecraft-mcp-server
by yuniko-software·★ 578·综合分 51
Minecraft MCP服务器通过Mineflayer API使AI助手能够控制游戏角色。
概述
这个MCP服务器通过模型上下文协议在AI模型和Minecraft游戏之间提供全面接口。它允许Claude和其他兼容AI系统实时控制Minecraft角色,实现构建结构、探索环境和执行游戏内命令等复杂交互。服务器实现了各种直接映射到Minecraft游戏机制的运动、物品管理、方块交互和通信工具。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
如果您想在教育目的、游戏环境中AI能力演示或Minecraft内自主探索和建造方面集成AI能力,请选择此MCP服务器。
什么时候不要选它
如果您需要支持1.21.11以外的Minecraft版本,或者需要具有强大错误处理功能和广泛功能集的生产级自动化系统,请不要选择此服务器。
此 server 暴露的工具
从 README 抽取出 12 个工具get-positionGet the current position of the bot in the Minecraft world
move-to-positionMove to specific coordinates in the world
look-atMake the bot look at specific coordinates
jumpMake the bot jump
move-in-directionMove in a specific direction for a duration
fly-toMake the bot fly directly to specific coordinates
list-inventoryList all items in the bot's inventory
find-itemFind a specific item in inventory
equip-itemEquip a specific item
place-blockPlace a block at specified coordinates
dig-blockDig a block at specified coordinates
get-block-infoGet information about a block
可对比工具
安装
先决条件
- Node.js (>= 20.10.0)
- 运行中的Minecraft游戏(已测试1.21.8 Java版)
- MCP兼容客户端(示例使用Claude Desktop)
安装步骤
- 打开Minecraft创建单人世界,然后打开局域网(ESC -> 打开局域网)
- 安装Claude Desktop并打开
文件 -> 设置 -> 开发者 -> 编辑配置 - 在
claude_desktop_config.json中添加以下MCP服务器配置:
{
"mcpServers": {
"minecraft": {
"command": "npx",
"args": [
"-y",
"github:yuniko-software/minecraft-mcp-server",
"--host",
"localhost",
"--port",
"25565",
"--username",
"ClaudeBot"
]
}
}
}- 完全重启Claude Desktop
FAQ
- 支持哪些Minecraft版本?
- 当前支持Minecraft版本1.21.11。新版本可能不兼容,但将尽快添加支持。
- 我可以在Claude以外的AI客户端上使用吗?
- 可以,这个MCP服务器旨在与任何MCP兼容的客户端配合使用,不仅限于Claude Desktop。
minecraft-mcp-server 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。