Mcp Youtube Subtitles Extractor

Mcp Youtube Subtitles Extractor

🚀 MCP 服务器:YouTube 字幕提取器

这是一个能够从给定的 YouTube 链接中提取字幕的 MCP 服务器,为用户提供便捷的字幕提取服务。

👉👉👉 已迁移到 https://github.com/microsoft/mcp-dotnet-samples 👈👈👈

🚀 快速开始

✨ 先决条件

📦 安装指南

运行 Azure Functions MCP 服务器本地

  1. 克隆仓库:
    git clone https://github.com/your-repository.git
    cd mcp-youtube-subtitles
    
  2. 启动 Docker 容器:
    docker compose up -d
    
  3. 打开 VS Code 并连接到远程容器:
    code --remote host.docker.internal:22 ./
    

运行 Azure Functions MCP 服务器远程

  1. 在 Azure 门户中创建一个新的 Azure Function 应用。
  2. 将项目部署到该函数应用。
  3. 获取函数应用的名称和系统密钥。

💻 使用示例

连接 MCP 服务器到客户端

使用 VS Code Agent 模式连接本地服务器
  1. 打开命令面板(Ctrl+Shift+PCmd+Shift+P)。
  2. 输入并选择 MCP: 列出服务器
  3. 选择 mcp-youtube-subtitles-function-remote 并点击 开始服务器
  4. 输入函数应用名称和系统密钥。
  5. 输入提示,例如:
    概括这个 YouTube 链接中的视频内容,分点列出:https://youtu.be/XwnEtZxaokg?si=V39ta45iMni_Uc_m
    
使用 VS Code Agent 模式连接远程服务器
  1. 打开命令面板(Ctrl+Shift+PCmd+Shift+P)。
  2. 输入并选择 MCP: 列出服务器
  3. 选择 mcp-youtube-subtitles-function-remote 并点击 开始服务器
  4. 输入函数应用名称和系统密钥。
  5. 输入提示,例如:
    概括这个 YouTube 链接中的视频内容,分点列出:https://youtu.be/XwnEtZxaokg?si=V39ta45iMni_Uc_m
    
使用 MCP Inspector 连接本地服务器
  1. 安装并运行 MCP Inspector:
    npm install -g @modelcontextprotocol/inspector
    inspector
    
  2. 在浏览器中打开 MCP Inspector 的地址(例如 http://0.0.0.0:5173)。
  3. 设置传输类型为 SSE
  4. 将 URL 设置为运行中的 Function 应用的 SSE 终端点并连接:
    http://localhost:7071/runtime/webhooks/mcp/sse
    
  5. 点击 列出工具
  6. 选择一个工具并使用 YouTube 链接和语言代码(如 enko)运行。
使用 MCP Inspector 连接远程服务器
  1. 安装并运行 MCP Inspector:
    npm install -g @modelcontextprotocol/inspector
    inspector
    
  2. 在浏览器中打开 MCP Inspector 的地址(例如 http://0.0.0.0:5173)。
  3. 设置传输类型为 SSE
  4. 将 URL 设置为运行中的 Function 应用的 SSE 终端点并连接:
    https://.azurewebsites.net/runtime/webhooks/mcp/sse?code=
    
  5. 点击 列出工具
  6. 选择一个工具并使用 YouTube 链接和语言代码(如 enko)运行。
  • 0 关注
  • 0 收藏,10 浏览
  • system 提出于 2025-09-27 17:27

相似服务问题