npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@namkrub/pterodactyl-mcp

v0.2.0

Published

Client-key friendly MCP server for Pterodactyl Panel, based on @zefarie/pterodactyl-mcp

Readme

@namkrub/pterodactyl-mcp

npm version License: MIT Node.js

A client-key friendly MCP server for Pterodactyl Panel.

This fork is based on @zefarie/pterodactyl-mcp and adds compatibility changes for local AI clients:

  • Three auth modes: client-only, admin-only, or dual-key
  • Legacy Python-style environment aliases: PTERO_URL and PTERO_KEY
  • MCP stdio compatibility for clients that send Content-Length framed messages
  • JSONL responses for clients that parse one JSON-RPC message per line

Features

  • Client-only mode with PTERODACTYL_CLIENT_KEY for power, files, console, backups, schedules, databases, and account info
  • Admin-only mode with PTERODACTYL_APP_KEY for panel-wide server, node, user, egg, nest, allocation, and mount management
  • Dual-key mode with both keys for the full toolset
  • Read-only and destructive actions properly annotated so your AI client can warn before dangerous operations
  • Rate limiting and retry logic built-in with exponential backoff
  • TypeScript, fully typed with strict mode enabled
  • Zod validation on all inputs for robust parameter checking
  • Structured JSON responses optimized for LLM consumption
  • Health check on startup to verify panel connectivity

Quick Start

npx @namkrub/pterodactyl-mcp

Configuration

Set these environment variables:

| Variable | Required | Description | |----------|----------|-------------| | PTERODACTYL_URL | Yes | Your Pterodactyl Panel URL | | PTERODACTYL_CLIENT_KEY | Yes, unless app key is set | Client API key (starts with ptlc_) for power/files/console tools | | PTERODACTYL_APP_KEY | Optional | Application API key (starts with ptla_) for admin tools | | PTERO_URL | Alias | Legacy alias for PTERODACTYL_URL | | PTERO_KEY | Alias | Legacy alias for PTERODACTYL_CLIENT_KEY |

Auth Modes

Client-only

Use this for normal game-server operations scoped to the account that owns the Client API key.

Tools include power control, console commands, file management, backups, schedules, databases, subusers, logs, activity, and account info.

{
  "mcpServers": {
    "pterodactyl": {
      "command": "npx",
      "args": ["-y", "@namkrub/pterodactyl-mcp"],
      "env": {
        "PTERODACTYL_URL": "https://panel.example.com",
        "PTERODACTYL_CLIENT_KEY": "ptlc_xxxxxxxxxxxxx"
      }
    }
  }
}

Admin-only

Use this for panel-wide administration. Requires a Pterodactyl Application API key.

{
  "mcpServers": {
    "pterodactyl": {
      "command": "npx",
      "args": ["-y", "@namkrub/pterodactyl-mcp"],
      "env": {
        "PTERODACTYL_URL": "https://panel.example.com",
        "PTERODACTYL_APP_KEY": "ptla_xxxxxxxxxxxxx"
      }
    }
  }
}

Dual-key

Use this for the full toolset.

{
  "mcpServers": {
    "pterodactyl": {
      "command": "npx",
      "args": ["-y", "@namkrub/pterodactyl-mcp"],
      "env": {
        "PTERODACTYL_URL": "https://panel.example.com",
        "PTERODACTYL_APP_KEY": "ptla_xxxxxxxxxxxxx",
        "PTERODACTYL_CLIENT_KEY": "ptlc_xxxxxxxxxxxxx"
      }
    }
  }
}

See docs/SETUP.md for platform-specific config file locations and troubleshooting.

Important: Server ID vs Identifier

Pterodactyl uses two different identifiers for servers:

  • server_id (number) - Used by Application API (admin) tools. Example: 7
  • server_identifier (string) - Used by Client API tools (power, files, console). Example: "a1b2c3d4"

Call list_servers first to get both values.

Getting API Keys

Application API Key (ptla_): Admin Panel > Application API > Create New

Client API Key (ptlc_): Account > API Credentials > Create

Development

npm install      # Install dependencies
npm run build    # Build the project
npm test         # Run unit tests
npm run lint     # Run linter and formatter
npm run typecheck # Type checking

License

MIT