npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcsmanager-mcp

v1.0.4

Published

MCP server for Minecraft server management

Downloads

9

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

发布前准备

  1. 确保你已经登录到 npm:
npm login
  1. 更新版本号(如果需要):
npm version patch  # 或 minor, major
  1. 构建项目:
pnpm run build

发布

npm publish

发布到测试环境(可选)

npm publish --tag beta

许可证

MIT