Skip to main content
Glama

DeepSRT MCP 服务器

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

特征

  • 生成 YouTube 视频摘要

  • 支持叙述和要点摘要模式

  • 多语言支持(默认:zh-tw)

  • 与支持 MCP 的环境无缝集成

Related MCP server: youtube-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 。

用法

服务器提供以下工具:

获取摘要

获取 YouTube 视频的摘要。

参数:

  • videoId (必需):YouTube 视频 ID

  • lang (可选):语言代码(例如 zh-tw)- 默认为 zh-tw

  • mode (可选):摘要模式(“叙述”或“项目符号”) - 默认为叙述

示例用法

使用 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

演示

常问问题

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

答:这是因为视频摘要未缓存在 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 。

Available Tools

2 tools
get_summaryC

Get summary for a YouTube video

Inputs: videoId (required), lang, mode.

get_transcriptB

Get transcript for a YouTube video with timestamps

Inputs: videoId (required), lang.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: one retrieves a summary, the other retrieves a transcript with timestamps. There is no overlap in functionality, making it easy for an agent to select the correct tool based on the need for either a concise overview or detailed textual content.

    Naming Consistency5/5

    Both tools follow a consistent verb_noun pattern (get_summary, get_transcript), using the same verb 'get' and descriptive nouns. This uniformity makes the tool set predictable and easy to understand.

    Tool Count2/5

    With only two tools, the server feels thin for a domain like YouTube video processing. While the tools cover basic retrieval, the scope is limited, lacking operations such as search, analysis, or management of video content, which could be expected from a more comprehensive server.

    Completeness2/5

    The tool set is severely incomplete for a YouTube-focused server. It only provides retrieval functions (summary and transcript), missing essential operations like video search, metadata fetching, comment handling, or any CRUD capabilities, leaving significant gaps in coverage for typical agent workflows.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that enables interaction with the YouTube Data API, allowing users to search videos, get video and channel details, analyze trends, and fetch video transcripts.
      -
    • A
      license
      B
      quality
      B
      maintenance
      An MCP server that enables the extraction of transcripts and detailed metadata from YouTube videos. It allows users to retrieve video information like titles and descriptions, as well as transcripts with optional timestamps and language selection.
      2
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      MCP server that fetches YouTube video transcripts and optionally summarizes them. Supports multiple transcript formats (text, JSON, SRT, WebVTT), multi-language retrieval, and flexible YouTube URL parsing.
      6
      49 PyPI
      6
      MIT