
fundamentallabs/minecraft-mcp 是从 https://github.com/fundamentallabs/minecraft-mcp. 导入的 MCP 候选服务器。
概览
fundamentallabs/minecraft-mcp 是从 https://github.com/fundamentallabs/minecraft-mcp. 导入的 MCP 候选服务器。
概述(AI 翻译)
该库是Minecraft Game Skills和MCP集成的客户端库。
Fairies MCP 客户端( )也支持单击直接连接。
特色
- 完全Minecraft控制:将AI代理连接到Minecraft服务器并控制机器人
- 30 验证技能:预建、测试的常见 Minecraft 技能
- 灵活连接:可通过可选的每个机器人配置连接到任何Minecraft服务器
- 多机器人支持:同时管理多个机器人
- MCP 标准:兼容任何 MCP 客户端(如 Claude Desktop 等)
安装
通过NPX直拨(推荐)
通过 npm(推荐)
来自源头
用途
启动服务器
你可以选择默认连接设置启动MCP服务器:
命令行选项
与 Claude Desktop 或 JSON 配置的本地集成
添加到你的Claude桌面配置(macOS上的~/Library/Application Support/Claude/claude_desktop_config.json):
远程安装(推荐)
如果是本地源代码运行:
将/path/to/minecraft-mcp替换为你克隆仓库的实际路径。
与其他MCP客户端的集成
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Fundamental Labs/Minecraft Client
This library is the Client library for a Minecraft Game Skills and MCP Integration.
Fairies MCP Client () also supports direct connection with a single click.
Features
- Full Minecraft Control: Connect AI agents to Minecraft servers and control bots
- 30 Verified Skills: Pre-built, tested skills for common Minecraft tasks
- Flexible Connection: Connect to any Minecraft server with optional per-bot configuration
- Multi-Bot Support: Manage multiple bots simultaneously
- MCP Standard: Compatible with any MCP client (Claude Desktop, etc.)
Installation
Direct call via npx (Recommended)
npx --y -- @fundamentallabs/minecraft-mcp
Via npm (Recommended)
npm install -g @fundamentallabs/minecraft-mcp
From Source
git clone https://github.com/FundamentalLabs/minecraft-mcp.git
cd minecraft-mcp/minecraft-client/mcp-server
npm install
npm run build
Usage
Starting the Server
You can start the MCP server with optional default connection settings:
# Start with no defaults (connection specified per bot)
minecraft-mcp
# Start with default connection settings
minecraft-mcp -h play.example.com -p 25565
Command Line Options
Options:
-p, --port Minecraft server port (default: 25565)
-h, --host Minecraft server host (default: localhost)
--help Display help
Integration with Claude Desktop or JSON configurations Locally
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
For remote installation (recommended)
{
"mcpServers": {
"minecraft": {
"command": "npx",
"args": ["-y", "-- @fundamentallabs/minecraft-mcp"]
}
}
}
If running locally from source:
{
"mcpServers": {
"minecraft": {
"command": "node",
"args": ["/path/to/minecraft-mcp/minecraft-client/mcp-server/dist/mcp-server.js"]
}
}
}
Replace /path/to/minecraft-mcp with the actual path where you cloned the repository.
Integration with Other MCP Clients
The server uses stdio transport and can be integrated with any MCP client:
# Using the MCP inspector for testing
cd minecraft-client/mcp-server
npx @modelcontextprotocol/inspector node dist/mcp-server.js -- -p 25565
Available Skills
Bot Management
-
joinGame - Spawn a new bot into the Minecraft game
username(required): Bot’s usernamehost(optional): Server host (defaults to ‘localhost’ or command line option)port(optional): Server port (defaults to 25565 or command line option)
-
leaveGame - Disconnect bot(s) from the game
username(optional): Specific bot to disconnectdisconnectAll(optional): Disconnect all bots if true
Movement & Navigation
- goToSomeone - Navigate to another player
安装
npx -y -- @fundamentallabs/minecraft-mcp配置
{
"mcpServers": {
"minecraft": {
"command": "npx",
"args": ["-y", "-- @fundamentallabs/minecraft-mcp"]
}
}
}