Skip to main content
Glama

Minecraft MCP Server

by leo4life2

buildSomething

Create complex Minecraft structures using command scripts or dynamic JavaScript code. Execute commands like fill, clone, setblock, and summon for precise building control on Minecraft servers with cheats enabled.

Instructions

Build structures using Minecraft commands (requires cheats/operator permissions). Supports two modes: 1) buildScript - array of command objects like [{"command": "fill", "x1": 0, "y1": 64, "z1": 0, "x2": 10, "y2": 70, "z2": 10, "block": "stone"}], 2) code - JavaScript string for dynamic building like "for(let i = 0; i < 10; i++) { setBlock(pos.x + i, pos.y, pos.z, 'stone'); }"

Input Schema

NameRequiredDescriptionDefault
buildScriptNoArray of build commands. Supported commands: setblock (place single block), fill (fill region), clone (copy region), summon (spawn entities), give (give items), raw (execute raw command). Each command is an object with command type and parameters.
codeNoJavaScript code string for dynamic building. Available functions: setBlock(x,y,z,block), fill(x1,y1,z1,x2,y2,z2,block,mode?), clone(x1,y1,z1,x2,y2,z2,dx,dy,dz,mode?), summon(entity,x?,y?,z?), give(item,count?), execute(command), wait(ticks), log(message). Variables: bot, pos (bot position), Math, shouldStop().

Input Schema (JSON Schema)

{ "properties": { "buildScript": { "description": "Array of build commands. Supported commands: setblock (place single block), fill (fill region), clone (copy region), summon (spawn entities), give (give items), raw (execute raw command). Each command is an object with command type and parameters.", "items": { "properties": { "block": { "description": "Block type (for setblock/fill)", "type": "string" }, "command": { "description": "The command type: setblock, fill, clone, summon, give, or raw", "type": "string" }, "count": { "description": "Item count (for give)", "type": "number" }, "dx": { "description": "Destination X coordinate (for clone)", "type": "number" }, "dy": { "description": "Destination Y coordinate (for clone)", "type": "number" }, "dz": { "description": "Destination Z coordinate (for clone)", "type": "number" }, "entity": { "description": "Entity type (for summon)", "type": "string" }, "item": { "description": "Item type (for give)", "type": "string" }, "mode": { "description": "Mode (for fill/clone)", "type": "string" }, "raw": { "description": "Raw command string (for raw command)", "type": "string" }, "x": { "description": "X coordinate (for setblock)", "type": "number" }, "x1": { "description": "Start X coordinate (for fill/clone)", "type": "number" }, "x2": { "description": "End X coordinate (for fill/clone)", "type": "number" }, "y": { "description": "Y coordinate (for setblock)", "type": "number" }, "y1": { "description": "Start Y coordinate (for fill/clone)", "type": "number" }, "y2": { "description": "End Y coordinate (for fill/clone)", "type": "number" }, "z": { "description": "Z coordinate (for setblock)", "type": "number" }, "z1": { "description": "Start Z coordinate (for fill/clone)", "type": "number" }, "z2": { "description": "End Z coordinate (for fill/clone)", "type": "number" } }, "required": [ "command" ], "type": "object" }, "type": "array" }, "code": { "description": "JavaScript code string for dynamic building. Available functions: setBlock(x,y,z,block), fill(x1,y1,z1,x2,y2,z2,block,mode?), clone(x1,y1,z1,x2,y2,z2,dx,dy,dz,mode?), summon(entity,x?,y?,z?), give(item,count?), execute(command), wait(ticks), log(message). Variables: bot, pos (bot position), Math, shouldStop().", "type": "string" } }, "required": [], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/leo4life2/minecraft-mcp-http'

If you have feedback or need assistance with the MCP directory API, please join our Discord server