Minehut MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Minehut MCP start my server and send a welcome message to players"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
⛏️ Minehut MCP
Let any AI agent fully manage your Minehut Minecraft server.
Works with Claude Code, Codex, opencode, Cursor, Hermes and any other MCP client.
What it does
Two complementary layers, one install:
Layer | Tools | What the AI can do |
🖥️ Browser automation (Playwright) |
| Drive the real Minehut dashboard like a human. Handles Cloudflare, the login form, and every UI feature: plugins, players, world settings, files, billing, skins. This is the "do everything" layer. |
⚡ Minehut API (REST) |
| Fast, scriptable control. Start/stop servers, send console commands ( |
Plus minehut_help for an in-server guide.
Related MCP server: ma-browser
🚀 Install
Full documentation: https://tobralla.github.io/minehut-mcp/
One-time setup on your machine:
# 1. Install globally (any package manager works)
npm install -g github:Tobralla/minehut-mcp
# 2. Install Chromium for the browser layer
minehut-mcp-setupFor local development:
git clone https://github.com/Tobralla/minehut-mcp.git
cd minehut-mcp
npm install
npm run devEnvironment variables (optional)
Variable | Purpose |
| Used by |
| Direct API session (captured automatically after browser login) |
| Run the browser visibly (recommended for the first login, Cloudflare is friendlier with a visible window) |
🔑 First-time login
Ask your AI to run
browser_login_panelwith your Minehut email and password.A browser opens the dashboard and fills the login form.
A Cloudflare challenge or 2FA may appear. Run
browser_wait_manualso you can finish it by hand.The session token is captured automatically and stored in
~/.minehut-mcp/session.json(permissions 600). Allminehut_*API tools become active.
Set
MINEHUT_HEADLESS=0in the client config below for a visible browser window on first login.
🔌 Client setup
Claude Code
claude mcp add minehut-mcp \
--env MINEHUT_EMAIL=you@example.com \
--env MINEHUT_PASSWORD='your password' \
-- npx -y github:Tobralla/minehut-mcpCodex (OpenAI)
codex mcp add minehut-mcp \
--env MINEHUT_EMAIL=you@example.com \
--env MINEHUT_PASSWORD='your password' \
-- npx -y github:Tobralla/minehut-mcpopencode
Add to opencode.json in your project, or ~/.config/opencode/opencode.json for all projects:
{
"mcp": {
"minehut": {
"type": "local",
"command": ["npx", "-y", "github:Tobralla/minehut-mcp"],
"enabled": true,
"environment": {
"MINEHUT_EMAIL": "you@example.com",
"MINEHUT_PASSWORD": "your password"
}
}
}
}Cursor
Create .cursor/mcp.json in your project (or use Settings > MCP):
{
"mcpServers": {
"minehut": {
"command": "npx",
"args": ["-y", "github:Tobralla/minehut-mcp"],
"env": {
"MINEHUT_EMAIL": "you@example.com",
"MINEHUT_PASSWORD": "your password"
}
}
}
}Hermes
Add to hermes.toml (or config.toml):
[mcp.servers.minehut]
command = "npx"
args = ["-y", "github:Tobralla/minehut-mcp"]
env = { MINEHUT_EMAIL = "you@example.com", MINEHUT_PASSWORD = "your password" }🛠️ Full tool list
Tool | Description |
| Status, players, RAM, MOTD, version, plugins |
| List all servers on the account |
| Power on the server |
| Power off the server |
| Restart the server |
| Send a console command (operator privileges) |
| Read recent console output |
| Change RAM allocation |
| Open the dashboard and read the page |
| Log in and capture the API session |
| Wait for a manual challenge/2FA, then capture the session |
| Click an element |
| Type into an element |
| Send a keyboard key |
| Read visible text of the page or an element |
| Screenshot the page as an image the AI can see |
| Run JavaScript in the dashboard page |
| Close the browser |
⚠️ Safety notes
Console commands run with operator privileges. Review what you ask the AI to run.
The session token grants full control of your Minehut account. It is stored locally, but treat it like a password.
Never paste credentials into a shared or public chat.
Destructive actions (server reset, account deletion) are intentionally not automated by default. Use the browser tools and your own judgement.
📄 License
MIT. Not affiliated with Minehut or Mojang.
Available Tools
19 toolsbrowser_clickClick an elementA
Click the first visible element matching a CSS selector, e.g. 'button:has-text("Start")', '.server-row', 'a[href*="/console"]'.
Inputs: selector (required).
browser_closeClose the browserA
Close the controlled browser window and release resources.
Inputs: no named parameters.
browser_evaluateRun JavaScript in the pageA
Run a small JavaScript expression in the dashboard page and return its result. Useful for reading React state, clicking via JS, or advanced automation.
Inputs: js (required).
browser_login_panelLog into the Minehut panelA
Log into the Minehut dashboard in the controlled browser using the provided credentials or MINEHUT_EMAIL and MINEHUT_PASSWORD. Captures the API session automatically when possible. Cloudflare challenges may need browser_wait_manual afterward.
Inputs: email, password.
browser_openOpen a page in the Minehut browserA
Open a URL in the controlled browser (defaults to the Minehut dashboard) and return the page title, current URL and visible text so the AI understands the page.
Inputs: url.
browser_pressPress a keyA
Press a keyboard key on the page, e.g. Enter, Escape, Tab, F5.
Inputs: key (required).
browser_screenshotTake a screenshotA
Take a screenshot of the page (or of one element) and return it as an image plus the saved file path. The AI can read the image contents.
Inputs: selector, full_page.
browser_textRead text from the pageA
Return the visible text of an element (or the whole page when no selector is given) so the AI can read the current state of the panel.
Inputs: selector, max_chars.
browser_typeType into an elementA
Type text into the first visible element matching a selector. Optionally press Enter afterwards.
Inputs: text (required), selector (required), press_enter.
browser_wait_manualWait for manual UI loginA
Wait a number of seconds while the user finishes a manual action in the visible browser (Cloudflare challenge, 2FA, password manager), then capture the session tokens.
Inputs: seconds.
minehut_commandSend a server commandA
Send any console command to a Minehut server (runs with operator privileges), e.g. 'say hello', 'time set day', 'give Inxx diamond 64', 'lp user Inxx group set admin'.
Inputs: server (required), command (required).
minehut_helpMinehut MCP helpA
Show a short guide about how to use this server, including the recommended flow for first-time setup with Minehut.
Inputs: no named parameters.
minehut_logsRead server logsA
Read the most recent log lines of a Minehut server (useful to check console output, crashes, errors).
Inputs: server (required), lines.
minehut_restartRestart a Minehut serverC
Stop and start a Minehut server again.
Inputs: server (required).
minehut_serversList Minehut serversA
List all servers on the logged-in Minehut account with their current status.
Inputs: no named parameters.
minehut_startStart a Minehut serverA
Power on a Minehut server by name or id.
Inputs: server (required).
minehut_statusMinehut server statusA
Get the status, player count, RAM, MOTD, version and plugins of a Minehut server. Accepts the server name or its id.
Inputs: server (required).
minehut_stopStop a Minehut serverA
Power off a Minehut server by name or id.
Inputs: server (required).
minehut_upgrade_ramChange server RAMB
Change the RAM allocation of a Minehut server. Minehut limits total RAM based on your plan.
Inputs: ram (required), server (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
The tools are clearly separated by prefix: minehut_* for direct API operations and browser_* for dashboard automation. Within each group, actions are distinct (start vs stop vs restart, click vs type vs press). However, there is potential overlap between direct server actions and browser-based equivalents, e.g., minehut_start vs browser_click on a start button, though descriptions hint at the intended use.
The minehut_* group uses a mix of nouns (status, servers, logs, help) and verbs (start, stop, restart, command, upgrade_ram), while the browser_* group is more consistently verb-based (open, click, type, press, close, evaluate) but includes nouns (text, screenshot). The prefix system provides structure, but the lack of a uniform verb_noun pattern across all tools is a minor inconsistency.
19 tools is slightly above the typical well-scoped range (3-15), but the dual API/browser design justifies the count. Each tool serves a distinct function, and no tool feels redundant or unnecessary.
The server covers essential Minehut operations: status, list, start, stop, restart, command, logs, and RAM upgrades. Missing create/delete server operations, but the browser automation tools can handle dashboard actions, and minehut_help provides guidance. The core lifecycle of managing an existing server is well covered.
Related MCP Connectors
Official MCP server for Agentwork — delegate tasks to AI agents with human-in-the-loop
An MCP server that gives your AI access to the source code and docs of all public github repos
MCP server for AI dialogue using various LLM models via AceDataCloud
Related MCP Servers
- AlicenseBqualityDmaintenanceMCP server that integrates with Coolify to let AI assistants manage Coolify instances via a clean toolkit wrapping the official REST API.357MIT
- AlicenseNot gradedqualityBmaintenanceMCP server that lets AI agents use your real browser as an API, accessing any website with your login state, no keys or scrapers needed.1MIT
- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server that enables AI agents to automate browser interactions using Playwright and Cloudflare Workers, supporting tasks like navigation, clicking, typing, and screenshots.Apache 2.0
- AlicenseAqualityCmaintenanceAn MCP server that empowers AI coding agents to work effectively with Minecraft mod development, providing static analysis of decompiled source code and runtime interaction with a running Minecraft instance.3159 npm18MIT