DeepSRT MCP Server

DeepSRT MCP Server
官方

一个 MCP 服务器,通过与 DeepSRT 的 API 集成,使用户能够以多种语言和格式生成 YouTube 视频的摘要。 (Alternatively, a slightly more formal translation:) 一个 MCP 服务器,它与 DeepSRT 的 API 集成,使用户能够生成多种语言和格式的 YouTube 视频摘要。

图像与视频处理
访问服务器

Tools

get_summary

Get summary for a YouTube video

README

DeepSRT MCP 服务器

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

功能特性

  • 生成 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 安装:

"Hey, install this MCP server for me from https://github.com/DeepSRT/deepsrt-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:

// MCP 工具将获取视频摘要
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

演示

  • https://www.threads.net/@pahud/post/DGmIR7gOG5M
  • https://www.threads.net/@pahud/post/DGoGiMDuWa9

常见问题解答

问:我收到 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

推荐服务器

Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
@kazuph/mcp-fetch

@kazuph/mcp-fetch

用于获取网页内容和处理图像的模型上下文协议服务器。这使得 Claude Desktop(或任何 MCP 客户端)能够适当地获取网页内容和处理图像。

精选
本地
JavaScript
mermaid-mcp-server

mermaid-mcp-server

一个模型上下文协议 (MCP) 服务器,用于将 Mermaid 图表转换为 PNG 图像。

精选
JavaScript
mcp-pinterest

mcp-pinterest

用于图像搜索和信息检索的 Pinterest 模型上下文协议 (MCP) 服务器

精选
TypeScript
ScreenshotOne MCP Server

ScreenshotOne MCP Server

一个官方的 MCP 服务器实现,它允许 AI 助手通过 ScreenshotOne API 捕获网站截图,从而在对话期间提供来自网页的视觉上下文。

官方
TypeScript
Glif

Glif

通过 MCP 运行托管在 Glif.app 上的 AI 工作流程,包括基于 ComfyUI 的图像生成器、表情包生成器、自拍、链式 LLM 调用等等。

官方
TypeScript
WebPerfect MCP Server

WebPerfect MCP Server

一个智能的MCP服务器,具有全自动化的批处理流水线,可用于生成适用于网络的图像。功能包括降噪、自动色阶/曲线、JPEG伪影去除、4K调整大小、智能锐化(带阴影/高光增强)以及高级WebP转换。

本地
JavaScript
Stealth Browser MCP Server

Stealth Browser MCP Server

使用 Playwright 提供隐身浏览器功能,采用反检测技术,使 MCP 客户端能够浏览网站并截取屏幕截图,同时规避常见的机器人检测系统。

本地
TypeScript
Video Editor MCP Server

Video Editor MCP Server

使用自然语言命令进行视频编辑,由 FFmpeg 提供支持,支持剪辑、合并、格式转换等操作,并具有实时进度跟踪和错误处理功能。

本地
Python
PDF to PNG MCP Server

PDF to PNG MCP Server

一个模型上下文协议(MCP)服务器,通过一个简单的 MCP 工具调用将 PDF 文档转换为 PNG 图像。

本地
Python