Pterodactyl MCP Server

Pterodactyl MCP Server

Enables managing Pterodactyl Game Panel servers via Client and Application APIs, including power actions, files, databases, backups, schedules, and administrative operations.

Category
访问服务器

README

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)

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_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_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_db_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_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_config Get node wings configuration
pterodactyl_admin_list_node_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)

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选