AI-Powered Minecraft Building β Build structures through natural-language conversations with Claude.
βββββββββββββββ MCP βββββββββββββββ WebSocket βββββββββββββββ
β Claude βββββββββββββββΊβ VibeCraft ββββββββββββββββΊβ Minecraft β
β (AI Chat) β Protocol β MCP Server β Bridge β Client Mod β
βββββββββββββββ βββββββββββββββ βββββββββββββββ
β
βΌ
βββββββββββββββ
β Minecraft β
β Server β
βββββββββββββββ
- You chat with Claude asking it to build something
- Claude sends commands to the VibeCraft MCP server
- The server forwards commands to the Fabric client mod via WebSocket
- The client mod executes commands in Minecraft as your player
Works with any Minecraft server β vanilla, Paper, Spigot, or modded. WorldEdit optional.
- Python 3.10+ with uv package manager
- Java 21 (for Minecraft 1.21.x) or Java 17 (for 1.20.x)
- jq for build script:
brew install jq - Minecraft Java Edition with a launcher like Prism
cd client-mod
./build.sh 1.21.1 # Replace with your Minecraft versionOutput: build/release/vibecraft-client-0.1.0-mc1.21.1.jar
Supported versions
| Minecraft | Java |
|---|---|
| 1.21.4 | 21 |
| 1.21.3 | 21 |
| 1.21.1 | 21 |
| 1.21 | 21 |
| 1.20.6 | 21 |
| 1.20.4 | 17 |
| 1.20.1 | 17 |
Run ./build.sh --list to see all versions.
- Create instance: Add Instance β Select Minecraft version β OK
- Add Fabric: Edit β Version β Install Loader β Fabric β OK
- Add Fabric API: Mods β Download mods β Search "Fabric API" β Select β OK
- Add VibeCraft: Mods β Add file β Select
vibecraft-client-*.jar - Launch and join a world/server
In Minecraft chat:
/vibecraft allow
cd mcp-server
uv syncAdd to ~/.claude.json:
{
"projects": {
"/path/to/vibecraft/agent": {
"mcpServers": {
"vibecraft": {
"type": "sse",
"url": "http://127.0.0.1:8765/sse"
}
}
}
}
}cd mcp-server
./start-vibecraft.shcd agent
claudeYou're ready! Ask Claude to build something:
"Build me a small stone cottage"
See docs/SETUP_GUIDE.md for:
- Alternative launcher instructions
- Stdio mode configuration
- Troubleshooting
- WorldEdit configuration
| Variable | Default | Description |
|---|---|---|
VIBECRAFT_CLIENT_HOST |
127.0.0.1 |
Client mod WebSocket host |
VIBECRAFT_CLIENT_PORT |
8766 |
Client mod WebSocket port |
VIBECRAFT_CLIENT_PATH |
/vibecraft |
WebSocket path |
VIBECRAFT_WORLDEDIT_MODE |
auto |
auto, force, or off |
offβ Use vanilla/filland/setblockcommands onlyautoβ Detect WorldEdit availability, fall back to vanillaforceβ Require WorldEdit, fail if not available
Set VIBECRAFT_WORLDEDIT_MODE=off if you don't have WorldEdit installed.
Run these in Minecraft:
| Command | Description |
|---|---|
/vibecraft status |
Show bridge status |
/vibecraft allow |
Enable AI control |
/vibecraft deny |
Disable AI control |
/vibecraft token <value> |
Set authentication token |
/vibecraft port <number> |
Change WebSocket port |
/vibecraft restart |
Restart the bridge |
Once connected, ask Claude to build things:
User: "Build me a small cottage near my position"
Claude: "I see these players online: Steve, Alex. Which player should I build near?"
User: "Steve"
Claude: *builds cottage using /fill and /setblock commands*
For the best building experience, run Claude from the agent/ folder:
cd agent
claudeThis folder has:
- Pre-configured
.mcp.json - Building skills and workflows
- Material guides and templates
Make sure you're using the exact player name (case-sensitive).
The client mod might not be capturing command output. Update to the latest mod version.
The block doesn't exist in your Minecraft version. Use blocks from your version.
Set VIBECRAFT_WORLDEDIT_MODE=off if you don't have WorldEdit installed.
- Make sure Minecraft is running with the mod
- Run
/vibecraft statusto check the bridge - Run
/vibecraft allowto enable AI control - Check that ports match (default: 8766)
The client mod approach above works with any server. For headless environments or server-side automation without a Minecraft client, you can use direct RCON:
./setup-all.sh # Starts Minecraft server in Docker with RCONThis is useful for CI/testing but has limitations (no multiplayer, requires server access). See docs/CONFIGURATION.md for details.
vibecraft/
βββ agent/ # Run Claude here to BUILD in Minecraft
β βββ .claude/skills/ # Building skills and workflows
β βββ context/ # Material guides, templates
β βββ .mcp.json # MCP server config
β βββ CLAUDE.md # Agent system prompt
β
βββ client-mod/ # Fabric client mod (Java)
β βββ src/ # Mod source code
β βββ build.gradle # Gradle build config
β βββ README.md # Mod-specific docs
β
βββ mcp-server/ # MCP server (Python)
β βββ src/vibecraft/ # Server source code
β βββ server_http.py # SSE mode entry point
β βββ start-vibecraft.sh # SSE mode launcher
β βββ pyproject.toml # Python dependencies
β
βββ README.md # This file
Contributions welcome! See CONTRIBUTING.md.
MIT License - see LICENSE.
- π§ Email: evan@amentilabs.com
- π Issues: GitHub Issues
Happy building! π§±
