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.
Install HeadlessMc
Built from the published package, never by AI.
claude mcp add headlessmc -- npx -y @headlesshq/headlessmc-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"headlessmc": {
"args": [
"-y",
"@headlesshq/headlessmc-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"headlessmc": {
"args": [
"-y",
"@headlesshq/headlessmc-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"headlessmc": {
"args": [
"-y",
"@headlesshq/headlessmc-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add headlessmc -- npx -y @headlesshq/headlessmc-mcp{
"mcpServers": {
"headlessmc": {
"args": [
"-y",
"@headlesshq/headlessmc-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add headlessmc npx -y @headlesshq/headlessmc-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
ANo 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 →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
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.
