
pavalso/pterodactyl-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
AIエージェント向けPterodactyl MCPサーバー
概要
Pterodactyl パネル サーバーの管理のためのMCP サーバー。 HTTP (Streamable HTTP) と stdio の両方の通信に対応しています。 - (アプリケーション API) — ユーザ、サーバー、ノード、場所、ネスト、エッグ、データベース、および割り当ての管理 - (クライアント API) — サーバの制御、ファイル管理、ファイル管理、バックアップ、スケジュール管理、サブユーザー、データベース、起動変数、およびネットワーク割り当て - Pterodactyl の Websocket API によるリアルタイムサーバーコンソールのストリーミング 例 env ファイルをコピーし、パネルの認証情報を入力します。 少なくとも1つのAPIキーが必要です。 すべてのツールを有効にするには、両方のツールを使うことができます。 設定されたポートでExpressサーバーを起動します。 MCPエンドポイントは[http://localhost:3000/mcp.で利用できます。 健康診断は /health にあります。 stdin/stdout 上で通信する MCP クライアントを使用するため: MCP クライアント config (.mcp.json、Claude Desktop など) に追加します
概要(AI 翻訳)
Pterodactyl パネル サーバーの管理のためのMCP サーバー。 HTTP (Streamable HTTP) と stdio の両方の通信に対応しています。
##特徴
-管理者ツール(アプリケーションAPI) — ユーザ、サーバー、ノード、場所、ネスト、卵、データベース、および割り当ての管理
- クライアントツール(クライアントAPI) — サーバの管理、ファイル管理、バックアップ管理、スケジュール管理、サブユーザー、データベース、起動変数、ネットワーク割り当て
- WebSocket Console — 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"
}
}
}
}