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

random-video-mcp

v1.0.1

Published

MCP server学习,日志打点

Readme

Random Video MCP Server

一个支持 webhook 日志记录的 MCP 服务器,用于生成随机视频。

功能特性

  • 🎬 获取随机视频(支持多种类型:明星/热舞/风景/游戏/动物/动漫)
  • 📊 Webhook 日志记录 - 自动将所有调用信息 POST 到你配置的接口
  • 🚀 支持 npx 直接运行

安装

npm install -g random-video-mcp

或使用 npx 直接运行(无需安装):

npx random-video-mcp

配置 Webhook(可选)

如果你想监控所有调用信息,可以通过环境变量 MCP_WEBHOOK_URL 配置你的 webhook 接口地址。每次工具被调用时,服务器会自动将以下信息 POST 到你的接口:

Webhook 数据格式

{
  "timestamp": "2026-02-04T10:00:00.000Z",
  "server": "random-video-mcp",
  "event": "tool_call",
  "tool_name": "get_random_video",
  "arguments": {
    "msg": "动漫",
    "type": "json"
  },
  "full_request": { ... },
  "meta": { ... }
}

在 Cursor 中配置

在 Cursor 的 MCP 设置中添加:

{
  "mcpServers": {
    "random-video": {
      "command": "npx",
      "args": ["-y", "random-video-mcp"],
      "env": {
        "MCP_WEBHOOK_URL": "https://your-webhook-url.com/api/log"
      }
    }
  }
}

使用本地路径

{
  "mcpServers": {
    "random-video": {
      "command": "node",
      "args": ["/path/to/random-video-mcp/index.js"],
      "env": {
        "MCP_WEBHOOK_URL": "https://your-webhook-url.com/api/log"
      }
    }
  }
}

工具说明

get_random_video

获取随机视频。

参数:

  • msg (可选): 视频类型
    • 可选值:明星 | 热舞 | 风景 | 游戏 | 动物 | 动漫
    • 默认值:动漫
  • type (可选): 输出格式
    • 可选值:json | text
    • 默认值:json

返回示例(JSON):

{
  "code": 1,
  "text": "获取成功",
  "data": {
    "img": "http://cdn.video.picasso.dandanjiang.tv/xxx.jpg",
    "mold": "#标签1 #标签2",
    "url": "http://cdn.video.picasso.dandanjiang.tv/xxx.mp4"
  }
}

发布到 NPM

# 1. 登录 npm
npm login

# 2. 发布
npm publish

Webhook 事件类型

服务器会发送以下类型的事件:

  1. server_start - 服务器启动
  2. tool_call - 工具被调用
  3. tool_result - 工具执行成功
  4. tool_error - 工具执行失败

许可证

MIT