This MCP server allows AI assistants like Claude to interact with a Minecraft server through a bot. The integration enables AI models to observe the game world and control a character within Minecraft.
⚠️ Note: Currently only tested on macOS/Linux. Windows compatibility is not guaranteed.
Press F3 + P together to turn off the "Pause on Lost Focus" feature. This allows you to switch to Claude desktop while keeping Minecraft running.
If you restart Claude while the Minecraft server is running, you may experience MCP connection issues due to lingering Java processes. See the Troubleshooting section for resolution steps.
~/minecraft-server/
)server.jar
file in this directoryserver.jar
fileQuick Install (Recommended):
npx -y @smithery/cli install mcp-minecraft --client claude
Follow the CLI prompts to complete the setup.
Manual Setup:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"mcp-minecraft": {
"command": "npx",
"args": [
"-y",
"mcp-minecraft@latest",
"--server-jar",
"/absolute/path/to/minecraft-server/server.jar"
]
}
}
}
⚠️ Replace
/absolute/path/to/minecraft-server/server.jar
with your actual server.jar path
Start Claude Desktop after completing the configuration.
Minecraft Server
localhost:25565
The integration exposes these MCP resources:
minecraft://bot/location
- Current bot position in the worldminecraft://bot/status
- Bot connection statusAvailable MCP tools:
chat
- Send chat messages to the serverjump
- Make the bot jumpmoveForward
- Make the bot move forwardmoveBack
- Make the bot move backwardturnLeft
- Make the bot turn leftturnRight
- Make the bot turn rightplaceBlock
- Place a block at specified coordinatesdigBlock
- Break a block at specified coordinatesgetBlockInfo
- Get information about a block at specified coordinatesselectSlot
- Select a hotbar slot (0-8)getInventory
- Get contents of bot's inventoryequipItem
- Equip an item by name to specified destinationgetStatus
- Get bot's current status (health, food, position, etc.)getNearbyEntities
- Get list of nearby entities within rangeattack
- Attack a nearby entity by nameuseItem
- Use/activate the currently held itemstopUsingItem
- Stop using/deactivate the current itemlookAt
- Make the bot look at specific coordinatesfollowPlayer
- Follow a specific playerstopFollowing
- Stop following current targetgoToPosition
- Navigate to specific coordinates~/Library/Logs/Claude/mcp*.log
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.