Skip to main content
Glama

DeepSRT MCP サーバー

DeepSRT の API との統合を通じて YouTube ビデオ要約機能を提供するモデル コンテキスト プロトコル (MCP) サーバー。

特徴

  • 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にインストールを依頼するだけです:

「ねえ、この MCP サーバーをhttps://github.com/DeepSRT/deepsrt-mcpからインストールしてください」

Cline はdeepsrt-mcpを自動的にインストールし、 cline_mcp_settings.jsonを更新します。

使用法

サーバーは次のツールを提供します。

要約を取得する

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 エッジ ロケーションにキャッシュされていないためです。MCP を使用して概要を取得する前に、DeepSRT Chrome 拡張機能を使用してこのビデオを開き、CDN ネットワークにキャッシュする必要があります。

次のように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