pebblehost-mcp
Enables natural language management of Pebblehost Minecraft servers, including server status, control, console commands, file management, and backups.
README
Pebblehost Minecraft MCP Server
A Model Context Protocol (MCP) server for managing Pebblehost Minecraft servers directly from Claude Desktop or any MCP-compatible client.
✨ Features
- 📊 Server Status - Real-time CPU, RAM, disk usage, and uptime monitoring
- 🎮 Server Control - Start, stop, restart, and kill server processes
- 💬 Console Commands - Send Minecraft commands directly (say, kick, whitelist, etc.)
- 📁 File Management - Read, write, and manage server configuration files
- 💾 Backup Management - List and create server backups
- 🔐 Secure - API key-based authentication with Pebblehost's official API
📋 Prerequisites
- Node.js 16.x or higher
- Claude Desktop or any MCP-compatible client
- Pebblehost Account with an active Minecraft server
- Pebblehost API Credentials (API key and Server ID)
🚀 Quick Start
TODO: Package not yet published to npm. For now, install from source (see Installation below).
# TODO: Will be available via npm after publishing
# npm install -g pebblehost-mcp
# For now, install from source
git clone https://github.com/bop-del/pebblehost-mcp.git
cd pebblehost-mcp
npm install
npm run build
Configure Claude Desktop with your Pebblehost credentials and start managing your server through natural conversation.
📦 Installation
Step 1: Obtain Pebblehost Credentials
Get Your API Key
- Log in to Pebblehost Panel
- Navigate to Account → API Credentials
- Click Create API Key
- Copy the generated key (save it securely - you won't see it again)
Get Your Server ID
- Open your Minecraft server in the Pebblehost Panel
- Check the URL:
panel.pebblehost.com/server/XXXXXXXX - The
XXXXXXXXpart is your Server ID
Step 2: Install the Package
Option A: Install from npm (when published)
npm install -g pebblehost-mcp
Option B: Install from source
git clone https://github.com/bop-del/pebblehost-mcp.git
cd pebblehost-mcp
npm install
npm run build
Step 3: Configure Claude Desktop
Open your Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Add the server configuration:
{
"mcpServers": {
"pebblehost": {
"command": "node",
"args": ["/absolute/path/to/pebblehost-mcp/dist/index.js"],
"env": {
"PEBBLEHOST_API_KEY": "your_api_key_here",
"PEBBLEHOST_SERVER_ID": "your_server_id_here"
}
}
}
}
Important Notes:
- Replace
/absolute/path/to/pebblehost-mcpwith the actual path - If installed globally via npm, the path will be in your global node_modules (find with
npm root -g) - Use forward slashes
/even on Windows for JSON paths - Never commit your API key to version control
Step 4: Restart Claude Desktop
Completely quit Claude Desktop and restart it to load the MCP server.
💡 Usage
Once configured, interact with your Minecraft server through natural language in Claude Desktop:
Check Server Status
English:
"What's the status of my Minecraft server?" "How much RAM is the server using?"
German:
"Wie ist der Status vom Minecraft Server?" "Wie viel RAM nutzt der Server?"
View Configuration Files
English:
"Show me the server.properties file" "What's in the whitelist.json?"
German:
"Zeig mir die server.properties" "Was steht in der whitelist.json?"
Modify Server Settings
English:
"Set spawn-protection to 0 in server.properties" "Change the difficulty to hard"
German:
"Setz spawn-protection auf 0 in server.properties" "Ändere die Schwierigkeit auf hard"
Manage Players
English:
"Kick player MaxMustermann with message 'Please don't grief!'" "Add Felix_2024 to the whitelist" "Send a message to all players: Server restarting in 5 minutes"
German:
"Kick den Spieler MaxMustermann mit der Nachricht 'Bitte nicht grieven!'" "Füg Felix_2024 zur Whitelist hinzu" "Sende eine Nachricht an alle Spieler: Server restart in 5 Minuten"
Server Control
English:
"Restart the server" "Stop the server gracefully"
German:
"Server neu starten" "Server ordentlich stoppen"
Backup Management
English:
"List all available backups" "Create a new backup before I update the plugins"
German:
"Zeig mir alle Backups" "Erstell ein Backup bevor ich die Plugins update"
🛠️ Available Tools
| Tool | Description |
|---|---|
get_server_status |
Retrieve server status (state, CPU, RAM, disk, uptime) |
get_server_info |
Get detailed server information and configuration |
send_command |
Send a Minecraft console command to the server |
power_action |
Execute power actions (start, stop, restart, kill) |
list_files |
List files and directories in a server path |
read_file |
Read the contents of a server file |
write_file |
Write content to a server file |
delete_file |
Delete a file from the server |
create_directory |
Create a new directory on the server |
rename_file |
Rename or move a file/directory |
list_backups |
List all available server backups |
create_backup |
Create a new server backup |
🔧 How It Works
This MCP server acts as a bridge between Claude Desktop and the Pebblehost API:
- Authentication: Uses your API key to authenticate with Pebblehost
- Server Operations: Translates natural language requests into Pebblehost API calls
- Response Formatting: Presents API responses in a human-readable format
- Error Handling: Provides clear error messages and troubleshooting guidance
The server implements the Model Context Protocol specification, allowing Claude to:
- Discover available tools automatically
- Execute server operations based on conversation context
- Chain multiple operations to complete complex tasks
🐛 Troubleshooting
"API error 401: Unauthorized"
Cause: Invalid or expired API key Solution: Generate a new API key in the Pebblehost Panel under Account → API Credentials and update your configuration.
"API error 404: Not Found"
Cause: Incorrect Server ID
Solution: Check the Server ID in the Pebblehost Panel URL when viewing your server: panel.pebblehost.com/server/XXXXXXXX
Server Commands Not Executing
Cause: Server is offline or suspended Solution: Verify the server is running in the Pebblehost Panel and not suspended due to billing issues.
MCP Server Not Appearing in Claude
Cause: Configuration error or Claude Desktop not restarted Solution:
- Verify the JSON syntax in
claude_desktop_config.json - Check that the path to
index.jsis absolute and correct - Completely quit and restart Claude Desktop (not just close the window)
Permission Denied Errors
Cause: API key lacks necessary permissions Solution: Regenerate API key ensuring it has full server management permissions.
🤝 Contributing
Contributions are welcome! Please see CONTRIBUTING.md for development guidelines and setup instructions.
🔮 Future Work
- Support for multiple servers in a single MCP instance
- Plugin management tools
- Advanced backup scheduling and automation
- Server performance analytics and recommendations
- Integration with more Pebblehost features (billing, support tickets)
📄 License
MIT License - see LICENSE for details.
🔗 Links
- Pebblehost - Minecraft server hosting
- Pebblehost API Documentation
- Model Context Protocol - MCP specification
- Claude Desktop - MCP-compatible AI client
Note: This is an unofficial community project and is not affiliated with or endorsed by Pebblehost. Use at your own risk and always maintain backups of your server data.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。