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

m3u8-downloader-mcp

v2.0.0

Published

M3U8视频下载工具 - MCP服务器

Readme

MCP M3U8 视频下载器

这是一个基于Model Context Protocol (MCP)的m3u8视频下载服务器,可以分析、下载、解密和合并m3u8视频。

功能特点

  • 分析m3u8文件,获取基本信息
  • 下载并解密m3u8视频,合并为mp4
  • 多进程并行下载,提高下载速度
  • 支持各种加密方式,包括AES-128
  • 自动重试下载失败的片段
  • 清理临时文件

安装方法

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

npx m3u8-downloader-mcp

或者全局安装:

npm install -g m3u8-downloader-mcp

前置要求

  • Node.js 14+
  • Python 3.6+
  • pip(Python包管理器)

在Cursor中配置

  1. 打开Cursor
  2. 进入设置
  3. 找到MCP服务器配置部分
  4. 添加以下配置:
{
  "mcpServers": {
    "m3u8-downloader": {
      "command": "npx",
      "args": [
        "-y",
        "m3u8-downloader-mcp"
      ]
    }
  }
}

可用工具

  • analyze_m3u8: 分析m3u8文件,获取基本信息
  • download_m3u8_video: 从m3u8链接下载视频,解密并合并为mp4文件
  • check_download_status: 检查当前下载状态和临时文件夹信息
  • clean_temp_files: 清理下载过程中产生的临时文件

使用示例

在Cursor的AI会话中使用以下命令:

请分析这个m3u8链接:https://example.com/video.m3u8
请将此m3u8视频下载到D:/videos/output.mp4:https://example.com/video.m3u8

常见问题

服务器启动失败

  • 确保已安装Python 3.6+
  • 安装所需的Python包:pip install mcp pycryptodome requests tqdm flask
  • 在Windows上,可能需要以管理员权限运行

下载失败

  • 检查m3u8链接是否有效
  • 确保有足够的磁盘空间
  • 检查目标目录的写入权限

许可证

MIT