
pavalso/pterodactyl-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
AI Agent를 위한 Pterodactyl MCP 서버
개요
Pterodactyl Panel 서버 관리 HTTP(Streamable HTTP) 및 stdio 전송을 모두 지원합니다. - (application API) - 사용자, 서버, 노드, 위치, 둥지, 계란, 데이터베이스 및 할당 관리 - (클라이언트 API) - 제어 서버, 파일 관리, 백업, 일정, 하위 사용자, 데이터베이스, 시작 변수 및 네트워크 할당 - - Pterodactyl의 websocket API를 통해 실시간 서버 콘솔 스트리밍 예를 들어 env 파일을 복사하고 패널 자격에 기입하십시오. 최소 1개의 API 키가 필요합니다. 모든 도구를 사용할 수 있습니다. 설정된 포트에서 Express 서버 시작: MCP 엔드포인트는 http://localhost:3000/mcp.에서 사용할 수 있습니다. 건강 검사는 /health에 있습니다. stdin/stdout에 통신하는 MCP 클라이언트와 사용을 위해: MCP 클라이언트 구성에 추가 (예 : .mcp.json, Claude Desktop 등) :
개요(AI 번역)
Pterodactyl Panel 서버 관리 HTTP(Streamable HTTP) 및 stdio 전송을 모두 지원합니다.
특징
- Admin 도구 (application API) - 사용자, 서버, 노드, 위치, 둥지, 알, 데이터베이스 및 할당 관리
- 클라이언트 도구 (클라이언트 API) - 제어 서버, 파일 관리, 백업, 일정, 하위 사용자, 데이터베이스, 시작 변수 및 네트워크 할당
- **WebSocket 콘솔 ** - Pterodactyl의 websocket API를 통해 실시간 서버 콘솔 스트리밍
설치
##1. 의존성 설치
##2. 환경 설정
예를 들어 env 파일을 복사하고 패널 자격에 기입하십시오.
| 변수 | 설명 |
|—|||
| PTERODACTYL_URL | 패널 URL(예: https://panel.example.com) |
| PTERODACTYL_APP_KEY | 관리자 운영용 API 키(ptla_*) |
| PTERODACTYL_CLIENT_KEY | 클라이언트 API 키(ptlc_*) 클라이언트 운영(옵션) |
| PORT | HTTP 서버 포트(기본: 3000) |
최소 1개의 API 키가 필요합니다. 모든 도구를 사용할 수 있습니다.
##3. 실행
개발:
생산:
수송 형태
HTTP (과태)
설정된 포트에서 Express 서버 시작:
이 페이지는 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"
}
}
}
}