Skip to main content
Glama
Pterodactyl MCP Server

Pterodactyl MCP Server

by Ethereal-Jay

Pterodactyl MCP Server

A Model Context Protocol server for managing Pterodactyl Game Panel servers via both the Client API and Application API.

Features

  • Client API — manage your own servers: power actions, files, databases, backups, schedules, allocations, subusers

  • Application API — admin operations: users, servers, nodes, locations, nests/eggs (auto-detected from ptla_ key prefix)

  • Markdown (default) and JSON output formats on all read tools

  • Each tool is fully documented with descriptions, input schemas, and annotations (readOnly, destructive, idempotent hints)

Related MCP server: Model Access Panel (MAP)

Prerequisites

  • Node.js 18+

  • A Pterodactyl panel URL

  • A Pterodactyl API key (Client: ptlc_... or Application: ptla_...)

Setup

npm install
npm run build

Usage

Set environment variables and start the server:

export PTERODACTYL_URL=https://panel.yourdomain.com
export PTERODACTYL_API_KEY=ptlc_your_api_key_here
npm start

For development with hot reload:

npm run dev

MCP Client Configuration

Add to your MCP client config (e.g. ~/.config/opencode/mcp.json):

{
  "mcpServers": {
    "pterodactyl": {
      "command": "node",
      "args": ["/path/to/pterodactyl-mcp-server/dist/index.js"],
      "env": {
        "PTERODACTYL_URL": "https://panel.yourdomain.com",
        "PTERODACTYL_API_KEY": "ptlc_your_api_key_here"
      }
    }
  }
}

Tools

Client API (Server Management)

Tool

Description

pterodactyl_list_servers

List all servers on your account

pterodactyl_get_server

Get detailed server info

pterodactyl_get_server_resources

Get real-time CPU, memory, disk usage

pterodactyl_send_power_action

Start, stop, restart, or kill a server

pterodactyl_send_console_command

Send a command to the server console

pterodactyl_rename_server

Rename a server and update its description

pterodactyl_reinstall_server

Trigger a reinstall of the server

pterodactyl_get_websocket

Get WebSocket token/socket URL for console access

pterodactyl_get_console

Retrieve recent console output via WebSocket

pterodactyl_get_account

Get authenticated account details

Files:

Tool

Description

pterodactyl_list_files

List files and directories

pterodactyl_read_file

Read a file's contents

pterodactyl_write_file

Write content to a file

pterodactyl_upload_file

Upload a file (base64 or local path)

pterodactyl_pull_file

Download a file from a URL directly to the server

pterodactyl_create_folder

Create a new directory

pterodactyl_delete_files

Delete files or directories

pterodactyl_copy_file

Copy a file or directory

pterodactyl_compress_files

Create a tar.gz archive

pterodactyl_decompress_file

Extract a tar.gz or zip archive

Databases:

Tool

Description

pterodactyl_list_databases

List server databases

pterodactyl_create_database

Create a new database

pterodactyl_rotate_database_password

Rotate a database password

pterodactyl_delete_database

Delete a database

Backups:

Tool

Description

pterodactyl_list_backups

List server backups

pterodactyl_create_backup

Create a new backup

pterodactyl_get_backup

Get backup details

pterodactyl_download_backup

Get a backup download URL

pterodactyl_restore_backup

Restore a backup

pterodactyl_lock_backup

Lock/unlock a backup

pterodactyl_delete_backup

Delete a backup

Schedules:

Tool

Description

pterodactyl_list_schedules

List schedules with cron details

pterodactyl_get_schedule

Get schedule details including tasks

pterodactyl_create_schedule

Create a schedule

pterodactyl_update_schedule

Update schedule config

pterodactyl_delete_schedule

Delete a schedule

pterodactyl_create_schedule_task

Add a task to a schedule

pterodactyl_delete_schedule_task

Remove a task from a schedule

Allocations:

Tool

Description

pterodactyl_list_allocations

List server allocations

pterodactyl_create_allocation

Assign a new allocation

pterodactyl_set_primary_allocation

Set the primary allocation

pterodactyl_delete_allocation

Remove an allocation

Subusers:

Tool

Description

pterodactyl_list_subusers

List subusers with permissions

pterodactyl_create_subuser

Invite a subuser

pterodactyl_update_subuser

Update subuser permissions

pterodactyl_delete_subuser

Remove a subuser

Application API (Admin)

Requires an Application API key (ptla_...).

Users:

Tool

Description

pterodactyl_admin_list_users

List all panel users (with filters)

pterodactyl_admin_get_user

Get user details

pterodactyl_admin_create_user

Create a new user

pterodactyl_admin_update_user

Update a user

pterodactyl_admin_delete_user

Delete a user

Servers:

Tool

Description

pterodactyl_admin_list_servers

List all servers (with filters)

pterodactyl_admin_get_server

Get server details

pterodactyl_admin_create_server

Create a server

pterodactyl_admin_update_server_details

Update server name, owner, description

pterodactyl_admin_update_server_build

Update server resources and allocations

pterodactyl_admin_update_server_startup

Update startup config, egg, image

pterodactyl_admin_suspend_server

Suspend a server

pterodactyl_admin_unsuspend_server

Unsuspend a server

pterodactyl_admin_reinstall_server

Trigger a reinstall of the server

pterodactyl_admin_delete_server

Delete a server

Nodes:

Tool

Description

pterodactyl_admin_list_nodes

List all nodes (with filters)

pterodactyl_admin_get_node

Get node details

pterodactyl_admin_create_node

Create a new node

pterodactyl_admin_update_node

Update a node

pterodactyl_admin_delete_node

Delete a node

pterodactyl_admin_get_node_configuration

Get node wings configuration

pterodactyl_admin_list_allocations

List node allocations

pterodactyl_admin_create_allocations

Create allocations on a node

pterodactyl_admin_delete_allocation

Delete an allocation

Locations:

Tool

Description

pterodactyl_admin_list_locations

List all locations

pterodactyl_admin_get_location

Get location details

pterodactyl_admin_create_location

Create a location

pterodactyl_admin_update_location

Update a location

pterodactyl_admin_delete_location

Delete a location

Nests & Eggs:

Tool

Description

pterodactyl_admin_list_nests

List all nests

pterodactyl_admin_get_nest

Get nest details (with eggs)

pterodactyl_admin_list_eggs

List eggs in a nest

pterodactyl_admin_get_egg

Get egg details (with variables)

Output Formats

All read tools accept an optional response_format parameter:

  • markdown (default) — human-readable tables and lists

  • json — raw JSON for programmatic use

API Key Types

Prefix

Type

Available Tools

ptlc_

Client API

Server management, files, databases, backups, schedules, allocations, subusers

ptla_

Application API

Everything above + admin tools (users, servers, nodes, locations, nests)

Available Tools

46 tools
pterodactyl_compress_filesCompress Server FilesB

Create a compressed archive (tar.gz) of specified files/directories.

Args:

  • server (string): Server identifier

  • root (string): Root directory for relative paths (default: '/')

  • files (string[]): Array of file/directory paths to include in the archive

Inputs: files (required), server (required), root.

pterodactyl_copy_fileCopy Server File/DirectoryA

Copy a file or directory on the server. A copy will be created with a numeric suffix (e.g., 'file copy 1').

Args:

  • server (string): Server identifier

  • location (string): Full path of the file or directory to copy

Inputs: server (required), location (required).

pterodactyl_create_allocationCreate Network AllocationB

Assign a new network allocation (IP:Port) to a server.

If ip and port are omitted, the panel will auto-assign from available node allocations.

Args:

  • server (string): Server identifier

  • ip (string, optional): IP address

  • port (number, optional): Port number

Inputs: server (required), ip, port.

pterodactyl_create_backupCreate Server BackupA

Create a new backup of the server. Backups run asynchronously - check completion with list_backups.

Args:

  • server (string): Server identifier

  • name (string, optional): Name for the backup

  • is_locked (boolean, optional): If true, backup cannot be deleted until unlocked

Inputs: server (required), name, is_locked.

pterodactyl_create_databaseCreate Server DatabaseC

Create a new database for a server.

Args:

  • server (string): Server identifier

  • database (string): Database name (max 48 chars)

  • remote (string): Remote connection host (default: '%' = any host)

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Inputs: server (required), database (required), remote, response_format.

pterodactyl_create_folderCreate Server FolderC

Create a new directory on the server.

Args:

  • server (string): Server identifier

  • root (string): Parent directory path (default: '/')

  • name (string): New folder name

Inputs: name (required), server (required), root.

pterodactyl_create_scheduleCreate Server ScheduleA

Create a new schedule for a server with cron timing.

Tasks must be added separately with create_schedule_task.

Args:

  • server (string): Server identifier

  • name (string): Schedule name

  • minute, hour, day_of_month, month, day_of_week (string): Cron fields (default: '*' for each)

  • is_active (boolean): Initially active (default: true)

  • only_when_online (boolean): Only run when server is online (default: true)

Inputs: name (required), server (required), hour, month, +5 more.

pterodactyl_create_schedule_taskCreate Schedule TaskA

Add a task to an existing schedule.

Task actions:

  • 'command': Runs a console command (payload is the command string)

  • 'power': Sends a power action (payload is start/stop/restart/kill)

  • 'backup': Creates a backup (payload is comma-separated ignored files or empty)

Args:

  • server (string): Server identifier

  • schedule (number): Schedule ID

  • action ('command' | 'power' | 'backup'): Task action type

  • payload (string): Action payload

  • time_offset (number): Seconds after schedule start (default: 0)

  • continue_on_failure (boolean): Continue subsequent tasks on failure (default: false)

Inputs: action (required), server (required), payload (required), schedule (required), +2 more.

pterodactyl_create_subuserCreate Server SubuserA

Invite a user as a subuser to a server with specific permissions.

The user must already have an account on the panel. Common permissions include:

  • 'control.console', 'control.start', 'control.stop', 'control.restart'

  • 'file.create', 'file.read', 'file.update', 'file.delete', 'file.archive', 'file.sftp'

  • 'database.create', 'database.read', 'database.update', 'database.delete'

  • 'backup.create', 'backup.read', 'backup.update', 'backup.delete'

  • 'allocation.read', 'allocation.create', 'allocation.update', 'allocation.delete'

  • 'schedule.create', 'schedule.read', 'schedule.update', 'schedule.delete'

  • 'user.create', 'user.read', 'user.update', 'user.delete'

Args:

  • server (string): Server identifier

  • email (string): Email of the panel user to add as subuser

  • permissions (string[]): Array of permission keys to grant

Inputs: email (required), server (required), permissions (required).

pterodactyl_decompress_fileDecompress Server ArchiveB

Extract a compressed archive (tar.gz, zip) on the server.

Args:

  • server (string): Server identifier

  • root (string): Root directory where the archive is located (default: '/')

  • file (string): Full path to the archive file to extract

Inputs: file (required), server (required), root.

pterodactyl_delete_allocationDelete Network AllocationA
Destructive

Remove an allocation from a server. The primary allocation cannot be removed.

Args:

  • server (string): Server identifier

  • allocation (number): Allocation ID to remove

Inputs: server (required), allocation (required).

pterodactyl_delete_backupDelete Server BackupA
Destructive

Delete a backup. Locked backups cannot be deleted.

Args:

  • server (string): Server identifier

  • backup (string): Backup UUID to delete

Inputs: backup (required), server (required).

pterodactyl_delete_databaseDelete Server DatabaseA
Destructive

Delete a database from a server. This action is irreversible.

Args:

  • server (string): Server identifier

  • db (number): Database ID to delete

Inputs: db (required), server (required).

pterodactyl_delete_filesDelete Server FilesA
Destructive

Delete one or more files or directories from the server.

WARNING: This action is irreversible. Deleting directories removes all contents recursively.

Args:

  • server (string): Server identifier

  • root (string): Root directory for relative paths (default: '/')

  • files (string[]): Array of file/directory paths to delete

Inputs: files (required), server (required), root.

pterodactyl_delete_scheduleDelete Server ScheduleB
Destructive

Delete a schedule and all its tasks.

Args:

  • server (string): Server identifier

  • schedule (number): Schedule ID to delete

Inputs: server (required), schedule (required).

pterodactyl_delete_schedule_taskDelete Schedule TaskB
Destructive

Remove a task from a schedule.

Args:

  • server (string): Server identifier

  • schedule (number): Schedule ID

  • task (number): Task ID to delete

Inputs: task (required), server (required), schedule (required).

pterodactyl_delete_subuserRemove Server SubuserC
Destructive

Remove a subuser's access to a server.

Args:

  • server (string): Server identifier

  • user (string): Subuser UUID to remove

Inputs: user (required), server (required).

pterodactyl_download_backupGet Backup Download URLA
Read-onlyIdempotent

Get a pre-signed URL for downloading a backup.

The URL is short-lived. Download it before it expires.

Args:

  • server (string): Server identifier

  • backup (string): Backup UUID

Inputs: backup (required), server (required).

pterodactyl_get_accountGet Account DetailsA
Read-onlyIdempotent

Get details about the authenticated user's account.

Returns username, email, name, language, and admin status.

Args:

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Inputs: response_format.

pterodactyl_get_backupGet Backup DetailsC
Read-onlyIdempotent

Get details about a specific backup.

Args:

  • server (string): Server identifier

  • backup (string): Backup UUID

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Inputs: backup (required), server (required), response_format.

pterodactyl_get_consoleGet Server Console OutputA
Read-onlyIdempotent

Retrieve recent console output for a server via WebSocket.

Connects to the server's console WebSocket, authenticates, requests the console log history, and returns the buffered output. Because the panel does not expose console logs via the REST API this tool opens a short-lived WebSocket connection.

The server must be running.

Args:

  • server (string): Server identifier

  • lines (number): Maximum lines to return (default: 100)

Inputs: server (required), lines.

pterodactyl_get_scheduleGet Schedule DetailsA
Read-onlyIdempotent

Get details of a specific schedule including its tasks.

Args:

  • server (string): Server identifier

  • schedule (number): Schedule ID

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Inputs: server (required), schedule (required), response_format.

pterodactyl_get_serverGet Pterodactyl Server DetailsA
Read-onlyIdempotent

Get detailed information about a specific server.

Returns full server details including limits, feature limits, SFTP info, and container configuration.

Args:

  • server (string): Server identifier (short ID like 'abc12345')

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Inputs: server (required), response_format.

pterodactyl_get_server_resourcesGet Server Resource UsageA
Read-onlyIdempotent

Get current resource usage for a server including memory, CPU, disk, and network stats.

Returns real-time resource utilization data. Requires the server to be running.

Args:

  • server (string): Server identifier

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Inputs: server (required), response_format.

pterodactyl_get_websocketGet WebSocket Connection InfoA
Read-onlyIdempotent

Get the WebSocket token and socket URL for console access.

Returns a JWT token (valid for 10 minutes) and socket URL for establishing a WebSocket connection to the server console.

Args:

  • server (string): Server identifier

Inputs: server (required).

pterodactyl_list_allocationsList Server AllocationsA
Read-onlyIdempotent

List all network allocations (IP:Port) assigned to a server.

Returns IP addresses, ports, notes, and whether each is the default allocation.

Args:

  • server (string): Server identifier

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Inputs: server (required), response_format.

pterodactyl_list_backupsList Server BackupsA
Read-onlyIdempotent

List all backups for a server.

Returns backup UUIDs, names, sizes, creation dates, and success status.

Args:

  • server (string): Server identifier

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Inputs: server (required), response_format.

pterodactyl_list_databasesList Server DatabasesA
Read-onlyIdempotent

List all databases for a server, including host info and connection details.

Note: Passwords are NOT included in the list. Use get_database or rotate_password to view passwords.

Args:

  • server (string): Server identifier

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Inputs: server (required), response_format.

pterodactyl_list_filesList Server FilesB
Read-onlyIdempotent

List files and directories in a given directory on the server.

Args:

  • server (string): Server identifier

  • directory (string): Directory path (default: '/')

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Inputs: server (required), directory, response_format.

pterodactyl_list_schedulesList Server SchedulesA
Read-onlyIdempotent

List all schedules for a server.

Returns schedule details including cron settings, active status, and last/next run times.

Args:

  • server (string): Server identifier

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Inputs: server (required), response_format.

pterodactyl_list_serversList Pterodactyl ServersB
Read-onlyIdempotent

List all servers the authenticated user has access to.

Returns server details including name, identifier, status, limits, and node information.

Args:

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: List of servers with identifiers, names, statuses, and resource limits.

Inputs: response_format.

pterodactyl_list_subusersList Server SubusersB
Read-onlyIdempotent

List all subusers for a server with their permissions.

Args:

  • server (string): Server identifier

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Inputs: server (required), response_format.

pterodactyl_lock_backupToggle Backup LockB
Idempotent

Toggle the lock state of a backup. Locked backups cannot be deleted until unlocked.

Args:

  • server (string): Server identifier

  • backup (string): Backup UUID

Inputs: backup (required), server (required).

pterodactyl_pull_filePull Remote File to ServerA

Download a file from a URL directly to the server (no local transfer).

The panel fetches the URL and saves the file on the server's filesystem. Ideal for large files — avoids the base64 truncation and upload bandwidth costs.

Limits: max file size 1 GB, timeout 5 minutes, HTTP/HTTPS only.

Args:

  • server (string): Server identifier

  • url (string): URL of the file to download

  • directory (string): Directory to save the file (default: '/')

  • filename (string, optional): Custom filename (auto-detected if omitted)

Inputs: url (required), server (required), filename, directory.

pterodactyl_read_fileRead Server FileA
Read-onlyIdempotent

Read the contents of a file on the server.

Note: For large files, use list_files to check the size first.

Args:

  • server (string): Server identifier

  • file (string): Full path to the file (e.g., '/server.properties')

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Inputs: file (required), server (required), response_format.

pterodactyl_reinstall_serverReinstall ServerA
Destructive

Trigger a reinstall of the server. This will run the egg's install script.

WARNING: This may delete or overwrite server files depending on the egg configuration.

Args:

  • server (string): Server identifier

Inputs: server (required).

pterodactyl_rename_serverRename ServerC
Idempotent

Rename a server and optionally update its description.

Args:

  • server (string): Server identifier

  • name (string): New name for the server

  • description (string, optional): New description

Inputs: name (required), server (required), description.

pterodactyl_restore_backupRestore Server BackupB
Destructive

Restore a server from a backup.

WARNING: This may overwrite existing files if truncate is true.

Args:

  • server (string): Server identifier

  • backup (string): Backup UUID to restore

  • truncate (boolean, optional): If true, delete all files first before restoring

Inputs: backup (required), server (required), truncate.

pterodactyl_rotate_database_passwordRotate Database PasswordA
Destructive

Rotate (reset) the password for a server database. Returns the new password.

Warning: This will invalidate any existing connections using the old password.

Args:

  • server (string): Server identifier

  • db (number): Database ID

Inputs: db (required), server (required).

pterodactyl_send_console_commandSend Console CommandA
Destructive

Send a command to the server's console.

The server must be running. Commands vary by game/egg (e.g., 'say Hello', 'op username' for Minecraft).

Args:

  • server (string): Server identifier

  • command (string): Console command to execute

Inputs: server (required), command (required).

pterodactyl_send_power_actionSend Server Power ActionA
Destructive

Send a power action to a server (start, stop, restart, or kill).

Use 'kill' only when the server is unresponsive to 'stop'.

Args:

  • server (string): Server identifier

  • signal ('start' | 'stop' | 'restart' | 'kill'): Power action to perform

Inputs: server (required), signal (required).

pterodactyl_set_primary_allocationSet Primary Network AllocationA
Idempotent

Set an existing allocation as the server's primary allocation.

Args:

  • server (string): Server identifier

  • allocation (number): Allocation ID to make primary

Inputs: server (required), allocation (required).

pterodactyl_update_scheduleUpdate Server ScheduleB
Idempotent

Update an existing schedule's configuration.

Only provide the fields you want to change.

Args:

  • server (string): Server identifier

  • schedule (number): Schedule ID

  • (optional) name, minute, hour, day_of_month, month, day_of_week, is_active, only_when_online

Inputs: server (required), schedule (required), hour, name, +6 more.

pterodactyl_update_subuserUpdate Subuser PermissionsB
Idempotent

Update the permissions for an existing subuser on a server.

Args:

  • server (string): Server identifier

  • user (string): Subuser UUID

  • permissions (string[]): Updated array of permission keys

Inputs: user (required), server (required), permissions (required).

pterodactyl_upload_fileUpload File to ServerC

Upload a file to the server using a two-step signed-URL process.

Provide the file content as a base64-encoded string.

Args:

  • server (string): Server identifier

  • directory (string): Target directory on the server (default: '/')

  • file_name (string): Name for the uploaded file

  • content (string): Base64-encoded file content

Inputs: server (required), file_name (required), content, directory, +1 more.

pterodactyl_write_fileWrite Server FileA
Destructive

Write content to a file on the server. Creates the file if it doesn't exist, overwrites if it does.

Args:

  • server (string): Server identifier

  • file (string): Full path to the file (e.g., '/config.yml')

  • content (string): Content to write to the file

Inputs: file (required), server (required), content (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 46 tools

    Disambiguation5/5

    Each tool targets a distinct resource/action pair across servers, files, databases, backups, schedules, allocations, subusers, and account operations. Similar-sounding tools like get_websocket and get_console are clearly differentiated by their descriptions and intended use.

    Naming Consistency5/5

    All tools use the same pterodactyl_ prefix plus consistent snake_case verb_noun naming, such as list_servers, create_backup, delete_schedule, and rotate_database_password. The pattern is predictable throughout the entire set.

    Tool Count2/5

    With 46 tools, the surface is far above the typically appropriate 3-15 range and is likely to overwhelm agents despite the domain's breadth. Many tools are justified individually, but the overall set is too large for a single MCP interface.

    Completeness4/5

    The set provides broad lifecycle coverage for servers, files, databases, backups, schedules, allocations, subusers, and account details. Minor gaps remain, such as file rename/move and startup variable or activity log operations, but core workflows are well covered.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • 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
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients to drive a Pterodactyl game panel over both its client and application API trees, covering servers, files, backups, schedules, databases, subusers, nodes, nests, and an eight-tool wings websocket console suite. Exposes 105 typed tools with a default-deny gate that blocks deletes, reinstalls, suspensions, and kill actions until explicitly allowlisted.
      MIT
    • A
      license
      C
      quality
      C
      maintenance
      Enables managing Pterodactyl Panel 1.x and 2.0 servers, files, databases, schedules, backups, users, and administrative resources across multiple panels through Client, Application, and Admin APIs. Supports stdio, Streamable HTTP, Docker, and Cloudflare Workers with runtime panel switching and automatic API-version detection.
      75
      1
      MIT