Connect AI to your Hytale server
Discover how to transform your Hytale server into an AI-controllable platform using the MCP plugin. Use ChatGPT, Claude, Codex or Gemini to automate building, administration and much more.
1. Introduction: AI at the Service of Your Hytale Server
The MCP (Model Context Protocol) plugin revolutionizes how you manage your Hytale server. It allows you to connect AI assistants like ChatGPT, Claude, Codex or Gemini directly to your server to automate complex tasks, build structures automatically or manage your server in natural language.
2. What is the Model Context Protocol (MCP)?
MCP is a standardized protocol that allows AI assistants to communicate securely with external applications. For Hytale, this means your AI can see the server status, place blocks, manage players and execute commands.
Compatible AI Assistants
- Claude (Anthropic) - Anthropic's assistant, excellent for complex tasks
- ChatGPT (OpenAI) - OpenAI's AI, ideal for natural conversations
- Codex - OpenAI application optimized for programming
- Gemini (Google) - Google's AI, performant and versatile
3. Use Cases: What is this Plugin For?
-
Automated Building
Ask the AI to build a castle, house or any structure. The AI calculates the necessary blocks and places them automatically. -
Simplified Administration
Manage players, check logs, broadcast messages... all in natural language. -
Assisted Moderation
Monitor server activity and make decisions with AI assistance. -
Development and Testing
Quickly test game mechanics or configurations without writing code.
4. Technical Requirements
- ✔ Hytale Server: A working Hytale server (see our creation guide)
- ✔ WebServer Plugin: The Nitrado WebServer plugin must be installed (mandatory dependency)
- ✔ AI Assistant: An account on Claude, ChatGPT, Codex or Gemini
- ✔ Network: HTTP/HTTPS access to your server from the internet
5. Installing the MCP Plugin
Download the MCP plugin
Download the latest version of the MCP-*.jar file from CurseForge or GitHub.
Download MCPPlace the plugin
Copy the MCP-*.jar file into your Hytale server's mods/ folder.
mods/MCP-*.jar
Install the WebServer plugin
If not already done, also install the Nitrado WebServer plugin in the same mods/ folder.
Start the server
Launch your server. MCP will automatically generate its configuration file. The plugin will be accessible at the following URL:
http://your-server:port/Top-Games/MCP/mcp
6. Plugin Configuration
After the first start, edit the mods/MCP/config.json file to configure authentication tokens and permissions.
mods/MCP/config.json
{
"auth": {
"enabled": true,
"adminTokens": ["your-admin-token-here"],
"playerTokens": ["your-player-token-here"]
},
"maxBlocksBatch": 1000,
"adminPermissions": {
"set_block": true,
"set_blocks": true,
"flatten_terrain": true,
"execute_command": true,
"list_players": true,
"send_message": true,
"broadcast_message": true,
"get_player_position": true,
"list_blocks": true,
"get_server_logs": true,
"get_world_info": true,
"give_item": true
},
"playerPermissions": {
"set_block": false,
"set_blocks": false,
"flatten_terrain": false,
"execute_command": false,
"list_players": false,
"send_message": false,
"broadcast_message": false,
"get_player_position": false,
"list_blocks": false,
"get_server_logs": false,
"get_world_info": false,
"give_item": false
}
}
Important Security
7. Configure Your AI Assistants
Configuration for Codex (OpenAI)
In the Codex application, add an MCP server with the following settings:
MCP Configuration
{
"mcpServers": {
"hytale-server": {
"url": "http://your-server:port/Top-Games/MCP/mcp",
"headers": {
"Authorization": "Bearer your-admin-token"
}
}
}
}
Configuration for Claude Desktop
Add the following configuration to the Claude Desktop configuration file:
Claude Configuration
{
"url": "http://your-server:port/Top-Games/MCP/mcp",
"auth": {
"type": "bearer",
"token": "your-admin-token"
}
}
Configuration for ChatGPT
For ChatGPT, use the OpenAI API with a compatible MCP client or configure via the Custom Actions interface.
8. Available Features
Building and Terrain
- Place a block at precise coordinates
- Place multiple blocks in a single operation (up to 1000)
- Flatten a rectangular area at a given height
- Search and list available block types
Player Management
- View list of connected players
- Get a player's position and rotation
- Send a private message to a player
- Give items to a player
Server Administration
- Execute any server command
- Broadcast a message to all players
- View server logs with filtering
- Get information about the current world
9. MCP Commands and Tools
Here are the main tools the AI can use via MCP:
| Tool | Description |
|---|---|
set_block |
Places a single block at x, y, z coordinates |
set_blocks |
Places multiple blocks at once (batch operation) |
flatten_terrain |
Flattens a rectangular area to prepare terrain |
list_players |
Lists all connected players with their information |
list_blocks |
Searches the available block catalog |
execute_command |
Executes an arbitrary server command |
10. Practical Usage Examples
Example 1: Build a House
Prompt: "Build me a small wooden house with windows and a door at coordinates X:100, Y:64, Z:200"
Example 2: Prepare Flat Terrain
Prompt: "Flatten the terrain from X:0 to X:50 and Z:0 to Z:50 at height Y:70"
Example 3: Send Welcome Message
Prompt: "Send a welcome message to all new players"
11. Frequently Asked Questions
Ready to Automate Your Hytale Server?
Discover the best Hytale servers from the community or add yours to gain visibility.
Conclusion
The MCP plugin transforms your Hytale server into an intelligent AI-controllable platform. Whether you're an administrator looking to automate repetitive tasks or a builder wanting to create complex structures quickly, MCP with ChatGPT, Claude or Codex opens exciting new possibilities. Remember to always secure your tokens and test features in a development environment before deploying to production.
Information
Installation Checklist
- Install Nitrado WebServer plugin
- Download and install MCP
- Configure authentication tokens
- Configure your AI assistant (Codex, Claude...)
- Test the connection
- Experiment with simple commands