Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

HeadlessMc

MCP server by headlesshq Community

HeadlessMc MCP installs, launches and controls Minecraft: Java Edition clients and servers from AI assistants, including headless runs. It suits developers and testers who want agents to run Minecraft, for example to test mods in CI or Docker.

  • Score 74
  • 10 stars
  • 88 a week
  • MIT
  • Updated

Install HeadlessMc

Built from the published package, never by AI.

claude mcp add headlessmc -- npx -y @headlesshq/headlessmc-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install HeadlessMc in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the headlessmc block.

About

HeadlessMc MCP is an MCP server for HeadlessMc. It lets Claude Code, Codex, Cursor and other MCP clients install vanilla, Fabric, Forge and NeoForge versions, Java, and mods from Modrinth. It can launch several clients and servers at the same time, optionally headless with no display or GPU, and each client can use its own profile with separate mods, config and worlds.

Agents can read the screen of a running client, click buttons, type, chat, run commands, connect to servers and read instance logs. Steps that need the user, such as accepting the Minecraft EULA or signing in with Microsoft, are handled through elicitation when the MCP client supports it. Game control uses the HMC-Specifics jar and the hmc-mcp-bridge mod, which the server installs into clients. The project is aimed at developers and testers, such as those running mod tests in CI. It is a prototype, runs locally and sends no telemetry.

Written from the project's README and checked against it.

Tools it gives your assistant

  • hmcRuns any HeadlessMc command line, such as version install or mod search.
  • launch_clientInstalls and launches a client, then waits until it shows the main menu.
  • start_serverCreates and starts a Paper, Fabric, Purpur, Forge, NeoForge or vanilla server.
  • list_instancesLists all launched clients and servers with their status.
  • get_screenReturns the current screen as JSON with buttons and text fields.
  • get_stateReturns JSON with in-world status, position, health, server, ping and TPS.
  • clickClicks a button on the current screen and returns the screen it leads to.
  • chatSends a chat message or a /command in the game.
  • wait_forWaits for in_world, menu, a named screen, a log regex or an exit.
  • game_commandRuns HMC-Specifics commands inside the game, including commands of other mods.

What you need

  • Java 25 or newer to run the jar file
  • Microsoft account sign-in for the login command
  • Windows, Linux or macOS for the native builds

Try asking

  • Launch two Fabric 1.21.5 clients in headless mode and list their status
  • Start a Paper server and tell me when it has loaded the world
  • Open the current screen in the game and click the Singleplayer button

Good to know

  • This is a prototype, and the authors ask for feedback
  • Attached games have no console, so server_command does not work on them
  • The MCP server never stops attached games on its own
  • The bridge can be turned off with -Dhmc.mcp.enabled=false

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to HeadlessMc

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

HeadlessMc: common questions

Can HeadlessMc MCP run Minecraft without a display?

Yes. Clients can run headless, with no display or GPU, for example in CI or Docker.

Can I run several Minecraft clients at once?

Yes. Each running client gets its own profile and game directory, so they do not overwrite each other's files or share a mods folder.

Does the agent see my Microsoft password?

No. The login command asks the client to open Microsoft's device code page, so the user signs in in the browser and the agent never sees credentials.

How do I install HeadlessMc?

In Claude Code run claude mcp add headlessmc -- npx -y @headlesshq/headlessmc-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is HeadlessMc the official server?

HeadlessMc is a community project by headlesshq, not verified by a company domain.

Is HeadlessMc free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is HeadlessMc safe to use?

It scores 74 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to HeadlessMc?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does HeadlessMc work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

HeadlessMc Install

Add to stack

Loading.