Minecraft Dedalus MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "DEDALUS_API_KEY=${DEDALUS_API_KEY}" minecraft-mcp -- uv run mcp_server.py
Required:DEDALUS_API_KEY+ 3 optional
README.md

Control a Minecraft bot via natural language commands

Minecraft Dedalus MCP

LAN-oriented Minecraft MCP stack: Python MCP server + Node Mineflayer bridge. Control a bot via the Dedalus agent or in-game chat as natural language commands.

New in v2: Skill library, multi-step planning, persistent world memory, freeform building from natural language, smelting/furnace automation, error recovery with retry, and a creative/survival mode toggle.


Quick start (one command)

Get everything running and command the bot from in-game chat:

  1. Open Minecraft Java Edition, start a world, and click Open to LAN. Note the port (e.g. 61246).

  2. Expose your MCP server so the cloud agent can reach it (required for chat commands):

    ngrok http 8000
    

    Copy the https://... URL (e.g. https://abc123.ngrok.io).

  3. Run the one-command launcher (bridge + MCP server + join game + chat agent):

    export DEDALUS_API_KEY=your_key_here
    uv run python run_live_chat.py --join-host 192.168.68.70 --join-port 61246
    

    Use your machine's LAN IP for --join-host (or 127.0.0.1 if the world is on this machine). Use the port shown in-game for --join-port. Put MINECRAFT_PORT and MINECRAFT_HOST in .env to avoid passing --join-* each time. Add --auth offline to skip the Microsoft login (recommended for LAN worlds).

  4. In Minecraft chat, type natural language commands. Examples:

    • mine 10 dirt
    • go to the tree
    • build a 5x5 house with oak planks
    • attack the zombie
    • switch to creative mode and give me 64 diamonds
    • create a plan to get iron tools

What this project is

  • Python MCP server – Exposes 60+ Minecraft bot actions as MCP tools (move, mine, place, attack, craft, chat, plan, remember, build, smelt, and more). Built on dedalus_mcp.
  • Node bridge – Connects to a real Minecraft (Java) client via Mineflayer. Handles pathfinding (including breaking/placing blocks in the way), digging, placing, combat, inventory, smelting, and slash commands.
  • Simulation mode – Test the stack without a live game (simulated world and tools).
  • Skill library – Save and reuse multi-step tool sequences (Voyager-inspired).
  • Multi-step planner – Decompose goals into checkpointed execution plans.
  • World memory – Persistent storage of locations, resources, and structures across sessions.
  • Creative/Survival modes – Creative mode unlocks teleport, give, fill, summon, time, weather. Survival mode keeps legit pathfinding and resource gathering.
  • Freeform building – Describe structures in natural language (house, tower, bridge, farm, stairs, fence, pool, platform, pillar).
  • Error recovery – Automatic retries with alternative positions and resources when tools fail.
  • Autonomous survival mode – Say "start autonomous" in chat and the bot plays the game on its own (inspect → plan → execute → learn). Say "stop" to return to command mode.

Requirements

  • Python 3.10+ (e.g. via uv)
  • Node 20+, npm 10+
  • Minecraft Java Edition for real LAN play (world opened to LAN, or a server)
  • Dedalus API key for the agent (DEDALUS_API_KEY in .env or environment)
  • ngrok (or similar) if you want the cloud agent to respond to in-game chat

Setup

uv sync --extra dev
npm --prefix bridge install

Copy the example env file and fill in your values:

cp .env.example .env
# Edit .env: set DEDALUS_API_KEY, MINECRAFT_PORT (e.g. your LAN port), etc.

Environment variables (`.env` format)

Variable Purpose Default / example
DEDALUS_API_KEY Dedalus API key (required for chat agent) (required)
MINECRAFT_HOST Minecraft server host for join_game 127.0.0.1
MINECRAFT_PORT Minecraft server port (e.g. LAN port from "Open to LAN") 25565 → set to e.g. 61246
MINECRAFT_USERNAME Bot username in-game DedalusBot
AGENT_MCP_URL MCP URL the agent uses. Default is local. Set to public URL for cloud agent. (optional)
MCP_SERVER_URL Local MCP server URL for scripts http://127.0.0.1:8000/mcp
DEDALUS_MODEL Model for the agent openai/gpt-5.2
MINECRAFT_MCP_DATA_DIR Directory for persistent data (skills, memory, plans, session) .minecraft_mcp_data

Ways to run

1. One command: bridge + MCP + join + chat agent

export DEDALUS_API_KEY=your_key_here
uv run python run_live_chat.py --join-host YOUR_LAN_IP --join-port LAN_PORT --agent-mcp-url https://YOUR_NGROK_URL/mcp

2. Manual: bridge + MCP server in separate terminals

Terminal 1 – Bridge

npm --prefix bridge run start -- --listen-host 0.0.0.0 --listen-port 8787

Terminal 2 – MCP server

Tools (5)

moveNavigate the bot to a specific location or coordinate.
mineInstruct the bot to mine a specific block or quantity of items.
buildConstruct structures based on natural language descriptions.
attackEngage in combat with a specified entity.
craftCraft items using available resources in the inventory.

Environment Variables

DEDALUS_API_KEYrequiredDedalus API key required for the chat agent
MINECRAFT_HOSTMinecraft server host for join_game
MINECRAFT_PORTMinecraft server port
MINECRAFT_USERNAMEBot username in-game

Configuration

claude_desktop_config.json
{ "mcpServers": { "minecraft": { "command": "uv", "args": ["run", "mcp_server.py"], "env": { "DEDALUS_API_KEY": "your_key_here", "MINECRAFT_HOST": "127.0.0.1", "MINECRAFT_PORT": "25565" } } } }

Try it

Mine 10 dirt blocks and bring them to my current location.
Build a 5x5 house using oak planks.
Switch to creative mode and give me 64 diamonds.
Create a plan to gather enough resources for iron tools.
Start autonomous mode and survive the night.

Frequently Asked Questions

What are the key features of Minecraft Dedalus MCP?

60+ Minecraft bot actions exposed as MCP tools. Multi-step planning for complex goal decomposition. Persistent world memory for locations and resources. Freeform building from natural language descriptions. Autonomous survival mode with self-directed inspection and execution.

What can I use Minecraft Dedalus MCP for?

Automating repetitive resource gathering tasks in survival mode. Rapidly constructing complex structures using natural language. Testing AI agent planning capabilities in a simulated environment. Creating autonomous bots that can survive and learn in-game.

How do I install Minecraft Dedalus MCP?

Install Minecraft Dedalus MCP by running: uv sync --extra dev && npm --prefix bridge install

What MCP clients work with Minecraft Dedalus MCP?

Minecraft Dedalus MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Minecraft Dedalus MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare