π The library is designed to integrate the minecraft server with the website
Config is the same across clients β only the file and path differ.
{
"mcpServers": {
"mcpack": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
This library can installed by issuing the following command: composer require dev-lancer/mc-pack
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories β click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience β it helps other developers decide.
Sign in to write a review.
Others in entertainment
The official MCP Server for the Mux API
MCP Server for Text to Speech
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal Eβ¦
Unity MCP Server β 268 tools for AI-assisted game development. Connect Claude, Cursor, or any MCP client to Unity Editor & Unity Hub. Scene management, GameObjects, components, builds, profiling, Shader Graph, Amplify, terrain, physics, NavMesh, animation, MPPM multiplayer & more. Free & open source by AnkleBreaker Studio.
MCP Security Weekly
Get CVE alerts and security updates for MCPack and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
This library can installed by issuing the following command:
composer require dev-lancer/mc-pack
This method uses GameSpy4 protocol, and requires enabling query listener in your server.properties like this:
enable-query=true
query.port=25565
This method allows you to send commands, it is used in item shop, and requires enabling rcon listener in your server.properties like this:
enable-rcon=true
rcon.port=25575
rcon.password=pass
It enables downloading basic server information and sending commands.
<?php
require 'vendor/autoload.php';
use DevLancer\MCPack\ConsoleRcon;
use DevLancer\MinecraftStatus\Query;
$info = new Query("some.minecraftserver.com", 25565);
$info->connect();
$console = new ConsoleRcon("some.minecraftserver.com", 25575, "pass", 3);
$console->connect();
$players = $info->getCountPlayers();
echo $players . "/" . $info->getMaxPlayers();
$console->sendCommand("bc MCPack");
Look here for Query
Look here for RCON
It enables downloading basic server information, sending commands and server management.
<?php
require 'vendor/autoload.php';
use DevLancer\MCPack\ConsoleRcon;
use DevLancer\MCPack\Manager\ServerManager;
use DevLancer\MCPack\Sftp\Sftp;
$host = "some.minecraftserver.com";
$sftp = new Sftp($host);
$sftp->login("username", "password");
$server = new ServerManager($sftp, 25565);
$path = "path/to/minecraft/server.jar";
if(!$server->isRunning()) {
if ($server->run(["-Xmx1G"], $path))
echo "server started";
}
This class allows downloading logs from the server.
<?php
require 'vendor/autoload.php';
use DevLancer\MCPack\Logs;
use DevLancer\MCPack\Sftp\Sftp;
$host = "some.minecraftserver.com";
$sftp = new Sftp($host);
$sftp->login("username", "password");
$path = "path/to/minecraft/logs/latest.log";
$logs = new Logs($sftp, $path);
echo implode("<br />", $logs->getLogs(true));
<?php
require 'vendor/autoload.php';
use DevLancer\MCPack\Manager\PropertiesManager;
use DevLancer\MCPack\Sftp\Sftp;
$sftp = new Sftp("some.minecraftserver.com");
$sftp->login("username", "password");
$manager = new PropertiesManager("path/to/minecraft/server.properties", $sftp);
$properties = $manager->getProperties();
$properties->setRconPassword("new-password");
$manager->saveProperties($properties);
<?php
require 'vendor/autoload.php';
use DevLancer\MCPack\Motd;
use DevLancer\MinecraftStatus\Ping;
$host = "some.minecraftserver.com";
$info = new Ping($host, 25565);
$info->connect();
$motd = new Motd($info);
$motd->sendRequest();
echo $motd->getResponse(Motd::RESPONSE_HTML);
Look here