loading…
Search for a command to run...
loading…
Enables Claude to execute Minecraft commands and get tab completions through the MasterControl API. Allows remote command execution and command discovery while
Enables Claude to execute Minecraft commands and get tab completions through the MasterControl API. Allows remote command execution and command discovery while the player is online on a server.
An MCP (Model Context Protocol) server that enables Claude to execute Minecraft commands and get tab completions through the MasterControl API.
This MCP server provides two tools:
execute_commandExecute any Minecraft command remotely as the authenticated player.
Examples:
execute_command("gamemode creative")
execute_command("island help") # Shows island command help
execute_command("island upgrade help") # Shows upgrade subcommand help
execute_command("island upgrade speed 5")
tab_completeGet tab completion suggestions for partial commands.
Examples:
tab_complete("gamemode ") # Returns: survival, creative, adventure, spectator
tab_complete("island ") # Returns: available island subcommands
uv package manager (install here)Clone the repo:
git clone https://github.com/<your-user>/minecraft-mcp-server.git
cd minecraft-mcp-server
Install dependencies:
uv sync
Configure environment variables:
cp .env.example .env
Edit .env with your settings:
# Required: Your Midnight API key
MIDNIGHT_API_KEY=your-api-key-here
# Optional: MasterControl API URL (defaults to localhost:8080)
MIDNIGHT_API_URL=http://your-server:8080/api/v2
Run the server directly to test:
uv run server.py
It will wait for stdio input — that's expected for an MCP server. Ctrl+C to exit.
Add the server to Claude Code (use the absolute path to your cloned repo):
claude mcp add midnight \
--transport stdio \
--env MIDNIGHT_API_KEY=your-key-here \
--env MIDNIGHT_API_URL=http://localhost:8080/api/v2 \
-- uv --directory /absolute/path/to/minecraft-mcp-server run server.py
In Claude Code, check that the server is running:
/mcp
You should see midnight listed with status ✓ Connected.
Execute Commands:
You: "Change my gamemode to creative"
Claude: [Uses execute_command("gamemode creative")]
✓ Command executed successfully
Get Command Help:
You: "How do I use the island upgrade command?"
Claude: [Uses execute_command("island upgrade help")]
Shows the help output for island upgrade
Explore Commands:
You: "What island commands are available?"
Claude: [Uses tab_complete("island ")]
Lists: upgrade, create, delete, invite, members...
| Variable | Required | Default | Description |
|---|---|---|---|
MIDNIGHT_API_KEY |
Yes | - | Your player's API key |
MIDNIGHT_API_URL |
No | http://localhost:8080/api/v2 |
MasterControl API base URL |
POST /api/v2/command/execute — Execute commandsPOST /api/v2/command/tabComplete — Get tab completionsCreate a .env file:
echo "MIDNIGHT_API_KEY=your-key-here" > .env
Check that:
.env — it contains your API key (already excluded via .gitignore)Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"minecraft-command-execution-mcp-server": {
"command": "npx",
"args": []
}
}
}Web content fetching and conversion for efficient LLM usage.
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also