YouTube转VLC流媒体服务器

一个将YouTube视频流式传输到VLC播放器的MCP服务器,适用于需要将在线视频内容本地播放的场景。

  • by cola314
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 cola314/yt2vlc-mcp

使用说明

yt2vlc mcp

将YouTube视频流式传输到VLC播放器的MCP服务器

安装

pip install -r requirements.txt

执行

python main.py

服务器 http://127.0.0.1:8000在中运行。

MCP客户端连接

Claude桌面连接(使用代理)

Claude Desktop无法直接使用远程MCP服务器,因此使用代理服务器。

  1. 运行MCP服务器 (终端1):
python main.py
  1. 代理服务器设置:Claude Desktop设置文件(%APPDATA%\Claude\claude_desktop_config.json)添加以下内容:
{
  "mcpServers": {
    "yt2vlc-mcp": {
      "command": "python",
      "args": ["/path/to/proxy_server.py"],
    }
  }
}

结构: Claude Desktop → STDIO → proxy_server.py → HTTP → main.py

Cursor连接

Cursor的MCP设置文件(.cursorrules 或设置)添加以下内容:

{
  "mcp": {
    "servers": {
      "yt2vlc-mcp": {
        "url": "http://127.0.0.1:8000"
      }
    }
  }
}

使用方法

YouTube搜索

YouTube에서 "노래 제목" 검색해줘

YouTube流媒体

https://www.youtube.com/watch?v=... 이 영상을 VLC로 재생해줘

必需程序

  • Python 3.7+
  • 媒体播放器
  • yt-dlp
  • 命令行