Skip to main content
Glama

OpenCraft

Talk to your Minecraft server.

CI License: MIT

OpenCraft is an open-source AI co-admin for Minecraft, powered by the Exaroton API. It gives Codex, Claude Code, and other local MCP clients typed tools plus a guarded raw-command fallback for status, logs, crash diagnosis, players, configuration, and server actions.

You:   Why did the server crash?
AI:    The log shows a Fabric mixin failure in sodium-extra immediately before
       the tick loop stopped. The installed build targets a different Minecraft
       version. I have not changed or restarted anything.

You:   Give Luke 32 firework rockets.
AI:    This changes Luke's inventory. Confirm the grant?
You:   Yes.
AI:    Done — Exaroton accepted 32 minecraft:firework_rocket for Luke.

One-sentence AI setup

Copy this sentence into Codex or Claude Code, replacing the two placeholders:

Install OpenCraft from https://github.com/vulnix0x4/opencraft, add it to this AI client as a local MCP server, and configure my Exaroton server named SERVER_NAME using API token EXAROTON_API_TOKEN in guarded mode with raw commands enabled.

That is the whole user-facing setup. The coding agent should clone the repository, run npm install and npm run build, register .mcp.json with the client, and configure OpenCraft non-interactively with:

The repository includes INSTALL_FOR_AI.md, a deterministic install runbook for the agent to follow on Codex or Claude Code.

npm run connect -- --token "EXAROTON_API_TOKEN" --server "SERVER_NAME" --mode guarded --raw true

The token is verified directly against Exaroton, written to ~/.config/opencraft/config.json with owner-only permissions, and omitted from all OpenCraft responses. Some MCP clients require one restart or reconnect after installing a new local server; configuration itself still happens from the original chat request.

Once OpenCraft is already installed, setup is even shorter:

Set up OpenCraft with Exaroton API token EXAROTON_API_TOKEN for server SERVER_NAME in guarded mode with raw commands enabled.

The AI calls opencraft_connect, so there is no terminal wizard and no follow-up questionnaire. If the account has exactly one server, SERVER_NAME can be omitted.

Related MCP server: Bedrock Server Manager MCP Server

Companion behavior

OpenCraft is designed to feel like a locked-in server teammate, not a manual with a chat box. The AI should:

  • Inspect the server and infer names, versions, context, and command syntax itself

  • Use typed tools for common actions and raw commands for custom, modded, or advanced requests

  • Keep answers short, casual, useful, and a little playful

  • Skip process narration and avoid asking for information it can inspect

  • Ask only the confirmation required before a real server change, in one direct sentence

You can ask naturally: give x a stupidly overpowered sword. The AI should determine the right command for the installed Minecraft version, explain the exact effect briefly, ask for confirmation, and run it after approval.

What works

  • Server status, software, address, RAM, MOTD updates, and online players

  • Recent logs with control-code cleanup

  • Deterministic crash, mod, memory, authentication, and tick-lag signals

  • Start, stop, and restart with explicit confirmation

  • Typed item grants, teleports, game modes, time, weather, game rules, and broadcasts

  • Whitelist, operator, and ban-list inspection and updates

  • Safe file metadata, text-file reads, and typed configuration updates

  • Raw console escape hatch, enabled by default in guarded mode

Manual setup

Requirements: Node.js 20 or newer and an Exaroton account with API access.

npm install
npm run build
npm run setup

The manual wizard masks the token, verifies it with Exaroton, lets you select a server and safety mode, and writes the same owner-only configuration used by chat setup.

Verify an installation with:

npm run doctor
npm test

Safety model

OpenCraft is guarded by default. Every input is schema-validated, Minecraft names and resource IDs are constrained, high-impact actions require explicit confirmation, and raw commands are enabled by default but still confirmed and filtered. Read-only mode disables every mutation.

Starting a server can consume Exaroton credits. Restarting or stopping disconnects players. OpenCraft calls those effects out before acting.

OpenCraft does not claim to create backups: Exaroton's public API currently has no documented backup endpoint. File deletion and arbitrary file writes are intentionally absent from v1.

Development

npm run check
npm test
npm run build

Tests use mocked API responses and never touch a real Minecraft server. The MCP transport uses stdout exclusively; diagnostics and process messages go to stderr.

Architecture

Codex / Claude / MCP client
          │ MCP over stdio
          ▼
      OpenCraft
        ├─ one-sentence setup
        ├─ typed tools + confirmation gates
        ├─ deterministic log diagnostics
        ├─ secret-safe local configuration
        └─ Exaroton REST client
                  │
                  ▼
          Minecraft server

License

MIT. OpenCraft is an independent project and is not affiliated with or endorsed by Exaroton or Mojang Studios.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Enables AI assistants to interact with and manage Minecraft servers through a standardized interface, supporting server monitoring, player management, log analysis, and command execution.
    11
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    MCP server for managing Exaroton game servers via natural language, enabling server lifecycle control, file management, player lists, and configuration editing.
    -

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vulnix0x4/opencraft'

If you have feedback or need assistance with the MCP directory API, please join our Discord server