MCSManager MCP Server
Enables management of Minecraft servers through the MCSManager API. Supports executing server commands, checking player status, retrieving server information, and controlling game settings like weather.
README
MCSManager MCP Server
这是一个用于管理 Minecraft 服务器的 MCP (Model Context Protocol) 服务器,支持通过 npm 安装和 npx 直接执行。
功能特性
- 执行 Minecraft 服务器命令
- 获取在线玩家列表
- 获取服务器状态信息
- 设置服务器天气
- 通过命令行参数安全配置敏感信息
安装和使用
全局安装(推荐)
npm install -g mcsmanager-mcp
使用 npx(无需安装)
npx mcsmanager-mcp --base-url <url> --api-key <key> --uuid <uuid> --daemon-id <id>
本地开发
# 安装依赖
pnpm install
# 开发模式
pnpm run dev -- --base-url <url> --api-key <key> --uuid <uuid> --daemon-id <id>
# 构建
pnpm run build
# 运行构建后的版本
pnpm start -- --base-url <url> --api-key <key> --uuid <uuid> --daemon-id <id>
配置
命令行参数
所有敏感信息都通过命令行参数提供,确保安全性:
mcsmanager-mcp --base-url <url> --api-key <key> --uuid <uuid> --daemon-id <id>
必需参数:
--base-url <url>: MCSManager API 基础URL--api-key <key>: API密钥--uuid <uuid>: UUID--daemon-id <id>: Daemon ID
可选参数:
--help, -h: 显示帮助信息
示例
# 使用 npx 运行
npx mcsmanager-mcp \
--base-url http://localhost:23333 \
--api-key your-api-key \
--uuid your-uuid \
--daemon-id your-daemon-id
# 全局安装后运行
mcsmanager-mcp \
--base-url http://your-server:23333 \
--api-key your-api-key \
--uuid your-uuid \
--daemon-id your-daemon-id
可用工具
execute_command
执行 Minecraft 服务器命令
参数:
cmd(string): 要执行的命令
示例:
{
"cmd": "/say Hello World"
}
get_players
获取当前在线玩家列表
参数: 无
get_server_status
获取服务器状态信息
参数: 无
返回:
{
"online_players": 2,
"player_names": ["player1", "player2"],
"status": "online"
}
set_weather
设置服务器天气
参数:
weather(string): 天气类型,可选值: "clear", "rain", "thunder"
示例:
{
"weather": "rain"
}
发布到 npm
发布前准备
- 确保你已经登录到 npm:
npm login
- 更新版本号(如果需要):
npm version patch # 或 minor, major
- 构建项目:
pnpm run build
发布
npm publish
发布到测试环境(可选)
npm publish --tag beta
许可证
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.