YouTube Transcript MCP Server

YouTube Transcript MCP Server

Enables extraction and processing of YouTube video transcripts from individual videos, channels, and playlists. Supports transcript search, batch processing, multiple output formats (JSON, text, SRT, VTT), and bulk operations across multiple videos.

Category
访问服务器

README

YouTube Transcript MCP Server

An MCP (Model Context Protocol) server for extracting and processing YouTube video transcripts.

Features

  • Extract transcripts from YouTube videos
  • Channel processing - Get all videos from a YouTube channel
  • Playlist processing - Get all videos from a YouTube playlist
  • Bulk transcripts - Extract transcripts from all channel or playlist videos
  • Search within transcripts for specific content
  • Batch processing of multiple videos
  • Multiple output formats (JSON, text, SRT, VTT)
  • Context-aware search with configurable windows

Installation

Via NPX (Recommended)

npx @emit-ia/youtube-transcript-mcp

Local Development

git clone https://github.com/emit-ia/youtube-transcript-mcp.git
cd youtube-transcript-mcp
npm install
npm run build

Usage

As MCP Server

Option 1: Via NPX

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "youtube-transcript": {
      "command": "npx",
      "args": ["@emit-ia/youtube-transcript-mcp"]
    }
  }
}

Option 2: Local Installation

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "youtube-transcript": {
      "command": "node",
      "args": ["/path/to/youtube-transcript-mcp/build/index.js"]
    }
  }
}

Available Tools

youtube_get_transcript

Extract transcript from a YouTube video.

Parameters:

  • url (required): YouTube video URL
  • language (optional): Language code (default: "en")
  • format (optional): Output format - "json", "text", "srt", "vtt" (default: "json")

youtube_search_transcript

Search for specific text within a transcript.

Parameters:

  • url (required): YouTube video URL
  • query (required): Text to search for
  • contextWindow (optional): Seconds of context (default: 30)
  • caseSensitive (optional): Case sensitive search (default: false)
  • language (optional): Language code (default: "en")

youtube_batch_transcripts

Process multiple videos simultaneously.

Parameters:

  • urls (required): Array of YouTube video URLs
  • language (optional): Language code (default: "en")
  • maxConcurrent (optional): Max concurrent requests (default: 3)

youtube_transcript_summary

Get formatted summary of transcript content.

Parameters:

  • url (required): YouTube video URL
  • summaryType (optional): "brief", "detailed", "topics", "timestamps" (default: "brief")
  • language (optional): Language code (default: "en")

youtube_get_channel_videos

Get detailed video information from a YouTube channel.

Parameters:

  • channelUrl (required): YouTube channel URL (supports @username, /c/, /channel/, /user/ formats)
  • maxVideos (optional): Maximum number of videos to retrieve (default: 50, max: 200)

youtube_get_channel_video_urls

Get just the video URLs from a YouTube channel.

Parameters:

  • channelUrl (required): YouTube channel URL
  • maxVideos (optional): Maximum number of video URLs to retrieve (default: 50, max: 200)

youtube_get_channel_transcripts

Extract transcripts from multiple videos in a YouTube channel.

Parameters:

  • channelUrl (required): YouTube channel URL
  • maxVideos (optional): Maximum number of videos to process (default: 10, max: 50)
  • maxConcurrent (optional): Max concurrent transcript requests (default: 3, max: 10)

youtube_get_playlist_info

Get information about a YouTube playlist.

Parameters:

  • playlistUrl (required): YouTube playlist URL (supports playlist?list= and watch?v=...&list= formats)

youtube_get_playlist_videos

Get detailed video information from a YouTube playlist.

Parameters:

  • playlistUrl (required): YouTube playlist URL
  • maxVideos (optional): Maximum number of videos to retrieve (default: 50, max: 200)

youtube_get_playlist_video_urls

Get just the video URLs from a YouTube playlist.

Parameters:

  • playlistUrl (required): YouTube playlist URL
  • maxVideos (optional): Maximum number of video URLs to retrieve (default: 50, max: 200)

youtube_get_playlist_transcripts

Extract transcripts from multiple videos in a YouTube playlist.

Parameters:

  • playlistUrl (required): YouTube playlist URL
  • maxVideos (optional): Maximum number of videos to process (default: 50, max: 200)
  • maxConcurrent (optional): Max concurrent transcript requests (default: 3, max: 10)

Example Usage

// Get basic transcript
const transcript = await youtube_get_transcript({
  url: "https://youtube.com/watch?v=dQw4w9WgXcQ",
  format: "json"
});

// Search within transcript
const searchResults = await youtube_search_transcript({
  url: "https://youtube.com/watch?v=dQw4w9WgXcQ",
  query: "important topic",
  contextWindow: 30
});

// Get all videos from a channel
const channelVideos = await youtube_get_channel_videos({
  channelUrl: "https://youtube.com/@channelname",
  maxVideos: 25
});

// Get just the video URLs
const videoUrls = await youtube_get_channel_video_urls({
  channelUrl: "https://youtube.com/c/ChannelName",
  maxVideos: 50
});

// Get transcripts from channel videos
const channelTranscripts = await youtube_get_channel_transcripts({
  channelUrl: "https://youtube.com/@channelname",
  maxVideos: 10,
  maxConcurrent: 3
});

// Get playlist information
const playlistInfo = await youtube_get_playlist_info({
  playlistUrl: "https://youtube.com/playlist?list=PLrAXtmRdnEQy6nuLMHjMZOz59Mgq_SUoL"
});

// Get all videos from a playlist
const playlistVideos = await youtube_get_playlist_videos({
  playlistUrl: "https://youtube.com/playlist?list=PLrAXtmRdnEQy6nuLMHjMZOz59Mgq_SUoL",
  maxVideos: 50
});

// Get transcripts from playlist videos
const playlistTranscripts = await youtube_get_playlist_transcripts({
  playlistUrl: "https://youtube.com/playlist?list=PLrAXtmRdnEQy6nuLMHjMZOz59Mgq_SUoL",
  maxVideos: 25,
  maxConcurrent: 3
});

Requirements

  • Node.js 18+
  • No API keys required (uses public transcript data)

Limitations

  • Only works with videos that have public transcripts
  • Rate limiting may apply for high-volume usage
  • Transcript availability depends on YouTube's availability

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选