Minecraft Bedrock MCP Server
A TypeScript-based server that enables AI-powered control of Minecraft Bedrock Edition through 15 powerful tools for player movement, agent operations, world manipulation, and building complex structures.
README
Minecraft Bedrock MCP Server
日本語版 README はこちら / Japanese README here
A TypeScript-based MCP (Model Context Protocol) server that provides tools for controlling Minecraft Bedrock Edition via WebSocket connections.
🎮 Features
- 20+ Powerful Tools organized in a hierarchical system
- Level 1 Basic Tools: Player control, Agent (@c) operations, World manipulation
- Level 2 Advanced Tools: Complex building operations, advanced world management
- MCP Client Integration (e.g., Claude Desktop) for AI-powered Minecraft automation
- Type-safe TypeScript implementation with comprehensive error handling
🛠️ Available Tools
Player Control
player_position- Get player's current positionplayer_move- Move/teleport player to coordinatesplayer_say- Send messages as player
Agent Control (Education Edition)
agent_move- Move agent in directions or to coordinates ✅agent_turn- Turn agent left/right or set specific rotation ✅- ❌ Not supported in Bedrock Editionagent_attack- ❌ Not supported in Bedrock Editionagent_block_action
World Operations
world_block- World block operations (set, get, destroy)world_fill- Fill regions with advanced optionsworld_time_weather- Control time and weather
Building Tools
build_cube- Build solid or hollow cubesbuild_line- Build straight lines between pointsbuild_sphere- Build solid or hollow spheresbuild_paraboloid- Build paraboloid shapes (satellite dish)build_hyperboloid- Build hyperboloid shapes (cooling tower)build_cylinder- Build cylindrical structuresbuild_torus- Build torus/donut shapesbuild_helix- Build helical/spiral structuresbuild_ellipsoid- Build ellipsoidal shapesbuild_rotate- Rotate existing structuresbuild_transform- Transform and manipulate structures
Basic Communication
send_message- Send chat messagesexecute_command- Execute any Minecraft command
🚀 Quick Start
Prerequisites
- Node.js 16+
- Minecraft Bedrock Edition with cheats enabled
- MCP client (例: Claude Desktop, Continue, etc.)
Installation
- Clone the repository
git clone https://github.com/Mming-Lab/minecraft-bedrock-mcp-server.git
cd minecraft-bedrock-mcp-server
- Install dependencies
npm install
- Build the project
npm run build
- Start the server
npm start
Minecraft Connection
- Start the MCP server
npm start
Default port: 8001
-
Prepare Minecraft World
- Create or select a world with cheats enabled
- Disable all experimental features
- Use Creative mode for best results
-
Connect from Minecraft In Minecraft Bedrock Edition chat, run:
/connect localhost:8001/ws
- Verify Connection You should see connection logs in the MCP server console.
MCP Client Setup (例: Claude Desktop)
The server implements the MCP (Model Context Protocol) standard and can be used with any compatible MCP client.
Example: Claude Desktop configuration
-
Locate config file:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- Windows:
-
Add server configuration:
{
"mcpServers": {
"minecraft-bedrock-mcp-server": {
"command": "node",
"args": ["path/to/dist/server.js"]
}
}
}
- Custom port configuration:
{
"mcpServers": {
"minecraft-bedrock-mcp-server": {
"command": "node",
"args": ["path/to/dist/server.js", "--port=8002"]
}
}
}
- Restart your MCP client to load the new configuration
For other MCP clients, refer to their respective documentation for server registration.
📖 Documentation
Comprehensive documentation is available for contributors and developers. Contact the maintainers for detailed setup guides and architecture documentation.
💻 Development
Available Scripts
npm run build # Compile TypeScript to JavaScript
npm start # Start the compiled server
npm run dev # Build and start in one command
Port Configuration
The server port can be configured via command line argument:
--port=8002- Set custom port- Default:
8001
Project Structure
src/
├── server.ts # Main server implementation
├── types.ts # TypeScript type definitions
└── tools/ # Tool implementations
├── base/tool.ts # Abstract base class
├── player/ # Player control tools
├── agent/ # Agent control tools
├── world/ # World manipulation tools
└── build/ # Building tools
🤝 Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- MCP Protocol for the specification
- Sandertv/mcwss for WebSocket protocol analysis and message structure reference
⚠️ Requirements
- Minecraft Bedrock Edition with cheats enabled
- WebSocket connections enabled in world settings
- World with appropriate permissions for command execution
🔧 Troubleshooting
Connection Issues
Server won't start:
- Ensure Node.js 16+ is installed
- Check if port 8001 is already in use:
netstat -ano | findstr :8001 - Try a different port with
--port=8002
Minecraft connection fails:
- Verify world settings:
- Cheats must be enabled
- Disable all experimental features
- Use Creative mode
- Check connection command:
/connect localhost:8001/ws - Firewall settings:
- Ensure port 8001 is allowed through Windows Defender
- Check antivirus software isn't blocking connections
MCP client integration issues:
- Verify config file path and syntax (例: Claude Desktop)
- Restart your MCP client completely
- Check server logs for MCP protocol errors
- Ensure file paths in config are absolute paths
Common Error Messages
EADDRINUSE: Port already in use - try different portConnection refused: Server not running or wrong portunknown message purpose ws:encrypt: Normal during connection setup
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。