Provides source code access through GitHub repository for direct installation.
Enables dynamic building of structures in Minecraft using JavaScript code within the buildSomething skill.
Support for macOS configuration paths for Claude Desktop integration.
Requires Node.js runtime environment for operation.
Available through npm package registry for installation.
Fundamental Labs/Minecraft Client
This library is the Client library for a Minecraft Game Skills and MCP Integration.
Fairies MCP Client (https://fairies.ai/) also supports direct connection with a single click.
Features
- Full Minecraft Control: Connect AI agents to Minecraft servers and control bots
- 30 Verified Skills: Pre-built, tested skills for common Minecraft tasks
- Flexible Connection: Connect to any Minecraft server with optional per-bot configuration
- Multi-Bot Support: Manage multiple bots simultaneously
- MCP Standard: Compatible with any MCP client (Claude Desktop, etc.)
Installation
Direct call via npx (Recommended)
Via npm (Recommended)
From Source
Usage
Starting the Server
You can start the MCP server with optional default connection settings:
Command Line Options
Integration with Claude Desktop or JSON configurations Locally
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json
on macOS):
For remote installation (recommended)
If running locally from source:
Replace /path/to/minecraft-mcp
with the actual path where you cloned the repository.
Integration with Other MCP Clients
The server uses stdio transport and can be integrated with any MCP client:
Available Skills
Bot Management
- joinGame - Spawn a new bot into the Minecraft game
username
(required): Bot's usernamehost
(optional): Server host (defaults to 'localhost' or command line option)port
(optional): Server port (defaults to 25565 or command line option)
- leaveGame - Disconnect bot(s) from the game
username
(optional): Specific bot to disconnectdisconnectAll
(optional): Disconnect all bots if true
Movement & Navigation
- goToSomeone - Navigate to another player
- goToKnownLocation - Navigate to specific coordinates
- runAway - Run away from threats
- swimToLand - Swim to nearest land when in water
Combat & Hunting
- attackSomeone - Attack players, mobs, or animals
- hunt - Hunt animals or mobs
Resource Gathering
- mineResource - Mine specific blocks or resources
- harvestMatureCrops - Harvest mature crops from farmland
- pickupItem - Pick up items from the ground
Crafting & Smelting
- craftItems - Craft items using a crafting table
- cookItem - Cook items in a furnace
- smeltItem - Smelt items in a furnace
- retrieveItemsFromNearbyFurnace - Get smelted items from furnace
Inventory Management
- openInventory - Open the bot's inventory
- equipItem - Equip armor, tools, or weapons
- dropItem - Drop items from inventory
- giveItemToSomeone - Give items to another player
Building & Farming
- placeItemNearYou - Place blocks near the bot
- prepareLandForFarming - Prepare land for farming
- useItemOnBlockOrEntity - Use items on blocks or entities
Survival
- eatFood - Eat food to restore hunger
- rest - Rest to regain health
- sleepInNearbyBed - Find and sleep in a bed
Storage
- openNearbyChest - Open a nearby chest
Fun
- dance - Make the bot dance
Vision
- lookAround - Look around and observe the environment
Communication
- readChat - Read recent chat messages from the server
- sendChat - Send chat messages or commands to the server
Building
- buildSomething - Build structures using Minecraft commands (requires cheats/operator permissions). Supports both static command arrays and dynamic JavaScript code.
- buildPixelArt - Build pixel art from an image in Minecraft (requires cheats/operator permissions). Converts an image to pixel art using colored blocks. Maximum size is 256x256 blocks.
API Example
When integrated with an MCP client, you can control the bot like this:
Architecture
The MCP server:
- Uses stdio transport for communication with AI clients
- Dynamically loads skills from the verified skills directory
- Manages multiple bot instances (currently uses the first bot for all operations)
- Provides a unified interface for all bot actions
Requirements
- Node.js >= 18.0.0
- A Minecraft server (Java Edition) to connect to
- An MCP-compatible client (like Claude Desktop)
Troubleshooting
"Skill implementation not found" Error
The MCP server needs to be run from the cloned repository with built skills. Make sure you:
- Cloned the full repository
- Ran
npm install
in the minecraft-client directory - Ran
npm run build
in the minecraft-client directory - Are running the MCP server from the correct directory
Bot won't connect
- Ensure your Minecraft server is running and accessible
- Check that the port and host are correct
- Verify the server allows the Minecraft version the bot uses
Skills not working
- Make sure the bot has spawned successfully before using skills
- Some skills require specific items or conditions
- Check the bot's console output for error messages
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT - see LICENSE file for details
Support
For issues and feature requests, please use the GitHub issue tracker.
Testing
To test with the Anthropic MPC inspector
'npx @modelcontextprotocol/inspector node ./dist/mcp-server.js'
This server cannot be installed
A client library that connects AI agents to Minecraft servers, providing full game control with 30 verified skills for common tasks including movement, combat, crafting, and building.
Related MCP Servers
- -securityAlicense-qualityAllows AI models to observe and interact with the Minecraft world through a bot.Last updated -1050TypeScriptMIT License
- -securityAlicense-qualityEnables AI agents to control Minecraft bots through a standardized JSON-RPC interface.Last updated -101318TypeScriptMIT License
- -securityAlicense-qualityA server that enables AI assistants to understand and interact with Unity projects in real-time, providing access to scene hierarchy, project settings, and the ability to execute code directly in the Unity Editor.Last updated -40MIT License
- AsecurityAlicenseAqualityA Minecraft MCP Server powered by Mineflayer API. It allows to control a Minecraft character in real-time, allowing AI assistants to build structures, explore the world, and interact with the game environment through natural language instructionLast updated -14109TypeScriptApache 2.0