Skip to main content
Glama

ptero-mcp

A local MCP server that lets Claude Code help maintain Minecraft servers on a Pterodactyl panel, through the panel's Client API only (ptlc_ keys). It reads status, logs and configs, finds plugin updates from boot messages, installs addons from Modrinth, Hangar and SpigotMC, and makes guarded, audited changes. See CLAUDE.md for every guardrail.

Setup

Needs Node 22.18 or newer.

git clone https://github.com/toxiicxmonster/ptero-mcp
cd ptero-mcp
npm install        # also builds dist/

API key: in the panel, open Account → API Credentials and create a key. Best practice is a key for a subuser that has only the permissions you want Claude to have, not your admin account.

Settings come from environment variables, or from a settings file (%APPDATA%\ptero-mcp\config.json on Windows, ~/.config/ptero-mcp/config.json elsewhere, or $PTERO_MCP_CONFIG). Environment variables win. See .env.example for all of them:

Variable

Meaning

PTERO_URL

Panel URL (https)

PTERO_CLIENT_KEY

The ptlc_ key

LIVE_SERVER_ID

Short ID of the live server (from its panel URL)

STAGING_SERVER_ID

Optional, recommended: a copy to try changes on first

READ_ONLY

true (default) registers read-only tools only

ALLOW_READ_SERVER_PROPERTIES, ALLOW_EDIT_SERVER_PROPERTIES

Owner switches for server.properties

Related MCP server: OpenCraft

Add it to Claude Code

Read-only (safe default):

claude mcp add ptero -s user -e PTERO_URL=https://panel.example.com -e PTERO_CLIENT_KEY=ptlc_... -e LIVE_SERVER_ID=abcd1234 -- node /path/to/ptero-mcp/dist/src/index.js

Maintenance (write tools; every live change still needs confirm: true):

claude mcp add ptero-maint -s user -e PTERO_URL=https://panel.example.com -e PTERO_CLIENT_KEY=ptlc_... -e LIVE_SERVER_ID=abcd1234 -e READ_ONLY=false -- node /path/to/ptero-mcp/dist/src/index.js

On Windows use the full path, e.g. node C:\Users\you\ptero-mcp\dist\src\index.js.

Tools

Read-only: server_status, detect_platform, tail_logs, diagnose_errors, list_addons, read_file, check_updates, diff_staging_vs_live (with staging).

Write (only with READ_ONLY=false): send_command, write_file, set_server_property, install_addon, update_addons, remove_addon, backup_then_restart, promote_file (with staging).

Every attempted, previewed, refused, completed and failed change is logged to audit.jsonl.

Development

npm test           # mock panel only: tests never reach a real panel or marketplace
npm run typecheck
npm run probe      # read-only API discovery against staging (see docs/pterodactyl-api.md)

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      MCP Server for full Easypanel control via Claude Code, Cursor, and Claude Desktop. Provides 37 tools for deploy, logs, env vars, domains, databases, and monitoring with built-in safety guards.
      57
      67 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI clients like Codex and Claude Code to manage Minecraft servers through the Exaroton API, including status, logs, crash diagnostics, player management, and guarded server actions with confirmation.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      An MCP server that lets AI clients manage game servers hosted on a Calagopus panel: list and inspect servers, read logs and files, edit configs, run console commands and power actions, and search, install, update, or remove plugins and mods from Modrinth and CurseForge. Every action is bounded by the user's panel API key and server permissions, with read-only/destructive hints and token-efficient tool responses.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to manage, configure, and operate game servers hosted on Pterodactyl panels, including power actions, console commands, file operations, plugin installation, and backups. It also supports Cloudflare challenge bypass and automatic request pacing for reliable panel automation.
      2
      MIT