DeepSRT多语言视频摘要工具

@DeepSRT/deepsrt-mcp
0 Stars 84 次浏览 DeepSRT 更新于 2026-08-23

一个模型上下文协议服务器,能够支持多语言,帮助人工智能助手以叙述或项目符号格式生成YouTube视频的摘要。

该服务暂未提供标准配置,请参考 README 手动接入

服务介绍

DeepSRT MCP 服务器

一个通过与 DeepSRT 的 API 集成提供 YouTube 视频摘要功能的模型上下文协议 (MCP) 服务器。

功能

  • 为 YouTube 视频生成摘要
  • 支持叙述式和项目符号式摘要模式
  • 多语言支持(默认:zh-tw)
  • 与启用 MCP 的环境无缝集成

工作原理

  1. 内容缓存

    • 视频必须首先通过 DeepSRT 打开,以确保内容在服务中被缓存
    • 这次初始观看会触发 DeepSRT 服务中的缓存过程
  2. 通过 MCP 获取摘要

    • 当通过 MCP 请求摘要时,内容将从 DeepSRT 的 CDN 边缘位置提供
    • 这确保了摘要的快速高效传递
  3. 预缓存内容

    • 一些视频可能已经因为之前的用户请求而被缓存在系统中
    • 虽然您可能能够获取这些预缓存视频的摘要,但其可用性不能保证
    • 为了获得最佳结果,请确保视频首先通过 DeepSRT 打开
%%{init: {'theme': 'dark', 'themeVariables': { 'primaryColor': '#2496ED', 'secondaryColor': '#38B2AC', 'tertiaryColor': '#1F2937', 'mainBkg': '#111827', 'textColor': '#E5E7EB', 'lineColor': '#4B5563', 'noteTextColor': '#E5E7EB'}}}%%
sequenceDiagram
    participant User
    participant DeepSRT
    participant Cache as DeepSRT Cache/CDN
    participant MCP as MCP Client

    Note over User,MCP: Step 1: Initial Caching
    User->>DeepSRT: Open video through DeepSRT
    DeepSRT->>Cache: Process and cache content
    Cache-->>DeepSRT: Confirm cache storage
    DeepSRT-->>User: Display video/content

    Note over User,MCP: Step 2: MCP Summary Retrieval
    MCP->>Cache: Request summary via MCP
    Cache-->>MCP: Return cached summary from edge location

    Note over User,MCP: Alternative: Pre-cached Content
    rect rgba(31, 41, 55, 0.6)
        MCP->>Cache: Request summary for pre-cached video
        alt Content exists in cache
            Cache-->>MCP: Return cached summary
        else Content not cached
            Cache-->>MCP: Cache miss
        end
    end

安装

为 Claude Desktop 安装

  1. 首先,构建服务器:
npm install
npm run build
  1. 将服务器配置添加到您的 Claude Desktop 配置文件中:
  • 在 macOS 上:~/Library/Application Support/Claude/claude_desktop_config.json
  • 在 Windows 上:%APPDATA%/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "deepsrt-mcp": {
      "command": "node",
      "args": [
        "/path/to/deepsrt-mcp/build/index.js"
      ]
    }
  }
}

为 Cline 安装

只需在聊天中让 Cline 为您安装:

"嘿,从 https://github.com/DeepSRT/deepsrt-mcp 为我安装这个 MCP 服务器"

Cline 会自动为您安装 deepsrt-mcp 并更新您的 cline_mcp_settings.json

使用

服务器提供了以下工具:

get_summary

获取 YouTube 视频的摘要。

参数:

  • videoId(必需):YouTube 视频 ID
  • lang(可选):语言代码(例如 zh-tw)- 默认为 zh-tw
  • mode(可选):摘要模式("narrative" 或 "bullet")- 默认为 narrative

示例用法

使用 Claude Desktop:

// The MCP tool will fetch the video summary
const result = await mcp.use_tool("deepsrt-mcp", "get_summary", {
  videoId: "dQw4w9WgXcQ",
  lang: "zh-tw",
  mode: "narrative"
});

使用 Cline:

const result = await mcp.use_tool("deepsrt", "get_summary", {
  videoId: "dQw4w9WgXcQ",
  lang: "zh-tw",
  mode: "bullet"
});

开发

安装依赖项:

npm install

启动开发服务器:

npm run dev

生产构建:

npm run build

演示

常见问题解答

Q: 我收到了 404 错误,为什么?

A: 这是因为该视频摘要尚未缓存在 CDN 边缘位置,您需要使用 DeepSRT Chrome 扩展程序打开此视频,以便将其缓存在 CDN 网络中,然后才能通过 MCP 获取该摘要。

您可以使用 cURL 类似如下方式验证缓存状态

curl -s 'https://worker.deepsrt.com/transcript' \
-i --data '{"arg":"v=VafNvIcOs5w","action":"summarize","lang":"zh-tw","mode":"narrative"}' | grep -i "^cache-status"
cache-status: HIT

如果您看到 cache-status: HIT,则表示内容已缓存在 CDN 边缘位置,并且您的 MCP 服务器不应收到 404