Skip to main content
Glama

list_players

Retrieve a list of all currently online players and view the server's maximum player capacity for Minecraft server administration.

Instructions

List all online players and the server's max player count.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler for the 'list_players' tool. It sends a 'list' command via RCON and returns the server's response.
    server.tool(
      "list_players",
      "List all online players and the server's max player count.",
      {},
      async () => {
        try {
          const response = await manager.rcon.send("list");
          return { content: [{ type: "text", text: response }] };
        } catch (error) {
          return {
            content: [
              {
                type: "text",
                text: `Failed: ${error instanceof Error ? error.message : String(error)}`,
              },
            ],
            isError: true,
          };
        }
      }

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