-
securityA
license-
qualityEnables AI agents to control Minecraft bots through a standardized JSON-RPC interface.
Last updated -
10
13
18
TypeScript
MIT License
Minecraft 的模型上下文协议 (MCP) 集成,使 AI 助手能够与 Minecraft 服务器交互。此集成允许 AI 模型通过机器人观察 Minecraft 世界并与之交互。
⚠️ 注意:目前仅在 macOS/Linux 上测试。不保证 Windows 兼容性。
~/minecraft-server/
)server.jar
文件放在此目录中server.jar
文件的绝对路径~/Library/Application Support/Claude/claude_desktop_config.json
⚠️ 将
/absolute/path/to/minecraft-server/server.jar
替换为你实际的 server.jar 路径
Minecraft Server
localhost:25565
集成公开了以下 MCP 资源:
minecraft://bot/location
- 机器人当前在世界上的位置minecraft://bot/status
- 机器人连接状态可用的 MCP 工具:
chat
- 向服务器发送聊天消息jump
- 让机器人跳跃moveForward
- 让机器人向前移动moveBack
- 使机器人向后移动turnLeft
- 让机器人左转turnRight
- 让机器人右转placeBlock
- 在指定坐标处放置一个块digBlock
- 在指定坐标处破坏一个块getBlockInfo
- 获取指定坐标处的块的信息selectSlot
- 选择快捷栏插槽 (0-8)getInventory
- 获取机器人库存的内容equipItem
- 按名称将物品装备到指定目的地getStatus
- 获取机器人的当前状态(健康、食物、位置等)getNearbyEntities
- 获取范围内的附近实体列表attack
- 通过名字攻击附近的实体useItem
- 使用/激活当前持有的物品stopUsingItem
- 停止使用/停用当前项目lookAt
- 让机器人查看特定坐标followPlayer
- 关注特定玩家stopFollowing
- 停止跟随当前目标goToPosition
导航到特定坐标~/Library/Logs/Claude/mcp*.log
欢迎任何大小贡献!
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/arjunkmrm/mcp-minecraft'
If you have feedback or need assistance with the MCP directory API, please join our Discord server