Skip to main content

Java SDK Overview

The MCMP Java SDK provides a comprehensive toolkit for integrating Minecraft server management capabilities into your Java applications. Built on top of the MCMP platform, it offers seamless access to server lifecycle management, player analytics, and real-time monitoring.

Key Features

Quick Start

Installation

Add the MCMP Java SDK to your project using Maven:
<dependency>
    <groupId>com.mcmp</groupId>
    <artifactId>mcmp-java-sdk</artifactId>
    <version>1.0.0</version>
</dependency>
Or with Gradle:
implementation 'com.mcmp:mcmp-java-sdk:1.0.0'

Basic Usage

import com.mcmp.sdk.McmpClient;
import com.mcmp.sdk.models.Server;
import com.mcmp.sdk.models.ServerStatus;

public class McmpExample {
    public static void main(String[] args) {
        // Initialize the client
        McmpClient client = McmpClient.builder()
            .apiKey("your-api-key")
            .build();
        
        // Create a new server
        Server server = client.servers().create()
            .name("My Minecraft Server")
            .version("1.21.1")
            .type("PAPER")
            .build();
        
        // Start the server
        client.servers().start(server.getId());
        
        // Check server status
        ServerStatus status = client.servers().getStatus(server.getId());
        System.out.println("Server status: " + status.getState());
    }
}

Architecture

The Java SDK is built with a modular architecture that provides:
  • Core Client: Main interface for all MCMP operations
  • Service Modules: Specialized services for different functionality
  • Model Classes: Type-safe data models for all API responses
  • Event System: Real-time event handling for server changes
  • Configuration: Flexible configuration management

Supported Platforms

Full support for the most popular Minecraft server platforms
Support for Forge modded servers with custom configurations
Integration with Fabric mod loader and mods
Support for vanilla Minecraft servers

Next Steps

1

Install the SDK

Set up the Java SDK in your project
2

Authentication

Configure API keys and authentication
3

Server Management

Learn to manage servers programmatically
4

Advanced Features

Explore advanced SDK capabilities