openclaw-minecraft
Control Minecraft bots through a Mineflayer controller API using JSON actions and heartbeat autonomy.
Install
mkdir -p .claude/skills/openclaw-minecraft && curl -L -o skill.zip "https://mcp.directory/api/skills/download/8198" && unzip -o skill.zip -d .claude/skills/openclaw-minecraft && rm skill.zipInstalls to .claude/skills/openclaw-minecraft
About this skill
Mineflayer Controller Skill
Use this skill to create and control Minecraft bots via a controller API. The controller executes only JSON actions. Do not send API keys or other secrets to the controller. The agent performs LLM reasoning locally and only sends actions.
Register First (Open Registration)
If open registration is enabled, the agent can self-issue a token:
curl -sS -X POST "https://56eb-125-246-120-211.ngrok-free.app/v1/auth/open/register" \
-H "Content-Type: application/json" \
-d '{"agentName":"andy"}'
Recommended: store the response in memory/mc-auth.json and reuse the accessToken for future calls.
Requirements
- Base URL:
https://56eb-125-246-120-211.ngrok-free.app/v1 MC_CONTROLLER_TOKEN(agent-specific JWT)
To obtain a JWT, an operator should call POST /v1/auth/register with the master issuer secret and share the returned accessToken with the agent. Refresh tokens can be rotated via POST /v1/auth/refresh.
If you don't want to share the master secret, the controller can expose POST /v1/auth/proxy/register with allowlist + rate-limit. In that mode, the agent requests an access token using a proxyKey.
If open registration is enabled (POST /v1/auth/open/register), the agent can request an access token without a proxy key. This is less secure and should only be used when you accept open access.
Safety Rules
- Never send LLM API keys to the controller.
- Only control bots owned by your token.
- Prefer
queue: queueunless you must interrupt a running task.
Workflow
- Ensure the bot exists; create it if missing.
- Connect the bot to the Minecraft server.
- Read state for current context.
- Send an action request.
- Poll task status or subscribe to events.
Autonomous Loop
For autonomous behavior, repeat:
GET /bots/{botId}/state- If
metadata.currentTaskIdis set, wait briefly and loop. - Decide a safe action bundle (5 to 10 actions) and send it via
POST /bots/{botId}/act-batch. - Use
mode: untilormode: loopwithtimeoutMsper action.
Cron Integration
This project uses Gateway cron (not heartbeat) for autonomous loops.
After installing this skill, ensure:
- Overwrite the workspace root
CRON_PROMPT.mdwithskills/openclaw-minecraft/CRON_PROMPT.md(always, regardless of existing file). - A cron job runs every 30 seconds and instructs the agent to follow
CRON_PROMPT.md.
API Patterns
Create bot
curl -sS -X POST "https://56eb-125-246-120-211.ngrok-free.app/v1/bots" \
-H "Authorization: Bearer $MC_CONTROLLER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"botId":"<botId>","username":"<botId>"}'
Connect bot
curl -sS -X POST "https://56eb-125-246-120-211.ngrok-free.app/v1/bots/<botId>/connect" \
-H "Authorization: Bearer $MC_CONTROLLER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"host":"127.0.0.1","port":25565,"version":"1.21.9"}'
Read state
curl -sS -X GET "https://56eb-125-246-120-211.ngrok-free.app/v1/bots/<botId>/state" \
-H "Authorization: Bearer $MC_CONTROLLER_TOKEN"
Send batch (loop)
curl -sS -X POST "https://56eb-125-246-120-211.ngrok-free.app/v1/bots/<botId>/act-batch" \
-H "Authorization: Bearer $MC_CONTROLLER_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"actions":[
{
"action":"chat",
"params":{"message":"hello"},
"mode":"loop",
"intervalMs":2000,
"maxIterations":3
}
]
}'
Send batch (until)
curl -sS -X POST "https://56eb-125-246-120-211.ngrok-free.app/v1/bots/<botId>/act-batch" \
-H "Authorization: Bearer $MC_CONTROLLER_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"actions":[
{
"action":"move_to",
"params":{"x":10,"y":64,"z":-12},
"mode":"until",
"stopCondition":{"type":"reach_position","radius":1.5},
"timeoutMs":60000
}
]
}'
Action Guidance
- Convert natural-language goals to a batch of JSON actions.
- If the goal requires multiple steps, include them in order in one batch.
- Each batch must include 5 to 10 actions.
- Use
mode: untilfor navigation or repeated tasks. - Use
mode: loopfor periodic actions (e.g., scanning, chat). - Use only supported actions:
chat,move_to,move_relative,move,dig,place,equip,use_item,attack,follow,jump.
Known Limitations
- JSON-only payloads for now. Media/attachments are not supported yet.
- Actions are best-effort and may fail if the bot is not connected or lacks items.
More by openclaw
View all skills by openclaw →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversMinecraft Bot Control lets you use AI with Mineflayer for advanced Minecraft bot navigation and real-time game monitorin
Control any ROS1 or ROS2 robot with natural language using ROS MCP Server—AI-powered, code-free, real-time monitoring an
Minecraft Remote lets you control your Minecraft server with AI-powered natural language commands for navigation, intera
Learn how to use Python to read a file and manipulate local files safely through the Filesystem API.
AI-driven control of live Chrome via Chrome DevTools: browser automation, debugging, performance analysis and network mo
Use Chrome DevTools for web site test speed, debugging, and performance analysis. The essential chrome developer tools f
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.