OPanel MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "SERVER=${SERVER}" -e "TOKEN=${TOKEN}" opanel-mcp -- npx opanel-mcp@latest --server "<url>" --token "<token>"
Required:SERVERTOKEN
README.md

A MCP server for OPanel to manage Minecraft servers via AI agents.

OPanel MCP

OPanel MCP Server for AI agents

Description

opanel-mcp is a MCP server for OPanel. After connecting it to an AI agent, you can manage common Minecraft server tasks with simple prompts instead of manually clicking through the panel.

Usage

Prerequisites

  • A running OPanel instance
  • An enabled OPanel MCP token
  • HTTPS access to your OPanel endpoint (required for non-local connections)
  • Node.js 18+ and npm

Getting Started

  1. Follow the Official Docs to deploy OPanel.

  2. Set up HTTPS for your OPanel endpoint.

Configure HTTPS with a reverse proxy (for example Nginx/Caddy) or another TLS solution.

[!IMPORTANT] This MCP server only allows:

  • https://... for remote hosts
  • http://localhost or http://127.0.0.1 for local-only development

If your server URL is remote and not HTTPS, connection will be rejected.

  1. In OPanel, open the MCP page, generate a new access token, and enable MCP.

  2. Install the MCP server.

Add the following config to your MCP client, and modify the arguments to match your setup:

{
  "mcpServer": {
    "opanel": {
      "command": "npx",
      "args": [
        "opanel-mcp@latest",
        "--server", "...",
        "--token", "..."
      ]
    }
  }
}

Arguments:

  • --server: Your OPanel URL, such as https://example.com:3000
  • --token: Your MCP Access Token generated in the MCP page

Development

You can run with MCP Inspector for local debugging:

npm run build
npm run dev

This command reads SERVER and TOKEN from .env.

Security Notes

  • Treat the MCP token as a secret.
  • Do not commit tokens into Git.
  • Rotate the token in OPanel if you suspect leakage.

License

MPL-2.0

Environment Variables

SERVERrequiredThe URL of your OPanel instance
TOKENrequiredThe MCP access token generated in the OPanel dashboard

Configuration

claude_desktop_config.json
{"mcpServer": {"opanel": {"command": "npx", "args": ["opanel-mcp@latest", "--server", "...", "--token", "..."]}}}

Try it

Check the current status of my Minecraft server.
Restart the Minecraft server instance managed by OPanel.
Can you help me manage my Minecraft server tasks using OPanel?

Frequently Asked Questions

What are the key features of OPanel MCP?

Integrates OPanel with AI agents for automated management. Enables task execution via natural language prompts. Supports secure remote connections via HTTPS. Compatible with local development environments.

What can I use OPanel MCP for?

Streamlining Minecraft server administration for server owners. Automating routine server maintenance tasks through AI. Reducing manual dashboard navigation for common server operations.

How do I install OPanel MCP?

Install OPanel MCP by running: npx opanel-mcp@latest --server <url> --token <token>

What MCP clients work with OPanel MCP?

OPanel MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep OPanel MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare