PP

pavalso/pterodactyl-mcp

Developer tools
4 stars 6 forks Quality 76 Trend 13MIT

A Pterodactyl MCP server for AI agents

Overview

MCP server for managing Pterodactyl Panel servers. Supports both HTTP (Streamable HTTP) and stdio transports. - (application API) — manage users, servers, nodes, locations, nests, eggs, databases, and allocations - (client API) — control servers, manage files, backups, schedules, subusers, databases, startup variables, and network allocations - — real-time server console streaming via Pterodactyl's websocket API Copy the example env file and fill in your panel credentials: At least one API key is required. You can use both to enable all tools. Starts an Express server on the configured port: The MCP endpoint is available at http://localhost:3000/mcp. A health check is at /health. For use with MCP clients that communicate over stdin/stdout: Add to your MCP client config (e.g. .mcp.json, Claude Desktop, etc.):

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

MIT

View the full README on GitHub

Install

npx @duruma/pterodactyl-mcp --stdio
New to MCP? Start with the mcpskill.org guide →

Configuration

{ "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" } } } }