Get the FREE Ultimate OpenClaw Setup Guide β†’

mc

🚧 java mcp server for minecraft

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio umjammer-mc-mcp-server java -jar path/to/mc-mcp-server.jar \
  --env JAVA_OPTS="-Xmx1G -Xms512m"

How to use

This MCP server project provides a Java-based Minecraft MCP (Model Context Protocol) server implementation built against Java 17. It integrates with the MCProtocolLib ecosystem and related Java SDKs to enable context-aware processing of Minecraft protocol messages, mapping protocol states to model contexts and offering tooling for context-aware validation, transformation, or routing of Minecraft traffic. The repository references MCProtocolLib, the model context protocol Java SDK, and related Minecraft MCP tooling, suggesting that you can run a standalone MCP server and interact with it through the Java APIs or via standard Java runtime integration.

To use the server, start it with Java using the provided jar. Once running, you can interact with it through the server’s exposed Java APIs or through any integration you build on top of the MCP server to map Minecraft protocol events to your domain models, perform context-aware transformations, or plug in custom processors for protocol handling. If you are integrating with other tools, refer to the linked projects (MCProtocolLib, modelcontextprotocol Java SDK) for adapters, data models, and example usage patterns that are compatible with this MCP server.

How to install

Prerequisites:

  • Java 17 (JDK) installed on your system
  • Maven installed if you plan to build from source
  • Access to a Java runtime to run the produced jar

Installation steps:

  1. Clone the repository: git clone https://github.com/umjammer/mc-mcp-server.git cd mc-mcp-server

  2. Build from source (optional if you use a prebuilt jar from the repo or a package manager): mvn clean package -DskipTests

    After a successful build, locate the jar typically under target/ or a distro directory

  3. Run the server (example using a produced jar): java -jar target/mc-mcp-server-<version>.jar

    If your jar location differs, adjust the path accordingly

  4. If you use a prebuilt package (e.g., through JitPack or GitHub Packages), obtain the jar as instructed by the package source and run similarly: java -jar path/to/mc-mcp-server.jar

Tip: If you need to tune memory usage, set JAVA_OPTS or pass additional JVM options when launching the jar.

Additional notes

Notes and tips:

  • The project relies on Java 17; ensure your runtime matches or exceeds this requirement.
  • If you encounter classpath or dependency issues, rebuilding with Maven and ensuring dependencies are fetched from the configured repositories helps.
  • You may want to configure memory settings via JAVA_OPTS (e.g., -Xmx2G) depending on workload.
  • Since the README references MCProtocolLib and related SDKs, consider reviewing their documentation to understand how protocol events map to your models and how to plug in custom processors.
  • If you are deploying in production, consider containerization (Docker) or orchestration strategies to manage JVM memory and restarts, even though explicit docker instructions are not provided in the README.

Related MCP Servers

Sponsor this space

Reach thousands of developers β†—