Mcp Youtube Transcript

io.github.jkawamoto由 GitHub 账号 jkawamoto 发布v0.8.3更新于 Oct 29, 2026

An MCP server retrieving transcripts of YouTube videos

发布方自己的服务:Transcript

概览

AI 生成的概览

本地运行的 MCP 服务器,可将 YouTube 视频的字幕与元数据取回给助手,支持语言选择与长视频分页。

可以做什么
  • 根据 YouTube 视频链接获取纯文本字幕
  • 获取带开始时间与持续时间的字幕分段
  • 列出可用的字幕语言,包括人工与自动生成
  • 获取视频标题、频道等元数据
  • 通过下一页游标分块读取长视频字幕
适用场景
适合让助手阅读、总结、引用或检索 YouTube 视频的口播内容,例如长讲座、会议演讲和播客,无需手动复制字幕。
运行要求
以 stdio 方式在本地运行;README 建议使用 uv/uvx(也可用 Docker 镜像或 Claude Desktop 的 .mcpb 包)。需要能访问 YouTube 的网络。可选代理凭据通过环境变量提供,例如 WEBSHARE_PROXY_USERNAME、WEBSHARE_PROXY_PASSWORD、SCRAPINGANT_API_TOKEN 或 HTTPS_PROXY。
安装前请注意
字幕请求会发往 YouTube,云端或数据中心 IP 可能被限流或封禁;README 建议使用付费住宅代理,ScrapingAnt 访问需要付费订阅并消耗额度。代理凭据以环境变量或命令行参数传入,请勿写入共享配置。字幕属第三方内容,自动生成的字幕可能有误。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Youtube Transcript,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

English | 日本語

YouTube Transcript MCP Server

[uv] [Python Application] [pre-commit] [GitHub License] [Dockerhub]

A Model Context Protocol (MCP) server that fetches transcripts and metadata from YouTube videos directly into your LLM workflows.

Designed specifically for AI agents, it seamlessly handles long-form videos through automatic pagination and provides robust proxy support to circumvent YouTube rate limits and IP bans.

Key Features

  • Rich Transcript Retrieval: Fetch raw text, timestamped segments, and video metadata in multiple languages.
  • Smart Chunking & Pagination: Automatically chunks long transcripts (default: 50,000 characters) to prevent context window overflow, letting models page through hours of video effortlessly.
  • Resilient Proxy Support: Built-in support for residential proxies (Webshare, ScrapingAnt) and standard HTTP/HTTPS proxies to prevent IP blocks.
  • Universal Compatibility: Works with Claude Desktop, Cursor, LM Studio, Goose, and any standard MCP client.

Quick Start & Installation

[!NOTE] You'll need uv installed on your system to use uvx command.

This server communicates via standard stdio. Most MCP clients can run it directly using uvx (part of Astral uv).

General Configuration (Standard MCP JSON)

Add this entry to your client's MCP configuration file (typically under mcpServers):

json
{  "mcpServers": {    "youtube-transcript": {      "command": "uvx",      "args": [        "--from",        "git+https://github.com/jkawamoto/mcp-youtube-transcript",        "mcp-youtube-transcript"      ]    }  }}
Client-Specific Setup Guides (Click to expand)
Claude Desktop
  • GUI (Drag & Drop): Download the .mcpb bundle from the Releases page and drop it into your Claude Desktop Settings.
  • Manual Config: Add the JSON above to claude_desktop_config.json (restart Claude Desktop after saving):
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
Cursor
  1. Go to Cursor Settings > Features > MCP Servers.
  2. Click + Add New MCP Server.
  3. Name: youtube-transcript, Type: command.
  4. Command: uvx --from git+https://github.com/jkawamoto/mcp-youtube-transcript mcp-youtube-transcript
Goose

Please refer to this tutorial for detailed installation instructions: YouTube Transcript Extension.

LM Studio

To configure this server for LM Studio, click the button below.

[Add MCP Server youtube-transcript to LM Studio]

Using Docker

A Docker image for this server is available on Docker Hub. Please refer to the Docker Hub page for detailed usage instructions and documentation.

Available Tools

The server registers the following MCP tools for LLM agents:

ToolDescription
get_transcriptRetrieves the plain-text transcript for a YouTube video URL.
get_timed_transcriptRetrieves transcript segments with start times and durations.
get_available_languagesLists all available transcript languages (manual & auto-generated).
get_video_infoFetches video metadata such as title and channel information.
Tool Parameters & Schema
  • get_transcript

    • url (string, required): Full YouTube video URL.
    • lang (string, optional): Preferred language code (defaults to "en").
    • next_cursor (integer, optional): Cursor to fetch the next chunk for long videos.
  • get_timed_transcript

    • url (string, required): Full YouTube video URL.
    • lang (string, optional): Preferred language code (defaults to "en").
    • next_cursor (integer, optional): Cursor to fetch the next chunk.
  • get_available_languages

    • url (string, required): Full YouTube video URL.
  • get_video_info

    • url (string, required): Full YouTube video URL.

Advanced Configuration

Handling Long Videos (Pagination)

Long videos (e.g., lectures, conferences, podcast episodes) can quickly exceed LLM token context limits. By default, transcripts exceeding 50,000 characters are chunked. When a response is split, a next_cursor is provided so the LLM agent can autonomously query the rest.

To customize the chunk character limit, supply --response-limit. To disable pagination and fetch the entire transcript at once, set --response-limit to a negative value (e.g., -1):

json
{  "mcpServers": {    "youtube-transcript": {      "command": "uvx",      "args": [        "--from",        "git+https://github.com/jkawamoto/mcp-youtube-transcript",        "mcp-youtube-transcript",        "--response-limit",        "15000"      ]    }  }}

Avoiding IP Bans (Proxy Setup)

YouTube aggressively blocks automated transcript requests from cloud providers and data center IPs. Using residential or rotating proxies ensures uninterrupted access.

1. Webshare Residential Proxy

Set credentials via environment variables or command-line flags:

json
{  "mcpServers": {    "youtube-transcript": {      "command": "uvx",      "args": [        "--from",        "git+https://github.com/jkawamoto/mcp-youtube-transcript",        "mcp-youtube-transcript"      ],      "env": {        "WEBSHARE_PROXY_USERNAME": "your_username",        "WEBSHARE_PROXY_PASSWORD": "your_password"      }    }  }}

(CLI equivalents: --webshare-proxy-username and --webshare-proxy-password)

2. ScrapingAnt

If using ScrapingAnt, supply your API token:

json
{  "mcpServers": {    "youtube-transcript": {      "command": "uvx",      "args": [        "--from",        "git+https://github.com/jkawamoto/mcp-youtube-transcript",        "mcp-youtube-transcript"      ],      "env": {        "SCRAPINGANT_API_TOKEN": "your_api_token"      }    }  }}

(CLI equivalent: --scrapingant-api-token)

Accessing YouTube requires a paid ScrapingAnt Web Scraping API subscription. YouTube access requires residential proxies, which consume more ScrapingAnt credits than standard proxy requests. See the ScrapingAnt credit cost documentation for details.

3. Standard / Generic HTTP & HTTPS Proxies

Specify custom proxy endpoints via HTTP_PROXY / HTTPS_PROXY (or --http-proxy / --https-proxy):

json
{  "mcpServers": {    "youtube-transcript": {      "command": "uvx",      "args": [        "--from",        "git+https://github.com/jkawamoto/mcp-youtube-transcript",        "mcp-youtube-transcript"      ],      "env": {        "HTTPS_PROXY": "http://username:[email protected]:8080"      }    }  }}

For more details, please visit: Working around IP bans - YouTube Transcript API.

License

This application is licensed under the MIT License. See the LICENSE file for more details.

来源:README.md,提交 a0bfbbc

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

4
  1. v0.8.3最新Oct 29, 2026
  2. v0.8.1Oct 21, 2026
  3. v0.8.0Sep 24, 2026
  4. v0.7.2Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Transcript 集成