cobble-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cobble-mcpbuild a small house next to me"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Cobble MCP ๐งฑ๐ค
Created and maintained by Brian Mwirigi, Cobble MCP transforms a standard Minecraft bot into a sentient, survival-ready AI companion.
Cobble MCP operates on a dual-engine architecture:
Full Model Context Protocol (MCP) Server: Directly controls Minecraft through Claude Desktop, Antigravity IDE, Cursor, or any MCP-compatible AI client.
Autonomous Gemini 2.5 Companion Brain: A built-in real-time perception engine with 360-degree spatial awareness, survival reflex watchdogs, combat bodyguard instincts, and voice/chat interaction.
๐ Key Features
๐ก๏ธ Autonomous Bodyguard & Threat Radar
22-Meter Dual Radar: Continuously scans the environment around both the bot and the player.
Auto-Engage Combat: The moment a threat enters the perimeter, the bot draws its weapon, pathfinds dynamically toward the mob, and strikes until defeated.
Boss & Flying Combat: Extended hit reach and aerial pursuit for Ender Dragons, Withers, Wardens, Endermen, and all standard hostile mobs.
Auto-Equip Arsenal: Instantly equips best armor (Netherite/Diamond) and highest-damage weapon prior to swinging.
Seamless Follow Resumption: Automatically gathers dropped loot and runs back to your side the moment combat ends.
๐ถ House-Safe Player Escort & Navigation
Anti-Grief Pathfinder: Configured with
canDig = falseandallow1by1towers = falseso the bot never breaks walls, roofs, or doors when navigating inside player houses.Dynamic Tracking: Follows moving players smoothly with door-opening and parkour abilities.
๐๏ธ Architectural Survey & Multi-Phase Construction
Site Survey Engine (
survey-site): Scans topography, elevation profiles, ground slope, clearance volume, and obstacle densities before building.Voxel Construction Engine (
build,mc_build): Multi-phase bottom-to-top automated construction with material calculations, error recovery, and pause/resume tracking.Automated Blueprints: Build emergency bunkers, domes, shelters, houses, walls, and towers on demand.
โ๏ธ Smart Gathering & Inventory Sharing
Heuristic Mining (
gather-resource): Automatically selects the optimal harvest tool (axes for logs/wood, pickaxes for stone/ores, shovels for dirt/sand).Item Gifting (
drop-item): Tossa weapons, armor, or mined materials directly to the player at any time.
๐ฒ Survival & Reflex Watchdogs
Auto-Eat Watchdog: Monitors hunger and health, proactively consuming high-saturation food (Golden Carrots, Cooked Beef, Enchanted Apples).
Hazard Avoidance: Automatically douses fire by jumping into nearby water, sleeps through the night in nearby beds, or digs emergency survival shelters when trapped.
Related MCP server: MCP Minecraft Remote
๐ Available MCP Tools (30+)
Category | Tools | Description |
Combat & Defense |
| Autonomous mob hunting, health checks, tactical retreat |
Survey & Building |
| Terrain analysis, blueprint construction, status tracking |
Gathering & Inventory |
| Smart resource mining, drop pickup, inventory management |
Movement & Flight |
| Precise navigation, aerial creative flight, camera control |
World Interaction |
| Block manipulation, inspection, furnace management |
Survival & Social |
| Nutrition, resting, chat communication, gamemode checks |
๐ Getting Started
Prerequisites
Node.js:
>= 20.10.0Git
Minecraft Java Edition: Tested with version
1.21.x
Installation
# Clone the repository
git clone https://github.com/brian-mwirigi/cobble-mcp.git
cd cobble-mcp
# Install dependencies
npm install
# Build the project
npm run buildSetup Environment
Create a .env file in the project root:
# Optional: Required if using autonomous Gemini in-game companion chat
GEMINI_API_KEY=your_gemini_api_key_here๐ค Using with Claude Desktop
Open your Claude Desktop configuration file:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Add the cobble-mcp server:
{
"mcpServers": {
"minecraft": {
"command": "node",
"args": [
"C:/path/to/cobble-mcp/dist/main.js",
"--host",
"localhost",
"--port",
"25565",
"--username",
"ClaudeBot"
]
}
}
}For remote multiplayer or hosted servers (e.g. Aternos):
Set--host to your server address (e.g. yourserver.aternos.me) and --port to your server's assigned port.
๐ฎ Running Minecraft
Launch Minecraft Java Edition
1.21.x.Start a singleplayer world and open it to LAN (
ESC$\rightarrow$ Open to LAN), or join your server.Start Claude Desktop or run the standalone companion:
npm start -- --host localhost --port 25565 --username AntigravityBot๐งช Testing
Cobble MCP comes with a comprehensive suite of 140+ unit and integration tests:
npm test๐ค Author
Brian Mwirigi
GitHub: @brian-mwirigi
Repository: brian-mwirigi/cobble-mcp
๐ License
This project is licensed under the MIT License.
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
An MCP server that integrates with Discord to provide AI-powered features.
One connector for 15,000+ MCP servers plus your team's private MCPs, from any AI client.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAllows AI models to observe and interact with the Minecraft world through a bot.8 npm100MIT
- AlicenseCqualityDmaintenanceAllows AI assistants to connect to and control Minecraft players on remote servers, enabling navigation, building, mining, inventory management, entity interaction, and chat communication through natural language commands.2710 npm13MIT
- AlicenseNot gradedqualityFmaintenanceEnables AI-driven interactions with Minecraft through a WebSocket-based server and MCP protocol, allowing external MCP clients and in-game chat to trigger AI tools.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to remotely control a Minecraft player, including navigation, mining, building, and interaction with the world and other players.MIT