Pterodactyl MCP Server
Provides tools for managing Pterodactyl game panel servers via both Client API (power actions, files, databases, backups, schedules, allocations, subusers) and Application API (admin operations: users, servers, nodes, locations, nests/eggs).
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Pterodactyl MCP Server list my servers"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 buildUsage
Set environment variables and start the server:
export PTERODACTYL_URL=https://panel.yourdomain.com
export PTERODACTYL_API_KEY=ptlc_your_api_key_here
npm startFor development with hot reload:
npm run devMCP 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 |
| List all servers on your account |
| Get detailed server info |
| Get real-time CPU, memory, disk usage |
| Start, stop, restart, or kill a server |
| Send a command to the server console |
| Rename a server and update its description |
| Trigger a reinstall of the server |
| Get WebSocket token/socket URL for console access |
| Retrieve recent console output via WebSocket |
| Get authenticated account details |
Files:
Tool | Description |
| List files and directories |
| Read a file's contents |
| Write content to a file |
| Upload a file (base64 or local path) |
| Download a file from a URL directly to the server |
| Create a new directory |
| Delete files or directories |
| Copy a file or directory |
| Create a tar.gz archive |
| Extract a tar.gz or zip archive |
Databases:
Tool | Description |
| List server databases |
| Create a new database |
| Rotate a database password |
| Delete a database |
Backups:
Tool | Description |
| List server backups |
| Create a new backup |
| Get backup details |
| Get a backup download URL |
| Restore a backup |
| Lock/unlock a backup |
| Delete a backup |
Schedules:
Tool | Description |
| List schedules with cron details |
| Get schedule details including tasks |
| Create a schedule |
| Update schedule config |
| Delete a schedule |
| Add a task to a schedule |
| Remove a task from a schedule |
Allocations:
Tool | Description |
| List server allocations |
| Assign a new allocation |
| Set the primary allocation |
| Remove an allocation |
Subusers:
Tool | Description |
| List subusers with permissions |
| Invite a subuser |
| Update subuser permissions |
| Remove a subuser |
Application API (Admin)
Requires an Application API key (ptla_...).
Users:
Tool | Description |
| List all panel users (with filters) |
| Get user details |
| Create a new user |
| Update a user |
| Delete a user |
Servers:
Tool | Description |
| List all servers (with filters) |
| Get server details |
| Create a server |
| Update server name, owner, description |
| Update server resources and allocations |
| Update startup config, egg, image |
| Suspend a server |
| Unsuspend a server |
| Trigger a reinstall of the server |
| Delete a server |
Nodes:
Tool | Description |
| List all nodes (with filters) |
| Get node details |
| Create a new node |
| Update a node |
| Delete a node |
| Get node wings configuration |
| List node allocations |
| Create allocations on a node |
| Delete an allocation |
Locations:
Tool | Description |
| List all locations |
| Get location details |
| Create a location |
| Update a location |
| Delete a location |
Nests & Eggs:
Tool | Description |
| List all nests |
| Get nest details (with eggs) |
| List eggs in a nest |
| Get egg details (with variables) |
Output Formats
All read tools accept an optional response_format parameter:
markdown(default) — human-readable tables and listsjson— raw JSON for programmatic use
API Key Types
Prefix | Type | Available Tools |
| Client API | Server management, files, databases, backups, schedules, allocations, subusers |
| Application API | Everything above + admin tools (users, servers, nodes, locations, nests) |
Available Tools
46 toolspterodactyl_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 AllocationADestructive
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 BackupADestructive
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 DatabaseADestructive
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 FilesADestructive
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 ScheduleBDestructive
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 TaskBDestructive
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 SubuserCDestructive
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 URLARead-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 DetailsARead-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 DetailsCRead-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 OutputARead-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 DetailsARead-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 DetailsARead-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 UsageARead-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 InfoARead-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 AllocationsARead-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 BackupsARead-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 DatabasesARead-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 FilesBRead-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 SchedulesARead-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 ServersBRead-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 SubusersBRead-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 LockBIdempotent
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 FileARead-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 ServerADestructive
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 ServerCIdempotent
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 BackupBDestructive
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 PasswordADestructive
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 CommandADestructive
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 ActionADestructive
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 AllocationAIdempotent
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 ScheduleBIdempotent
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 PermissionsBIdempotent
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 FileADestructive
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
Scored across 46 tools
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.
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.
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.
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
Related MCP Connectors
Manage FadeHost game servers, apps, bots and VPS: console, deploys, files, backups, power.
Manage NodePal Minecraft servers, worlds, mods, backups and console from AI agents.
Manage PrivateByte servers, backups, proxies, billing and support tickets from an AI agent.
Create, configure, manage Minecraft servers — plugins, files, console, modpacks, backups, metrics.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables 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.2MIT
- AlicenseNot gradedqualityBmaintenanceEnables administering one or many Pterodactyl panels from MCP-compatible clients through a configurable gateway, including server lifecycle control, console commands, file and backup management, and broad Client, Application, and Admin API requests.MIT
- AlicenseNot gradedqualityCmaintenanceEnables 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
- AlicenseCqualityCmaintenanceEnables 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.751MIT