Skip to main content
Glama

⛏️ 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.

MCP Node Playwright Docs


What it does

Two complementary layers, one install:

Layer

Tools

What the AI can do

🖥️ Browser automation (Playwright)

browser_open, browser_click, browser_type, browser_press, browser_text, browser_screenshot, browser_evaluate, browser_login_panel, browser_wait_manual, browser_close

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)

minehut_servers, minehut_status, minehut_start, minehut_stop, minehut_restart, minehut_command, minehut_logs, minehut_upgrade_ram

Fast, scriptable control. Start/stop servers, send console commands (say, give, LuckPerms, etc.), read logs, check players.

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-setup

For local development:

git clone https://github.com/Tobralla/minehut-mcp.git
cd minehut-mcp
npm install
npm run dev

Environment variables (optional)

Variable

Purpose

MINEHUT_EMAIL / MINEHUT_PASSWORD

Used by browser_login_panel when credentials are not passed per call

MINEHUT_TOKEN / MINEHUT_SESSION_ID

Direct API session (captured automatically after browser login)

MINEHUT_HEADLESS=0

Run the browser visibly (recommended for the first login, Cloudflare is friendlier with a visible window)

🔑 First-time login

  1. Ask your AI to run browser_login_panel with your Minehut email and password.

  2. A browser opens the dashboard and fills the login form.

  3. A Cloudflare challenge or 2FA may appear. Run browser_wait_manual so you can finish it by hand.

  4. The session token is captured automatically and stored in ~/.minehut-mcp/session.json (permissions 600). All minehut_* API tools become active.

Set MINEHUT_HEADLESS=0 in 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-mcp

Codex (OpenAI)

codex mcp add minehut-mcp \
  --env MINEHUT_EMAIL=you@example.com \
  --env MINEHUT_PASSWORD='your password' \
  -- npx -y github:Tobralla/minehut-mcp

opencode

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

minehut_status <server>

Status, players, RAM, MOTD, version, plugins

minehut_servers

List all servers on the account

minehut_start <server>

Power on the server

minehut_stop <server>

Power off the server

minehut_restart <server>

Restart the server

minehut_command <server> <command>

Send a console command (operator privileges)

minehut_logs <server> [lines]

Read recent console output

minehut_upgrade_ram <server> <gb>

Change RAM allocation

browser_open [url]

Open the dashboard and read the page

browser_login_panel [email] [password]

Log in and capture the API session

browser_wait_manual [seconds]

Wait for a manual challenge/2FA, then capture the session

browser_click <selector>

Click an element

browser_type <selector> <text> [enter]

Type into an element

browser_press <key>

Send a keyboard key

browser_text [selector]

Read visible text of the page or an element

browser_screenshot [selector]

Screenshot the page as an image the AI can see

browser_evaluate <js>

Run JavaScript in the dashboard page

browser_close

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 tools
browser_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

    A3.5/5.0

    Scored across 19 tools

    Disambiguation4/5

    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.

    Naming Consistency3/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server that lets AI agents use your real browser as an API, accessing any website with your login state, no keys or scrapers needed.
      1
      MIT
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      An 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
    • A
      license
      A
      quality
      C
      maintenance
      An 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.
      31
      59 npm
      18
      MIT