HomeJavaModsMCP Server mod
MCP Server mod
ModsJava

MCP Server mod

by cuspymd · on Modrinth

A Fabric mod that implements a Model Context Protocol (MCP) server, enabling AI assistants like Claude to interact with Minecraft through structured…

⬇ Download on Modrinth

🤖 MCP Server Mod

Transform your Minecraft experience by connecting AI assistants directly to your game!

MCP Server Mod implements the Model Context Protocol (MCP) standard, creating a streamable HTTP server that allows Large Language Models like Claude, GPT, and other AI assistants to interact with your Minecraft world through structured commands.

✨ What This Mod Does

This mod runs a streamable HTTP server on port 8080 that accepts MCP protocol requests, enabling AI assistants to:

🛠️ Available Tools

1. execute_commands - Command Execution

Execute Minecraft commands with comprehensive safety validation:

2. get_player_info - Comprehensive Player Status

Get detailed information about the player:

Perfect for: Context-aware building, player-relative commands, status monitoring

3. get_blocks_in_area - World Analysis

Scan rectangular areas to analyze structures:

4. take_screenshot - Visual Inspection

Capture the current Minecraft game screen as an MCP image response.

Important behavior:

🚀 How to Use

Installation

  1. Install Fabric Loader 0.16.14+ for Minecraft 1.21.4
  2. Install Fabric API 0.119.3+1.21.4
  3. Place this mod in your mods folder
  4. Launch Minecraft - the MCP server starts automatically on http://localhost:8080/mcp

⚠️ Important: Command Permissions

Before using AI command tools, command input must be allowed:

⚠️ Important: Disable "Pause on Lost Focus"

CRITICAL STEP: You must disable Minecraft's "Pause on Lost Focus" setting to allow AI interactions while switching between applications:

Without this change, the game will pause every time you switch to your AI editor, preventing commands from executing properly.

Connecting AI Code Editors (Direct Support)

Cursor IDE

  1. Add MCP server configuration in Cursor settings
  2. Use HTTP transport: http://localhost:8080/mcp
  3. Start coding with AI assistance that can control Minecraft!
{
  "mcpServers": {
    "minecraft": {
      "url": "http://localhost:8080/mcp"
    }
  }
}

Windsurf IDE

  1. Configure MCP connection in Windsurf
  2. Connect to: http://localhost:8080/mcp
  3. Enable AI-powered Minecraft interactions

VS Code with Extensions

Connecting Other AI Assistants

Claude Code

Since Claude Code uses stdio transport, you'll need a proxy:

  1. Install mcp-proxy or similar stdio-to-HTTP bridge
  2. Configure proxy to convert stdio ↔ streamable HTTP
  3. Connect Claude Code to the proxy

Example AI Interactions

"Build me a small house" → AI uses get_player_info to find your location, then execute_commands to place blocks

"What blocks are around me?"→ AI uses get_blocks_in_area to scan nearby areas and reports findings

"Clear this area and build a farm" → AI combines multiple tools to analyze, clear, and construct

🔧 Technical Details

🆘 Troubleshooting

Server won't start?

AI can't connect?

Commands not working?

Game keeps pausing?

🔗 Links

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more