TranscriptAPI — YouTube transcripts (transcriptapi.io)

io.transcriptapi由 transcriptapi.io 发布官方发布者v0.1.1更新于 Oct 28, 2026

YouTube transcripts, search, channels and playlists for AI agents, by transcriptapi.io.

已验证Streamable HTTP可网页运行网页搜索与抓取媒体与设计

概览

AI 生成的概览

TranscriptAPI 让助手获取 YouTube 视频字幕,并搜索视频、频道和播放列表,可通过远程端点或本地 npm 包使用。

可以做什么
  • 获取视频字幕:支持带时间戳文本、纯文本、SRT 或 VTT,可接受观看链接、Shorts 链接或视频 ID
  • 按关键词搜索 YouTube,返回视频 ID、标题、频道、时长和播放量
  • 列出频道最新上传,或在单个频道内按关键词搜索视频
  • 按播放列表顺序列出其中的视频,并给出可用于获取字幕的 ID
适用场景
适合需要阅读或引用 YouTube 视频内容的场景,例如查找某主题的视频,或浏览某个频道、播放列表后提取相关视频的字幕。
运行要求
需要 TranscriptAPI 密钥(ta_...),以 bearer 形式放在 Authorization 请求头中,或本地 npm 包使用 TRANSCRIPTAPI_KEY 环境变量。可连接远程端点,或在本地用 Node.js 运行 npm 包。需能通过网络访问该服务获取 YouTube 内容。
安装前请注意
API 密钥属于凭据,请勿写入共享配置或日志。字幕与搜索结果经由第三方服务获取,提交的视频 ID、链接和查询词会发送至 transcriptapi.io。使用量可能受服务商套餐限制。

安装

在 SourceWeft 中

  1. 打开 控制台中的 TranscriptAPI — YouTube transcripts (transcriptapi.io),将其添加到工作区。
  2. 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.transcriptapi%2Fyoutube-transcript/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "transcriptapi-youtube-transcripts-transc": {
      "type": "http",
      "url": "https://api.transcriptapi.io/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

工具

5

get_youtube_transcript

Get YouTube transcript

Fetch the transcript (captions/subtitles) of a YouTube video as text. Accepts a watch URL, youtu.be link, Shorts link or bare 11-character video id. Returns the spoken text with timestamps grouped in ~30 s blocks by default; format 'text' is prose without timestamps, 'srt'/'vtt' are subtitle files, 'json' is raw segments with start/duration. Works with creator-uploaded and auto-generated captions. translate_to translates the transcript with AI (extra credits, scales with length) — omit unless asked.

输入参数video必填formatlanguagetranslate_to

search_youtube

Search YouTube

Search YouTube for videos by keyword. Returns video ids, titles, channel names, durations and view counts. Use a returned id with get_youtube_transcript to read it.

输入参数limitquery必填

get_channel_videos

List a channel's videos

List the most recent uploads of a YouTube channel, newest first. Accepts a channel id (UC…), a handle (@name) or a channel URL. Returns ids, titles, durations, view counts and publish dates.

输入参数limitchannel必填

search_channel_videos

Search within a channel

Search for videos inside one YouTube channel by keyword — 'find the video where <channel> talks about <topic>'. Accepts a channel id, @handle or channel URL.

输入参数limitquery必填channel必填

get_playlist_videos

List a playlist's videos

List the videos in a YouTube playlist, in playlist order. Accepts a playlist URL (anything with list=…) or the playlist id. Returns ids and titles for get_youtube_transcript.

输入参数limitplaylist必填

版本历史

1
  1. v0.1.1最新Oct 17, 2026

评分

已满足适用检查项的 65%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分

    请在注册中心条目中发布图标。

  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。