EmpirePanel MCP
OfficialProvides tools for managing Pterodactyl game servers through the panel's Client API, covering power control, console access, file management, backups, databases, schedules, network allocations, subusers, and server reinstalls.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
EmpirePanel MCP

A Pterodactyl 2.0 panel extension that turns your panel into a remote Model Context Protocol (MCP) server. Panel users connect an AI agent (Claude Code, Claude Desktop, Cursor, VS Code, Codex and others) to the game servers they already have access to. Sign-in is done in the browser (OAuth), and every user decides what their agent may do. Administrators get one page to control it all.
Português: docs/README.pt-BR.md
Status: 0.1.3, in development. Not ready for production.
How it works (for users)
Open the panel, go to Account → AI Agent and press Copy prompt.
Paste the prompt into your AI agent. It adds the panel as an MCP server in your settings.
The first time the agent uses it, a browser window opens on the panel. Check the agent name and press Approve.
Ask the agent things like "restart my Minecraft server" or "make a backup and then update the modpack".
You can change what the agent may do (which servers, how much power, which tool groups) or disconnect it at any time on the same screen. Per-client instructions are in docs/clients.md.
Related MCP server: PteroOps
Screenshots
Account → AI Agent: connect in one paste, then decide what the agent may touch.
Approve in your browser and see every tool, agent and action:

Admin → MCP: usage overview, who can use it, tool groups, limits and safety.
Features
57 tools in 12 groups for users (listed below), plus 12 administrator tools that are off by default. Besides the basics, the agent can read big files in pages or with a filter, edit a file safely (it refuses if the file changed meanwhile), search through a server's files, wait for a console line after a command or a power action, look inside a mod
.jar(what mod it is, its dependencies, a.classoutline) and get a ready-to-use upload link for large files.Three levels per user:
read(look only),standard(change things, nothing that destroys data) andfull(delete, restore, reinstall, kill). Admins set the highest level anyone may pick.Per-user allowed servers, including "All servers (includes new ones)" or a hand-picked list.
Per-user tool groups: turn off whole areas (for example databases) for your own agent.
Connected agents list with a Disconnect button, and a list of recent agent actions (audit).
Confirmation for risky tools: tools that change something need an explicit confirmation from the agent.
Admin page: kill switch, who may use it, limits, download domains and the addresses shown to users, plus usage overview and all connections.
Everything goes through the panel's own Client API, so panel permissions and the activity log still apply. Entries an agent causes are tagged via MCP in the panel's activity log.
A server that is suspended, installing, restoring a backup, being transferred or on a node in maintenance is not changed by the agent; it is told why.
E-mail notice when a new agent connects to your account (needs the panel's mail to be configured).
Honors the panel's two-factor requirement: an account that must have 2FA cannot connect an agent without it.
Tools
Group | Tools |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Administrator tools act on the whole panel, not on one server (create and delete servers, change limits, suspend, list every user). They are hidden and refused unless all three hold: the admin setting
allow_admin_toolsis on (default off), the user is a root administrator, and that user switched on theadmingroup on their own AI Agent screen. They use the user's own key through the Application API, and deleting a server needs its exact name. Turn them on only if you want an agent to administer the panel.
English and Brazilian Portuguese (follows the panel language).
Requirements
Pterodactyl panel 2.0.0-beta.2 or newer (tested on 2.0.0-beta.4), PHP 8.3+.
The panel must be reachable over HTTPS at its
APP_URL.One small change in the panel's own nginx config is required (see "Required: the panel's own nginx" below).
Install
Get the .pteroext package: the ready-to-install file is distributed on BuiltByBit, or build it yourself from this
source with scripts/package.sh (see docs/DEVELOPMENT.md). GitHub releases contain the source
code only. Then either:
Admin → Extensions → Install, choose the file, tick Enable after install; or
on the panel host:
php artisan p:extension:install /path/to/empire-mcp.pteroext --enable chown -R www-data:www-data /var/www/pterodactyl/extensions /var/www/pterodactyl/public/assets/extensions
To update to a newer version, install the new file with --replace (settings, connections and the enabled state
are kept): php artisan p:extension:install /path/to/empire-mcp-<new>.pteroext --replace. In the official Docker image
the web user is nginx, so use chown -R nginx:nginx /app/extensions /app/public/assets/extensions.
If you run the panel in Docker, keep /app/extensions and /app/public/assets/extensions on volumes, or the
extension disappears when the container is recreated (the panel's example Compose file already does this). Users must
reload the panel after the install.
Required: the panel's own nginx
Strict MCP clients ask for their OAuth discovery documents at the site root (/.well-known/oauth-protected-resource/mcp,
/.well-known/oauth-authorization-server/mcp, /.well-known/openid-configuration/mcp and the same two without /mcp).
The extension serves those routes itself, but the panel's own nginx config (the official Docker image and the documented
native config) has location ~ /\. { deny all; }, which answers 403 for /.well-known/... and
/mcp/.well-known/... before PHP sees them. /mcp itself works, so only OAuth discovery fails. Add these blocks to the
panel's nginx config, before the location ~ \.php$ block:
# EmpirePanel MCP: OAuth discovery and MCP routes. Prefix (^~) matches skip the dotfile deny below,
# which would otherwise block /.well-known/ and /mcp/.well-known/. Everything still goes to PHP.
location ^~ /.well-known/oauth- {
try_files $uri /index.php?$query_string;
}
location ^~ /.well-known/openid-configuration {
try_files $uri /index.php?$query_string;
}
location ^~ /mcp/ {
try_files $uri /index.php?$query_string;
}Then test and reload (Docker image: docker exec <panel> nginx -t && docker exec <panel> nginx -s reload). Where the file
lives and the details are in docs/reverse-proxy.md. Check:
curl -s https://panel.example.com/.well-known/oauth-authorization-server/mcpIt must return JSON that contains the issuer. A 403, HTML or a 404 means the step is missing. Rewrites for a proxy in
front of the panel (Traefik, Caddy, Apache) are optional and also in that file.
First configuration
By default only root administrators can use MCP (access_mode = admins). Open Admin → MCP, choose who may
use it, review the limits, and save.
Configuration
Admin → MCP. Defaults in the second column.
Setting | Default | Meaning |
| on | Kill switch. Off: |
|
| Who may use MCP: |
| empty | Usernames or emails (comma or new line) for |
|
| Highest level any user may choose: |
| all | Tool groups available at all. |
| on | Also accept a raw |
| 3600 s | OAuth access token lifetime (300-86400). |
| 30 | Refresh token lifetime, renewed on use (1-365). |
| 10 | Active connections per user (1-100). |
| 120 | Tool calls per user per minute. |
| 256 | Largest file |
| 512 | Largest file |
| Modrinth, CurseForge, GitHub, NeoForge, Forge, Fabric hosts | Hosts the URL-download tool accepts (exact or subdomain). Empty disables the tool. |
| empty | Overrides the SFTP host shown to users ( |
| empty | Text added after database host output, e.g. "internal only". |
|
| Name of the MCP server in prompts and instructions. |
| empty | Extra text appended to the instructions sent to agents. |
| empty (= | Base URL for the extension's own calls to the panel API, e.g. |
| empty (= host of |
|
| 180 | Audit rows older than this are deleted. |
| off | Lets root administrators use the 12 |
| on | E-mail the user when a new agent connects. Skipped silently when the panel's mail is not configured. |
Security model
OAuth 2.1 with PKCE (S256), dynamic client registration for public clients, exact redirect URI match, rotating refresh tokens (reuse of an old one revokes the connection; older access tokens die at each refresh). Tokens are stored hashed. Issuer identification (RFC 9207) and strict resource indicators (RFC 8707) are enforced.
Approving a connection creates one panel Client API key for that user. It shows in Account → API Credentials (memo
MCP — <client>) and disconnecting deletes it.Approval works only from a signed-in browser session, never from an API key.
The panel's permissions are always enforced: the agent can do only what that user can do in the panel, further limited by the user's own choices and the admin's limits.
Destructive or changing tools need an explicit
confirm;kill, delete, restore and reinstall need levelfull.Text that comes from game servers (files, logs, console, activity) is marked as untrusted so agents do not obey instructions hidden in it.
No outbound calls except to the panel itself (loopback),
HEADchecks of allow-listed download hosts, and one exception:inspect_archivedownloads the archive once from the signed link the panel returns for that server's node (no redirects, size-capped at 16 MB, kept in memory, never executed or written to disk).Regular expressions, archives and paths coming from an agent are validated and bounded (length, size, time).
Requests with a foreign
Originheader are rejected. Request bodies are limited to 1 MB.The audit log records user, tool, server and result, never arguments or file contents.
Report vulnerabilities as described in SECURITY.md.
Limitations
read_consolereturns at most the last 100 lines (a Wings limit); it is not a live stream.The panel rate-limits root routes at 120 requests per minute per client IP. Behind Cloudflare or another proxy, configure the panel's trusted proxies so the real IP is used, or every user shares one limit.
Responses are plain JSON (no server-sent events); GET on
/mcpanswers 405.Pterodactyl 2.0 is in beta; extension APIs may change.
Uninstall
Admin → Extensions → remove, or php artisan p:extension:remove empire-mcp. The tables ext_empire_mcp_* and the
settings are kept so a reinstall brings them back. Delete the tables by hand to remove the data. Panel API keys
named MCP — … can be deleted in API Credentials.
Development
See docs/DEVELOPMENT.md and docs/SPEC.md.
Support
Discord: https://empirecommunity.org/discord. Issues: the GitHub issue tracker. Security: see SECURITY.md.
License
GNU General Public License v3.0. Made by EmpireCommunity.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage NodePal Minecraft servers, worlds, mods, backups and console from AI agents.
Manage PrivateByte servers, backups, proxies, billing and support tickets from an AI agent.
OAuth 2.1 short-link tools for AI agents with scoped tokens, approvals, audit logs, and revocation.
Connect AI agents to WordPress to build and manage your sites, with only the access you allow.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI assistants to safely manage Pterodactyl game servers, covering status, console, files, backups, and power operations with built-in guardrails.201MIT
- AlicenseNot gradedqualityBmaintenanceEnables safe operation of Pterodactyl panel services through AI-driven monitoring, log and crash analysis, cross-server incident investigation, and selective remediation with approval workflows and automatic rollback.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to manage, configure, and operate game servers hosted on Pterodactyl panels, including power actions, console commands, file operations, plugin installation, and backups. It also supports Cloudflare challenge bypass and automatic request pacing for reliable panel automation.2MIT
- AlicenseNot gradedqualityBmaintenanceLets AI assistants such as Claude, ChatGPT, or Cursor connect to a Pterodactyl panel over OAuth 2.1 and act as the signed-in user to read consoles, edit files and configs, send commands, restart servers, and manage schedules. Every tool call is limited to the scopes the user approves and the panel permissions their account already holds, with all actions recorded in the activity log.3MIT