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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@mcp_hub_fun/cli

v0.1.14

Published

A NPX command to install and list Model Context Protocols

Readme

@mcp_hub_fun/cli

@mcp_hub_fun/cli 是一个用于安装、运行和管理 MCP Hub 平台 MCP Server 的命令行工具。

要求

  • NodeJS 18或更高版本

安装

npm install -g @mcp_hub_fun/cli

或者使用npx直接运行:

npx @mcp_hub_fun/cli <命令>

使用方法

npx @mcp_hub_fun/cli <命令>

可用命令

  • install <服务器> - 安装一个 MCP 服务器
    • --client <客户端> - 指定 AI 客户端
    • --path <路径> - 指定自定义配置文件路径
  • uninstall <服务器> - 卸载一个 MCP 服务器
    • --client <客户端> - 指定 AI 客户端
    • --path <路径> - 指定自定义配置文件路径
  • run <服务器> - 运行一个 MCP 服务器
    • --env <json> - 提供JSON格式的配置
  • list clients - 列出可用的客户端
  • --help - 显示帮助信息

支持的客户端

  • cursor - Cursor 编辑器
  • trae - Trae 国内版本
  • trae-global - Trae 国际版本
  • cline - Cline 扩展
  • windsurf - Windsurf 编辑器

示例

# 安装服务器到 Cursor(默认路径)
npx -y @mcp_hub_fun/cli@latest install sequential-thinking --client cursor

# 安装服务器到 Trae 国际版
npx -y @mcp_hub_fun/cli@latest install sequential-thinking --client trae-global

# 安装服务器到自定义路径
npx -y @mcp_hub_fun/cli@latest install sequential-thinking --client cursor --path /custom/path/mcp.json

# 卸载服务器
npx -y @mcp_hub_fun/cli@latest uninstall sequential-thinking --client cursor

# 从自定义路径卸载服务器
npx -y @mcp_hub_fun/cli@latest uninstall sequential-thinking --client cursor --path /custom/path/mcp.json

# 列出可用的客户端
npx -y @mcp_hub_fun/cli list clients

# 运行服务器
npx -y @mcp_hub_fun/cli run sequential-thinking

# 运行服务器并增加配置
npx -y @mcp_hub_fun/cli@latest run Codebase --client cursor --env '{"API_TOKEN":"<填入你的API_TOKEN>"}'

# 显示帮助菜单
npx @mcp_hub_fun/cli --help

自定义路径功能

使用 --path 参数可以将 MCP 服务器安装到自定义位置,这在以下情况下很有用:

  1. 非标准安装路径: 当 AI 客户端安装在非默认位置时
  2. 便携式应用: 当使用便携版 AI 客户端时
  3. 多用户环境: 在共享系统上为不同用户配置不同路径
  4. 备份和迁移: 方便配置文件的备份和迁移
# 示例:使用自定义路径
npx @mcp_hub_fun/cli install my-server --client cursor --path "/Applications/Cursor.app/Contents/Resources/app/extensions/mcp.json"