Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCSManager MCP Serverset the weather to rain on the survival server"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCSManager MCP Server
这是一个用于管理 Minecraft 服务器的 MCP (Model Context Protocol) 服务器,支持通过 npm 安装和 npx 直接执行。
功能特性
执行 Minecraft 服务器命令
获取在线玩家列表
获取服务器状态信息
设置服务器天气
通过命令行参数安全配置敏感信息
安装和使用
全局安装(推荐)
使用 npx(无需安装)
本地开发
配置
命令行参数
所有敏感信息都通过命令行参数提供,确保安全性:
必需参数:
--base-url <url>: MCSManager API 基础URL--api-key <key>: API密钥--uuid <uuid>: UUID--daemon-id <id>: Daemon ID
可选参数:
--help, -h: 显示帮助信息
示例
可用工具
execute_command
执行 Minecraft 服务器命令
参数:
cmd(string): 要执行的命令
示例:
get_players
获取当前在线玩家列表
参数: 无
get_server_status
获取服务器状态信息
参数: 无
返回:
set_weather
设置服务器天气
参数:
weather(string): 天气类型,可选值: "clear", "rain", "thunder"
示例:
发布到 npm
发布前准备
确保你已经登录到 npm:
更新版本号(如果需要):
构建项目:
发布
发布到测试环境(可选)
许可证
MIT