YouTube Translate

io.github.brianshin22由 GitHub 帳號 brianshin22 發布v0.2.1更新於 Oct 29, 2026

Transcripts, translations, summaries, subtitles, and search for public YouTube videos.

已驗證Streamable HTTP可網頁執行知識與記憶媒體與設計

概覽

AI 產生的概覽

託管式 MCP 伺服器,讓助理取得公開 YouTube 影片的逐字稿、翻譯、字幕檔、摘要,以及在影片內搜尋。

可以做什麼
  • 送出 YouTube 影片網址並查詢處理工作狀態
  • 取得純文字或含時間戳的逐字稿
  • 把逐字稿翻譯成其他語言
  • 產生翻譯後的 SRT 或 VTT 字幕檔
  • 產生短、中、長三種長度的影片摘要
  • 在影片內尋找片段,回傳時間戳與位置
適用情境
適合讓助理處理公開 YouTube 影片的口語內容:摘要演講、翻譯或製作字幕、找出特定片段而不必看完整支影片。長影片可能因工具呼叫預設約 75 秒逾時而需要重試。
執行需求
遠端端點 api.youtubetranslate.com,使用 streamable HTTP;需以 OAuth 連結帳號(PKCE、短期權杖),或以 X-API-Key 標頭提供帳號自有的 API 金鑰。若在本機以 stdio 執行,則需要 Python 3.12 以上與 YOUTUBE_TRANSLATE_API_KEY 環境變數,Docker 為選用。
安裝前請注意
需要帳號與憑證:OAuth 連結的帳號,或 X-API-Key 標頭中的 API 金鑰,本機執行時為 YOUTUBE_TRANSLATE_API_KEY。影片網址與處理請求會送往第三方服務。README 指出 OAuth 流程尚未透過 ChatGPT 或 Claude 自身的連線介面驗證,且不能在對話中販售付費額度。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 YouTube Translate,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.brianshin22%2Fyoutube-translate/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "youtube-translate": {
      "type": "http",
      "url": "https://api.youtubetranslate.com/mcp"
    }
  }
}

README

YouTube Translate MCP

[smithery badge]

A Model Context Protocol (MCP) server for accessing the YouTube Translate API, allowing you to obtain transcripts, translations, and summaries of YouTube videos.

Features

  • Get transcripts of YouTube videos
  • Translate transcripts to different languages
  • Generate subtitles in SRT or VTT format
  • Create summaries of video content
  • Search for specific content within videos

Hosted remote MCP

Production endpoint: https://api.youtubetranslate.com/mcp using streamable HTTP.

Preferred authentication is OAuth. The server returns a protected-resource discovery challenge, and the API provides public-client registration, S256 PKCE, owner consent, short-lived access tokens, refresh rotation, and revocation. Send Authorization: Bearer <access token> after linking your account.

For legacy clients, send an account-owned user key on every request:

text
X-API-Key: ut-user-...

For local stdio, YOUTUBE_TRANSLATE_API_KEY remains supported. Every hosted request is authenticated before tool discovery or invocation, and the transport is stateless. No shared administrative credential is used. The account page provides a disconnect action that revokes an assistant's token family.

Tools

  • start_video: queue a YouTube URL and return a job ID.
  • get_video_status: check processing state by job ID or YouTube ID.
  • get_transcript: return text or timestamped segments.
  • get_translation: request and return a translated transcript.
  • get_subtitles: generate and return translated SRT or VTT.
  • get_summary: generate short, medium, or long summaries.
  • search_video: find passages with global positions and timestamps.

High-level tools wait up to TOOL_TIMEOUT_SECONDS (75 by default). Longer videos return a processing message and should be retried by the agent.

Run remotely

bash
uv run youtube-translate-mcp --transport streamable-http --host 0.0.0.0 --port 8000

MCP_ALLOWED_HOSTS must include the public hostname used by the reverse proxy. Requests without X-API-Key are rejected.

ChatGPT and Claude

Use the hosted URL with OAuth where the client supports it. Account-owned API-key headers remain an alternative. The production OAuth flow and MCP invocation have been verified with an outside client, but not through ChatGPT's or Claude's own connection UI. Google account signup still needs this application's configured OIDC client. Public directory review and submission are not complete. Do not promise in-chat purchase: current ChatGPT plugin rules prohibit selling digital credits through the plugin.

Installation

Installing via Smithery

To install youtube-translate-mcp for Claude Desktop automatically via Smithery:

bash
npx -y @smithery/cli install @brianshin22/youtube-translate-mcp --client claude

Installing Manually

This package requires Python 3.12 or higher:

bash
# Using uv (recommended)uv pip install youtube-translate-mcp
# Using pippip install youtube-translate-mcp

Or install from source:

bash
# Clone the repositorygit clone https://github.com/yourusername/youtube-translate-mcp.gitcd youtube-translate-mcp
# Using uv (recommended)uv pip install -e .
# Using pippip install -e .

Usage

To run the server:

bash
# Using stdio transport (default)YOUTUBE_TRANSLATE_API_KEY=your_api_key youtube-translate-mcp
# Using SSE transportYOUTUBE_TRANSLATE_API_KEY=your_api_key youtube-translate-mcp --transport sse --port 8000

Docker

You can also run the server using Docker:

bash
# Build the Docker imagedocker build -t youtube-translate-mcp .
# Run with stdio transportdocker run -e YOUTUBE_TRANSLATE_API_KEY=your_api_key youtube-translate-mcp
# Run with SSE transportdocker run -p 8000:8000 -e YOUTUBE_TRANSLATE_API_KEY=your_api_key youtube-translate-mcp --transport sse

Environment Variables

  • YOUTUBE_TRANSLATE_API_KEY: Required. Your API key for accessing the YouTube Translate API.

Deployment with Smithery

This package includes a smithery.yaml file for easy deployment with Smithery.

To deploy, set the YOUTUBE_TRANSLATE_API_KEY configuration parameter to your YouTube Translate API key.

Development

Prerequisites

  • Python 3.12+
  • Docker (optional)

Setup

bash
# Create and activate a virtual environment using uv (recommended)uv venvsource .venv/bin/activate  # On Windows: .venv\Scripts\activate
# Install dependencies using uvuv pip install -e .
# Alternatively, with standard toolspython -m venv .venvsource .venv/bin/activate  # On Windows: .venv\Scripts\activatepip install -e .

Testing with Claude Desktop

To test with Claude Desktop (macOS/Windows only), you'll need to add your server to the Claude Desktop configuration file located at ~/Library/Application Support/Claude/claude_desktop_config.json.

Method 1: Local Development

Use this method if you want to test your local development version:

json
{    "mcpServers": {        "youtube-translate": {            "command": "uv",            "args": [                "--directory",                "/ABSOLUTE/PATH/TO/youtube-translate-mcp",                "run",                "-m", "youtube_translate_mcp"            ],            "env": {              "YOUTUBE_TRANSLATE_API_KEY": "YOUR_API_KEY"            }        }    }}

Make sure to replace /ABSOLUTE/PATH/TO/youtube-translate-mcp with the actual path to your project directory.

Method 2: Docker-based Testing

If you prefer to test using Docker (recommended for more reproducible testing):

json
{  "mcpServers": {    "youtube-translate": {      "command": "docker",      "args": [        "run",        "-i",        "--rm",        "-e",        "YOUTUBE_TRANSLATE_API_KEY",        "youtube-translate-mcp"      ],      "env": {        "YOUTUBE_TRANSLATE_API_KEY": "YOUR_API_KEY"      }    }  }}

Replace YOUR_API_KEY with your actual YouTube Translate API key.

For more information on using MCP servers with Claude Desktop, see the MCP documentation.

Debugging

  • The normal MCP Inspector has a built in timeout for MCP tool calls, which is generally too short for these video processing calls (as of March 13, 2025). Better to use Claude Desktop and look at the MCP logs from Claude at ~/Library/Logs/Claude/mcp-server-{asfasf}.log.
  • Can do tail -f {log-file}.log to follow as you interact with Claude.

Directory submissions and launch learnings

See submission/README.md for the ChatGPT review status, Claude preparation, exact findings and fixes, evidence, and remaining steps. The cross-product submission playbook captures reusable requirements and failure modes for future services.

License

MIT

來源:README.md,提交 75ca25b

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

1
  1. v0.2.1最新Oct 29, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分