MCPMC (Minecraft MCP)
使 AI 代理能够通过标准化的 JSON-RPC 接口控制 Minecraft 机器人。
Tools
find_blocks
Find nearby blocks of specific types. Use this to locate building materials or identify terrain.
craft_item
Craft items using materials in inventory. Can use a crafting table if specified.
chat
Send a chat message to the server
navigate_relative
Make the bot walk relative to its current position. dx moves right(+)/left(-), dy moves up(+)/down(-), dz moves forward(+)/back(-) relative to bot's current position and orientation
dig_block_relative
Dig a single block relative to the bot's current position. dx moves right(+)/left(-), dy moves up(+)/down(-), dz moves forward(+)/back(-) relative to bot's current position and orientation
dig_area_relative
Dig multiple blocks in an area relative to the bot's current position. Coordinates use the same relative system as dig_block_relative. Use this for clearing spaces.
place_block
Place a block from the bot's inventory at the specified position. Use this for building structures.
inspect_inventory
Check the contents of the bot's inventory to see available materials.
follow_player
Make the bot follow a specific player
attack_entity
Attack a specific entity near the bot
README
MCPMC (Minecraft 模型上下文协议)
一个用于通过 Mineflayer 与 Minecraft 交互的模型上下文协议 (MCP) 服务器。 此软件包使 AI 代理能够通过标准化的 JSON-RPC 接口控制 Minecraft 机器人。
特性
- 完整的 MCP 兼容性,用于 AI 代理集成
- 构建于 Mineflayer 之上,实现可靠的 Minecraft 交互
- 支持导航、方块操作、库存管理等
- 实时游戏状态监控
- 具有 TypeScript 支持的类型安全 API
安装
# 使用 npm
npm install @gerred/mcpmc
# 使用 yarn
yarn add @gerred/mcpmc
# 使用 bun
bun add @gerred/mcpmc
用法
# 启动 MCP 服务器
mcpmc
服务器通过 stdin/stdout 使用模型上下文协议进行通信。 有关详细的 API 文档,请使用 MCP 检查器:
bun run inspector
开发
# 安装依赖
bun install
# 运行测试
bun test
# 构建项目
bun run build
# 开发期间的监听模式
bun run watch
# 运行 MCP 检查器
bun run inspector
贡献
欢迎贡献! 请按照以下步骤操作:
- Fork 仓库
- 为您的功能创建一个新分支
- 为您的更改编写测试
- 进行更改
- 运行测试并确保它们通过
- 提交 pull request
请确保根据需要更新测试并遵守现有的编码风格。
许可证
MIT 许可证
版权所有 (c) 2024 Gerred Dillon
特此授予任何人免费获得本软件及相关文档文件(“软件”)副本的许可,可以不受限制地处理本软件,包括但不限于使用、复制、修改、合并、发布、分发、再许可和/或销售本软件副本的权利,并允许向其提供本软件的人员这样做,但须符合以下条件:
上述版权声明和本许可声明应包含在本软件的所有副本或主要部分中。
本软件按“原样”提供,不提供任何形式的明示或暗示的保证,包括但不限于适销性、特定用途适用性和不侵权的保证。 在任何情况下,作者或版权所有者均不对任何索赔、损害或其他责任负责,无论是在合同诉讼、侵权诉讼或其他诉讼中,因本软件或本软件的使用或其他交易而引起或与之相关的任何索赔、损害或其他责任。
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。