PterodactylMCP
Provides tools for managing Pterodactyl panel resources including users, servers, nodes, locations, nests/eggs, and server databases via the Application API.
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., "@PterodactylMCP list my servers with resource usage"
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.
PterodactylMCP
Model Context Protocol (MCP) server for the Pterodactyl Panel Application API (admin endpoints), built with FastMCP.
Quick install
Pick whichever path matches your client.
uvx (recommended, no checkout needed):
uvx pterodactyl-mcppip:
pip install pterodactyl-mcp
pterodactyl-mcpDocker:
docker build -t pterodactyl-mcp .
docker run --rm -i \
-e PANEL_URL=https://panel.example.com \
-e PANEL_TOKEN=ptla_REPLACE_ME \
pterodactyl-mcpClaude Desktop one-click (DXT): see Building a DXT bundle below.
Smithery: a ready-to-use smithery.yaml ships at the repo root.
Related MCP server: amp-mcp-server
Capabilities
Kind | Count | Highlights |
Tools | 50 | All Application API routes (users, servers, nodes, locations, nests/eggs, databases) plus AI-friendly helpers and a generic raw-request escape hatch. |
Prompts | 2 |
|
Resources | 2 |
|
What this provides
MCP tools that map to Pterodactyl Application API routes (users, servers, nodes, locations, nests/eggs, server databases).
A generic
ptero_app_requesttool for calling any/api/application/...endpoint not yet mapped.AI-friendly, token-efficient tools (search, compact lists, summaries).
Supported endpoints (Application API)
This server exposes one MCP tool per route from the NETVPX Application API docs, including:
Users: list/get/create/update/delete, lookup by
external_idServers: list/get/create/delete, lookup by
external_id, update details/build/startup, suspend/unsuspend, reinstallNodes: list/get/create/update/delete, list deployable nodes, get config, manage allocations
Locations: list/get/create/update/delete
Nests/Eggs: list nests, get nest, list eggs, get egg
Server databases: list/get/create/delete, reset database password
AI-friendly tools (recommended)
These tools are designed to keep responses small and “LLM-friendly”:
ptero_ai_search_users(top-N fuzzy search across username/email/name/external_id/uuid)ptero_ai_search_servers(top-N fuzzy search across name/identifier/uuid/external_id)ptero_ai_list_users/ptero_ai_list_servers(compact, safe defaults)ptero_ai_get_user_summary/ptero_ai_get_server_summary(compact single-resource views)ptero_ai_panel_totals(counts for common resources)
References
FastMCP Quickstart: https://gofastmcp.com/getting-started/quickstart
NETVPX Pterodactyl Application API docs: https://pterodactyl-api-docs.netvpx.com/docs/api/application
NETVPX Authentication docs: https://pterodactyl-api-docs.netvpx.com/docs/authentication
Requirements
Python 3.10+
A Pterodactyl Application API key (
ptla_...) with appropriate permissions
Getting an Application API key
You need an Application token (usually ptla_...), not a Client token (ptlc_...).
Typical flow in the panel:
Sign in with an admin account
Open your account’s API credentials page
Create an Application API key and copy it
If your panel UI differs, follow the Authentication reference link below.
Setup
Create a virtual environment (recommended):
Windows (PowerShell):
python -m venv .venv; .\\.venv\\Scripts\\Activate.ps1macOS/Linux:
python3 -m venv .venv && source .venv/bin/activate
Install dependencies:
pip install -r requirements.txt
Configure environment variables:
Copy
.env.exampleto.envSet:
PANEL_URL(e.g.https://panel.example.com)PANEL_TOKEN(your Application API key, usually starts withptla_)
Optional env vars:
PANEL_TIMEOUT(seconds, default30)PANEL_VERIFY_SSL(true/false, defaulttrue)PANEL_USER_AGENT(defaultPterodactylMCP/0.1)
Run the MCP server
STDIO transport (recommended for desktop MCP clients)
From the repo root:
python run_server.py
Alternatively:
python -m pterodactyl_mcp
HTTP transport (optional)
python -m pterodactyl_mcp --transport sse --host 127.0.0.1 --port 8000 --path /mcp
Connecting from an MCP client
Most MCP desktop clients launch the server as a subprocess. Point them at:
Command:
pythonArgs:
C:\\path\\to\\PterodactylMCP\\run_server.py(recommended)
If your client does not run with this repo as the working directory, prefer setting PANEL_URL and PANEL_TOKEN in the client config environment instead of relying on .env discovery.
Claude Desktop example (uvx — works on Windows/macOS/Linux)
Edit your claude_desktop_config.json and add:
{
"mcpServers": {
"pterodactyl": {
"command": "uvx",
"args": ["pterodactyl-mcp"],
"env": {
"PANEL_URL": "https://panel.example.com",
"PANEL_TOKEN": "ptla_REPLACE_ME"
}
}
}
}Claude Desktop (from a local checkout, Windows)
{
"mcpServers": {
"pterodactyl": {
"command": "python",
"args": ["C:\\\\path\\\\to\\\\PterodactylMCP\\\\run_server.py"],
"env": {
"PANEL_URL": "https://panel.example.com",
"PANEL_TOKEN": "ptla_REPLACE_ME"
}
}
}
}Building a DXT bundle
This repo ships a manifest.json so you can build a one-click .dxt for Claude Desktop:
npm install -g @anthropic-ai/dxt
dxt packThe resulting .dxt file can be dropped into Claude Desktop — it prompts the user for PANEL_URL and PANEL_TOKEN on install.
Development
pip install -e ".[dev]"
ruff check .
pytestLicense
Tool naming
Route tools are generated using the pattern:
ptero_app_{method}_{path} (with /api/application/ removed, / → _, - → _, {param} → param).
Calling tools
Each route tool takes the route path params as normal arguments (e.g.
server,user,node), plus optionalqueryandbody.Use
queryfor query-string parameters (pagination, filters, includes), andbodyfor JSON request payloads.To discover all tool names and their routes, call
ptero_app_list_endpoints.For token efficiency, prefer the
ptero_ai_*tools for discovery (search/list/summary), then call the rawptero_app_*route tool once you have the exact ID.
Example query params (brackets are valid dict keys):
{"filter[email]": "admin@example.com", "include": "servers"}
Example workflow:
Find the user you mean (compact results):
Call
ptero_ai_search_userswithquery="pixel flip"
Then fetch the full object only for the selected match:
Call
ptero_app_get_users_userwithuser=<id>
To list all exposed tools and their routes, call:
ptero_app_list_endpoints
Available Tools
50 toolsptero_ai_get_server_summaryC
Get a compact server summary (token-efficient).
Inputs: server (required). Returns: object
ptero_ai_get_user_summaryC
Get a compact user summary (token-efficient).
Inputs: user (required). Returns: object
ptero_ai_list_serversC
List servers (compact) with safe defaults to avoid huge responses.
Inputs: page, per_page. Returns: object
ptero_ai_list_usersB
List users (compact) with safe defaults to avoid huge responses.
Inputs: page, per_page. Returns: object
ptero_ai_panel_totalsA
Return counts (totals) for common Application API resources (token-efficient).
Inputs: no named parameters. Returns: object
ptero_ai_search_serversB
Fuzzy search servers by name/identifier/uuid/external_id; returns compact top matches.
Inputs: query (required), limit, max_pages, per_page, +1 more. Returns: object
ptero_ai_search_usersB
Fuzzy search users by username/email/name/external_id/uuid; returns compact top matches.
Inputs: query (required), limit, max_pages, per_page, +1 more. Returns: object
ptero_app_delete_locations_locationD
DELETE /api/application/locations/{location}
Inputs: location (required), query, body.
ptero_app_delete_nodes_nodeD
DELETE /api/application/nodes/{node}
Inputs: node (required), query, body.
ptero_app_delete_nodes_node_allocations_allocationC
DELETE /api/application/nodes/{node}/allocations/{allocation}
Inputs: node (required), allocation (required), query, body.
ptero_app_delete_servers_serverD
DELETE /api/application/servers/{server}
Inputs: server (required), query, body.
ptero_app_delete_servers_server_databases_databaseD
DELETE /api/application/servers/{server}/databases/{database}
Inputs: server (required), database (required), query, body.
ptero_app_delete_users_userD
DELETE /api/application/users/{user}
Inputs: user (required), query, body.
ptero_app_get_locationsD
GET /api/application/locations
Inputs: query, body.
ptero_app_get_locations_locationD
GET /api/application/locations/{location}
Inputs: location (required), query, body.
ptero_app_get_nestsC
GET /api/application/nests
Inputs: query, body.
ptero_app_get_nests_nestD
GET /api/application/nests/{nest}
Inputs: nest (required), query, body.
ptero_app_get_nests_nest_eggsD
GET /api/application/nests/{nest}/eggs
Inputs: nest (required), query, body.
ptero_app_get_nests_nest_eggs_eggD
GET /api/application/nests/{nest}/eggs/{egg}
Inputs: nest (required), egg (required), query, body.
ptero_app_get_nodesD
GET /api/application/nodes
Inputs: query, body.
ptero_app_get_nodes_deployableD
GET /api/application/nodes/deployable
Inputs: query, body.
ptero_app_get_nodes_nodeD
GET /api/application/nodes/{node}
Inputs: node (required), query, body.
ptero_app_get_nodes_node_allocationsD
GET /api/application/nodes/{node}/allocations
Inputs: node (required), query, body.
ptero_app_get_nodes_node_configurationD
GET /api/application/nodes/{node}/configuration
Inputs: node (required), query, body.
ptero_app_get_serversA
GET /api/application/servers (raw; can be large — prefer ptero_ai_list_servers / ptero_ai_search_servers)
Inputs: query, body.
ptero_app_get_servers_external_external_idD
GET /api/application/servers/external/{external_id}
Inputs: external_id (required), query, body.
ptero_app_get_servers_serverD
GET /api/application/servers/{server}
Inputs: server (required), query, body.
ptero_app_get_servers_server_databasesC
GET /api/application/servers/{server}/databases
Inputs: server (required), query, body.
ptero_app_get_servers_server_databases_databaseC
GET /api/application/servers/{server}/databases/{database}
Inputs: server (required), database (required), query, body.
ptero_app_get_usersA
GET /api/application/users (raw; can be large — prefer ptero_ai_list_users / ptero_ai_search_users)
Inputs: query, body.
ptero_app_get_users_external_external_idD
GET /api/application/users/external/{external_id}
Inputs: external_id (required), query, body.
ptero_app_get_users_userD
GET /api/application/users/{user}
Inputs: user (required), query, body.
ptero_app_list_endpointsA
List all Application API endpoints exposed as tools.
Inputs: no named parameters. Returns: result
ptero_app_patch_locations_locationD
PATCH /api/application/locations/{location}
Inputs: location (required), query, body.
ptero_app_patch_nodes_nodeD
PATCH /api/application/nodes/{node}
Inputs: node (required), query, body.
ptero_app_patch_servers_server_buildD
PATCH /api/application/servers/{server}/build
Inputs: server (required), query, body.
ptero_app_patch_servers_server_detailsD
PATCH /api/application/servers/{server}/details
Inputs: server (required), query, body.
ptero_app_patch_servers_server_startupD
PATCH /api/application/servers/{server}/startup
Inputs: server (required), query, body.
ptero_app_patch_users_userD
PATCH /api/application/users/{user}
Inputs: user (required), query, body.
ptero_app_post_locationsD
POST /api/application/locations
Inputs: query, body.
ptero_app_post_nodesD
POST /api/application/nodes
Inputs: query, body.
ptero_app_post_nodes_node_allocationsD
POST /api/application/nodes/{node}/allocations
Inputs: node (required), query, body.
ptero_app_post_serversD
POST /api/application/servers
Inputs: query, body.
ptero_app_post_servers_server_databasesD
POST /api/application/servers/{server}/databases
Inputs: server (required), query, body.
ptero_app_post_servers_server_databases_database_reset_passwordD
POST /api/application/servers/{server}/databases/{database}/reset-password
Inputs: server (required), database (required), query, body.
ptero_app_post_servers_server_reinstallC
POST /api/application/servers/{server}/reinstall
Inputs: server (required), query, body.
ptero_app_post_servers_server_suspendD
POST /api/application/servers/{server}/suspend
Inputs: server (required), query, body.
ptero_app_post_servers_server_unsuspendD
POST /api/application/servers/{server}/unsuspend
Inputs: server (required), query, body.
ptero_app_post_usersD
POST /api/application/users
Inputs: query, body.
ptero_app_requestB
Make a raw Application API request (useful for endpoints not mapped as tools yet).
Inputs: method (required), path (required), query, body.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 50 tools
Tool names are very explicit but often long and repetitive (e.g., ptero_app_delete_nodes_node_allocations_allocation). The split between ptero_ai_ and ptero_app_ prefixes creates ambiguity, as both serve similar resources (e.g., list/search servers). Overall, an agent could distinguish them but with effort.
The naming follows a pattern (prefix + method + resource), but the two prefixes (ptero_ai_ vs ptero_app_) break consistency. The app tools use underscores to represent API paths, leading to very long names, while AI tools are shorter. Mixed conventions reduce predictability.
50 tools is high but reasonable for a comprehensive API wrapper. However, the presence of a generic request tool suggests the set is not fully scoped, and some tools duplicate functionality (e.g., multiple server list/search tools). A slightly leaner set would be better.
The tools cover CRUD for most resources (locations, nodes, servers, users) and operations like suspend/unsuspend. However, nests/eggs only have GET tools, missing POST/PATCH/DELETE. The inclusion of a generic request tool indicates gaps, making the surface incomplete.
Maintenance
Related MCP Connectors
Manage game servers, configurations, players, and groups through the GameServerApp MCP server.
The official MCP Server for the Mux API
Official xCloud MCP: manage servers, sites, WordPress, SSL, backups and deploys from any MCP client.
Related MCP Servers
- AlicenseAqualityNot gradedmaintenanceMCP server for Pterodactyl and Pelican game server panels. 73 tools for server management, power control, file operations, backups, schedules, databases, users, nodes, and eggs.3414 npm-
- AlicenseAqualityDmaintenanceMCP server that wraps CubeCoders AMP to list, inspect, and control game-server instances.85MIT
- AlicenseBqualityDmaintenanceAn MCP server that provides access to the DataPacket GraphQL API, enabling LLMs and MCP clients to manage dedicated servers, view invoices, provision new servers, handle support requests, and more.3310 npm1MIT
- AlicenseBqualityDmaintenanceMCP server for managing Laravel Forge servers, sites, and deployments via the Forge API.1218 npm9MIT