Skip to main content
Glama

stop_server

Gracefully stop the Minecraft server using RCON commands, with fallback methods to ensure shutdown completion.

Instructions

Gracefully stop the Minecraft server. Uses RCON 'stop' command, falls back to stdin, then SIGKILL after 30s.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration and handler definition for the "stop_server" tool. It calls manager.stop().
    server.tool(
      "stop_server",
      "Gracefully stop the Minecraft server. Uses RCON 'stop' command, falls back to stdin, then SIGKILL after 30s.",
      {},
      async () => {
        const result = await manager.stop();
        return { content: [{ type: "text", text: result }] };
      }
    );

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