DevelopersMCP server

Hostwolf MCP server

@hostwolf/mcp lets AI assistants manage your Hostwolf game servers. It works with Claude, Cursor, VS Code and any other client that supports the Model Context Protocol. Ask things like:

  • "Why did my Minecraft server crash last night?"
  • "Install EssentialsX and restart."
  • "Back up Valheim, then switch it to the public test branch."
  • "Ban the player called griefer123 and tell everyone why."
  • "Restart every server at 4 am daily."

Setup#

  1. Create an API key at panel.hostwolf.net/account/api.
  2. Connect your client. You can use the hosted server at https://mcp.game.hostwolf.net (nothing to install), or run it yourself from the download (needs Node.js 18+).

Hosted: https://mcp.game.hostwolf.net#

Nothing to install, and always the latest version. Your client sends your key with each request; we never store it.

Claude Code

claude mcp add --transport http hostwolf https://mcp.game.hostwolf.net --header "Authorization: Bearer ptlc_your_key"

Claude Desktop

Claude Desktop runs local servers only, so it connects to the hosted one through mcp-remote. Add this to claude_desktop_config.json (Settings → Developer → Edit config):

{
  "mcpServers": {
    "hostwolf": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.game.hostwolf.net", "--header", "Authorization:${AUTH_HEADER}"],
      "env": { "AUTH_HEADER": "Bearer ptlc_your_key" }
    }
  }
}

Cursor

Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:

{
  "mcpServers": {
    "hostwolf": {
      "url": "https://mcp.game.hostwolf.net",
      "headers": { "Authorization": "Bearer ptlc_your_key" }
    }
  }
}

VS Code

Add this to .vscode/mcp.json:

{
  "servers": {
    "hostwolf": {
      "type": "http",
      "url": "https://mcp.game.hostwolf.net",
      "headers": { "Authorization": "Bearer ptlc_your_key" }
    }
  }
}

Options go on the URL: https://mcp.game.hostwolf.net?readonly=1 exposes only read tools, and ?servers=1a2b3c4d,5e6f7a8b limits the assistant to those servers. The hosted server can't use a key with an IP allow-list: use a key without one (and limit it with these options), or run the server yourself.

Using Cursor or a client with a tool limit? Pick toolsets with ?toolsets=, for example https://mcp.game.hostwolf.net?toolsets=files,backups (or the X-Hostwolf-Toolsets header). The names are servers, console, files, backups, schedules, databases, network, players, users, account and mods; the default is all of them, power, subusers and addons also work, an unknown name gets a 400 with the valid list, and ?readonly=1 combines with it (?toolsets=files&readonly=1).

Run it yourself#

The same server as a download. It runs on your computer, so your key never leaves it.

Claude Code

claude mcp add hostwolf -e HOSTWOLF_API_KEY=ptlc_your_key -- npx -y https://hostwolf.net/dl/hostwolf-mcp-0.1.12.tgz

Claude Desktop

Add this to claude_desktop_config.json (Settings → Developer → Edit config):

{
  "mcpServers": {
    "hostwolf": {
      "command": "npx",
      "args": ["-y", "https://hostwolf.net/dl/hostwolf-mcp-0.1.12.tgz"],
      "env": { "HOSTWOLF_API_KEY": "ptlc_your_key" }
    }
  }
}

Cursor

Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:

{
  "mcpServers": {
    "hostwolf": {
      "command": "npx",
      "args": ["-y", "https://hostwolf.net/dl/hostwolf-mcp-0.1.12.tgz"],
      "env": { "HOSTWOLF_API_KEY": "ptlc_your_key" }
    }
  }
}

VS Code

Add this to .vscode/mcp.json:

{
  "servers": {
    "hostwolf": {
      "command": "npx",
      "args": ["-y", "https://hostwolf.net/dl/hostwolf-mcp-0.1.12.tgz"],
      "env": { "HOSTWOLF_API_KEY": "ptlc_your_key" }
    }
  }
}

Settings#

For the self-run server; the hosted one takes ?readonly=1, ?servers= and ?toolsets= on its URL instead.

VariableMeaning
HOSTWOLF_API_KEYRequired. Your client API key (ptlc_...).
HOSTWOLF_READONLY1 to expose only tools that read, never change anything.
HOSTWOLF_TOOLSETSComma-separated toolsets to expose, e.g. files,backups (servers, console, files, backups, schedules, databases, network, players, users, account, mods). Default: all.
HOSTWOLF_SERVERSComma-separated server ids to allow; all others are hidden.
HOSTWOLF_BASE_URLPanel URL (default https://panel.hostwolf.net).
HOSTWOLF_NO_UPDATE_CHECK1 to skip the startup check for a newer release.

Tools#

You can refer to servers by their id, or by name ("my survival server"). Each tool calls the REST API through the SDK, so anything a tool can't do yet is a few lines of code away.

Look and diagnose:

  • list_servers: state, address and RAM use.
  • get_server: details for one server.
  • get_console: recent console lines.
  • diagnose_server: runs the "Fix my server" checks.
  • list_players.
  • get_server_activity: who did what on a server.
  • get_sftp_details: SFTP host, port and username. The password is your panel password.

Control:

  • power_server: start, stop, restart or kill.
  • send_command.
  • player_action: kick, ban, unban or broadcast.
  • reinstall_server.
  • rename_server.
  • get_docker_images and set_docker_image: for example another Java version.

Files:

  • list_files.
  • read_file: pages through long files.
  • write_file.
  • rename_file.
  • delete_files.
  • create_folder, copy_file and chmod_files.
  • compress_files and decompress_file.
  • pull_file: the server downloads a URL, such as a plugin or a world zip.
  • get_file_download_url and get_file_upload_url: short-lived signed links.

Backups:

  • list_backups.
  • create_backup.
  • restore_backup.
  • delete_backup.
  • set_backup_lock: locked backups can't be deleted.
  • set_smart_backups: automatic backups before risky actions.
  • get_backup_download_url: a short-lived signed link.

Configuration:

  • get_startup and set_startup_variable.
  • get_game_settings and update_game_settings.
  • get_game_versions and set_game_version.

Ports and domain:

  • list_allocations, create_allocation, set_allocation_notes, set_primary_allocation and delete_allocation.
  • get_custom_domain, check_custom_domain, set_custom_domain and remove_custom_domain.

Schedules:

  • list_schedules, create_schedule, update_schedule, run_schedule and delete_schedule.
  • add_schedule_task, update_schedule_task and delete_schedule_task.

Access and notifications:

  • list_permissions, list_subusers, add_subuser, update_subuser and remove_subuser.
  • get_server_notifications, set_server_notifications and test_server_notification: Discord messages for starts, crashes, backups and players.

Mods:

  • search_addons.
  • list_installed_addons.
  • install_addon and uninstall_addon.
  • get_addon_profile, get_addon_versions, install_featured_addon, set_addon_framework, install_cs2_framework and remove_manual_addon.
  • get_workshop, set_workshop and preview_workshop_item: Steam Workshop items.
  • search_modpacks and install_modpack.
  • get_modpack, get_modpack_versions and remove_modpack.

Minecraft network:

  • get_minecraft_network, link_minecraft_servers, unlink_minecraft_server and install_fabric_proxy: put your servers behind a Velocity or BungeeCord proxy.

Databases:

  • list_databases: connection details and who may connect from outside.
  • create_database: the first one on a server waits about 40 seconds while the database service starts.
  • set_database_remote_access: allow other servers' IPs, or anyone with the password.
  • rotate_database_password and delete_database.
  • export_database and import_database: save a .sql.gz to your computer, or load one. Self-run server only.

Account:

  • get_account, get_account_activity, get_two_factor_status, update_profile and set_language.
  • list_api_keys, create_api_key and delete_api_key: a new key is shown once, and only when you ask for it.
  • list_ssh_keys, add_ssh_key and delete_ssh_key.
  • get_account_notifications, set_account_notifications and test_account_notification.
  • get_curseforge_key, set_curseforge_key, get_factorio_credentials and set_factorio_credentials: the keys are write-only.

Prices and orders (read only):

  • get_plans_and_prices, list_orders and list_pending_orders.

Tools that remove or revoke something (ports, subusers, API and SSH keys, the custom domain, schedule tasks, a modpack, linked servers) need confirm=true, so your assistant has to ask you first. Ordering, upgrading, moving, renewing, cancelling and deleting servers, changing your email or password, turning two-factor login on or off, and your avatar are not offered here: use the web panel. get_two_factor_status only tells you whether it is on.

Passwords are hidden unless you ask your assistant to show them.

Schedules:

  • list_schedules.
  • create_schedule.
  • delete_schedule.

Account:

  • get_plans_and_prices: games, plan sizes and regional prices.
  • list_orders.

Safety#

  • Tools that change something are marked for your client. Destructive ones are marked destructiveHint, so clients ask before running them: power kill, restore, deleting files, backups, schedules or databases, database import, reinstall, version switch, modpack install and file overwrite.
  • HOSTWOLF_READONLY=1 (or ?readonly=1 on the hosted URL) removes every tool that writes.
  • HOSTWOLF_SERVERS (or ?servers=) limits the assistant to specific servers.
  • HOSTWOLF_TOOLSETS (or ?toolsets=) loads only the groups of tools you name, for clients with a tool limit.
  • The hosted server checks your key with the panel, keeps nothing between requests and never logs keys or tool arguments. It is rate limited per address and per key.
  • API keys can't order, cancel or pay for servers. Those actions only work in the web panel.
  • You can create a separate key just for your assistant, and revoke it at any time from the panel.

Troubleshooting#

  • "Send your Hostwolf API key" (401): the client didn't send the Authorization: Bearer ptlc_... header. Check the header in your config.
  • "This API key was rejected by the panel" (401): the key is wrong, incomplete or revoked. Copy the whole key, which starts with ptlc_.
  • "This key has an IP allow-list…" (401): the hosted server can't use a key with an IP allow-list. Use a key without one (limit it with ?servers= or ?readonly=1), or run the server yourself.
  • "Too many requests" (429): the hosted server takes 300 requests per minute per address and 180 per key. Tools also report the API's own limits, such as 2 backups per 10 minutes, with the number of seconds to wait.
  • "Server busy" (503): try again in a few seconds.
  • A long job seems to stop: every tool answers within 50 seconds. Backups, restores, reinstalls and modpack installs carry on in the background, so ask your assistant to check back with get_server or list_backups.
  • A new database says "setting up": create_database waits up to 2 minutes (75 seconds on the hosted server) for the database service to start. If it isn't ready by then, it says so, and the database appears in list_databases shortly after.

Updating#

The hosted server is always up to date. For the self-run one, npx caches the server by its URL, so it never updates by itself. Every release has its own URL, and the server checks hostwolf.net/dl/index.json when it starts. If a newer release exists, it logs a notice and adds it to the list_servers result, so your assistant tells you. To update, change the version in your config's URL and restart your client.

Built on the SDK#

The tools use @hostwolf/sdk, which is bundled inside this package. To embed the server in your own app, install both packages:

npm install https://hostwolf.net/dl/hostwolf-sdk-0.1.9.tgz https://hostwolf.net/dl/hostwolf-mcp-0.1.12.tgz
import { Hostwolf } from '@hostwolf/sdk';
import { createHostwolfMcp } from '@hostwolf/mcp/server';

License#

MIT

Stuck, or missing an endpoint? Tell us at game.hostwolf.net/contact or support@hostwolf.net.