Skip to main content
Glama

server_status

Check Minecraft server status to monitor uptime, player count, and server state for administration and troubleshooting.

Instructions

Get the current server status including running state, uptime, online players, and MOTD.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The "server_status" tool is registered and its handler is implemented here, calling manager.getStatus() to retrieve the data.
    server.tool(
      "server_status",
      "Get the current server status including running state, uptime, online players, and MOTD.",
      {},
      async () => {
        const status = await manager.getStatus();
        const uptimeStr = status.uptime
          ? formatUptime(status.uptime)
          : "N/A";
    
        const lines = [
          `Status: ${status.running ? "🟢 Running" : "🔴 Stopped"}`,
          `PID: ${status.pid ?? "N/A"}`,
          `Uptime: ${uptimeStr}`,
          `Players: ${status.players.length > 0 ? status.players.join(", ") : "None"}`,
          `MOTD: ${status.motd ?? "N/A"}`,
        ];
        return { content: [{ type: "text", text: lines.join("\n") }] };
      }
    );

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/tamo2918/Minecraft-Server-MCP'

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