DeepSRT MCP Server

DeepSRT MCP Server

site icon
2025.03.02 34
JavaScript视频摘要内容生成内容生成
DeepSRT MCP Server 是一个基于 Model Context Protocol (MCP) 的服务,通过与 DeepSRT API 集成,提供 YouTube 视频摘要生成功能。该服务支持多种语言(默认中文繁体)和两种摘要模式(叙述式和要点式),并能够与 MCP 环境无缝集成。
View on GitHub

Overview

基本能力

产品定位

DeepSRT MCP Server 是一个专注于视频内容摘要生成的服务,旨在为用户提供快速、高效的 YouTube 视频摘要提取功能。

核心功能

  • 为 YouTube 视频生成摘要
  • 支持叙述式和要点式两种摘要模式
  • 多语言支持(默认中文繁体)
  • 与 MCP 环境无缝集成
  • 通过 DeepSRT CDN 边缘节点快速交付摘要

适用场景

  1. 需要快速了解 YouTube 视频内容的用户
  2. 需要批量处理视频摘要的研究人员或内容创作者
  3. 需要将视频摘要集成到其他应用中的开发者

工具列表

  1. get_summary:获取 YouTube 视频摘要
  2. 参数:
    • videoId(必填):YouTube 视频 ID
    • lang(可选):语言代码(如 zh-tw),默认为 zh-tw
    • mode(可选):摘要模式("narrative" 或 "bullet"),默认为 narrative

常见问题解答

Q: 为什么我会收到 404 错误? A: 这是因为视频摘要尚未缓存在 CDN 边缘节点。您需要先使用 DeepSRT Chrome 扩展打开该视频,使其内容被缓存到 CDN 网络中,然后才能通过 MCP 获取摘要。

使用教程

使用依赖

  1. 确保已安装 Node.js 和 npm

安装教程

为 Claude Desktop 安装

  1. 构建服务器:
npm install
npm run build
  1. 将服务器配置添加到 Claude Desktop 配置文件中:
  2. macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  3. 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"

调试方式

  1. 启动开发服务器:
npm run dev
  1. 检查缓存状态:
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 表示内容已缓存在 CDN 边缘节点。

许可证

None