
用于AI 代理的 Pterodactyl MCP 服务器
概览
MCP服务器用于管理Pterodactyl面板服务器. 既支持HTTP(Streamable HTTP)又支持Stdio运输. - (应用程序 API) - 管理用户,服务器,节点,位置,巢穴,鸡蛋,数据库,和分配 - (客户 API) - 控制服务器,管理文件,备份,调度,子用户,数据库,启动变量,和网络分配 - - 实时服务器控制台通过Pterodactyl的websocket API来流 复制示例文件并填写您的面板证书 : 需要至少一个 API 键 。 可以同时使用两者来启用所有工具. 在配置的端口启动快递服务器 : MCP 端点为 http://localhost:3000/mcp. 健康检查正在进行。 用于通过 stdin/ stdout 通信的 MCP 客户端 : 添加到您的 MCP 客户端配置中( 例如. mcp.json, Claude Desktop等) :
概述(AI 翻译)
MCP服务器用于管理Pterodactyl面板服务器. 既支持HTTP(Streamable HTTP)又支持Stdio运输.
□ 特性
- ** admin工具**(应用API)——管理用户、服务器、节点、位置、巢穴、卵子、数据库和分配
- ** 客户工具**(客户API)——控制服务器、管理文件、备份、时间表、子用户、数据库、启动变量和网络分配
- WebSocket控制台 — 实时服务器控制台通过Pterodactyl的websocket API流出
□ 设置
-
安装依赖关系
-
配置环境
复制示例文件并填写您的面板证书 :
· 变量 · · 说明 · · |-|-|-.
QQ[ [T2]] 用于管理操作的应用程序 API 密钥 ([[T3]) (可选) QQ
QQ PTERODACTYL_CLIENT_KEY 客户端 API 密钥 ([[T5]) 为客户端操作(可选) QQ
需要至少一个 API 键 。 可以同时使用两者来启用所有工具.
- 运行
** 发展:**
** 生产:**
□ 运输模式
QQ HTTP( 默认)
在配置的端口启动快递服务器 :
本页由 AI 翻译,技术细节请以原文为准。
README
pterodactyl-mcp
MCP server for managing Pterodactyl Panel servers. Supports both HTTP (Streamable HTTP) and stdio transports.
Features
- Admin tools (application API) — manage users, servers, nodes, locations, nests, eggs, databases, and allocations
- Client tools (client API) — control servers, manage files, backups, schedules, subusers, databases, startup variables, and network allocations
- WebSocket console — real-time server console streaming via Pterodactyl’s websocket API
Setup
1. Install dependencies
npm install
2. Configure environment
Copy the example env file and fill in your panel credentials:
cp .env.example .env
| Variable | Description |
|---|---|
PTERODACTYL_URL |
Your panel URL (e.g. https://panel.example.com) |
PTERODACTYL_APP_KEY |
Application API key (ptla_*) for admin operations (optional) |
PTERODACTYL_CLIENT_KEY |
Client API key (ptlc_*) for client operations (optional) |
PORT |
HTTP server port (default: 3000) |
At least one API key is required. You can use both to enable all tools.
3. Run
Development:
npm run dev
Production:
npm run build
npm start
Transport modes
HTTP (default)
Starts an Express server on the configured port:
npm start
# or
npx @duruma/pterodactyl-mcp
The MCP endpoint is available at http://localhost:3000/mcp. A health check is at /health.
Stdio
For use with MCP clients that communicate over stdin/stdout:
npx @duruma/pterodactyl-mcp --stdio
MCP client configuration
Add to your MCP client config (e.g. .mcp.json, Claude Desktop, etc.):
{
"mcpServers": {
"pterodactyl": {
"command": "npx",
"args": ["@duruma/pterodactyl-mcp", "--stdio"],
"env": {
"PTERODACTYL_URL": "https://panel.example.com",
"PTERODACTYL_APP_KEY": "ptla_your_application_key_here",
"PTERODACTYL_CLIENT_KEY": "ptlc_your_client_key_here"
}
}
}
}
License
安装
npx @duruma/pterodactyl-mcp --stdio配置
{
"mcpServers": {
"pterodactyl": {
"command": "npx",
"args": ["@duruma/pterodactyl-mcp", "--stdio"],
"env": {
"PTERODACTYL_URL": "https://panel.example.com",
"PTERODACTYL_APP_KEY": "ptla_your_application_key_here",
"PTERODACTYL_CLIENT_KEY": "ptlc_your_client_key_here"
}
}
}
}