YouTube Data MCP Server

YouTube Data MCP Server

serpapi-youtube-mcp-server•bydiasm3

An MCP server for extracting YouTube video transcripts, comments, and search results, supporting Stdio and StreamableHTTP transports.

License: MIT•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Extracts subtitles or transcripts from a YouTube video, with an optional language code and timestamps per segment.
  • •Retrieves video metadata such as title, views, publish date, channel, and comment count using SerpAPI.
  • •Fetches video comments with pagination and sorting, and gets replies to specific comments.
  • •Searches YouTube for videos, channels, and playlists with optional country, language, filter, and pagination parameters.

BEST FOR

  • •Pulling video transcripts with timing information for analysis or summarization.
  • •Collecting and analyzing YouTube comments and their replies.
  • •Searching YouTube content by query across videos, channels, and playlists.

ABOUT SERPAPI-YOUTUBE-MCP-SERVER

YouTube Data MCP Server is cataloged as an MCP server attributed to diasm3. An MCP server for extracting YouTube video transcripts, comments, and search results, supporting Stdio and StreamableHTTP transports. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for YouTube Data MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which transports does the server support?

It supports Stdio, which is the default, and StreamableHTTP for web integration.

What is required to run the server?

Node.js 18+ and a SerpAPI key for search, comments, and video info.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 023dd1c461b4 · 采集于 2026-11-13 12:20:28 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

YouTube Data MCP Server

A Model Context Protocol (MCP) server for extracting YouTube video transcripts, comments, and search results. Supports both Stdio and StreamableHTTP transports.

Features

  • getTranscript - Extract subtitles/transcripts with optional timestamps
  • getVideoInfo - Get video metadata (title, views, comments count)
  • getComments - Fetch comments with pagination and sorting
  • getCommentReplies - Get replies to specific comments
  • searchYoutube - Search videos, channels, and playlists

What's New in v2.0

  • Dual Transport: Stdio (default) + StreamableHTTP for web integration
  • Reliable Transcripts: Replaced youtube-transcript with youtube-caption-extractor (bot detection bypass, serverless support)
  • Timestamp Support: Optional start time and duration for each transcript segment
  • Modular Architecture: Clean separation of concerns (config, types, services, tools)
  • MCP SDK v1.25.2: Latest SDK with improved stability

Requirements

  • Node.js 18+
  • SerpAPI key (for search, comments, video info)

Installation

git clone https://github.com/diasm3/serpapi-youtube-mcp-server.git
cd serpapi-youtube-mcp-server
npm install

Configuration

Create a .env file:

SERPAPI_KEY=your_serpapi_key_here
PORT=3000  # optional, for HTTP mode

Get your SerpAPI key at serpapi.com.

Running the Server

# Build
npm run build

# Stdio mode (default) - for Claude Desktop, Cursor, etc.
npm start

# HTTP mode - for web applications
npm start -- --http
# or
MCP_TRANSPORT=http npm start

HTTP Endpoints

When running in HTTP mode:

  • GET /health - Health check
  • POST /mcp - MCP request handler

MCP Client Configuration

Claude Desktop / Cursor

{
  "mcpServers": {
    "youtube-data": {
      "command": "node",
      "args": ["/path/to/serpapi-youtube-mcp-server/build/index.js"],
      "env": {
        "SERPAPI_KEY": "your_serpapi_key_here"
      }
    }
  }
}

Using npx

{
  "mcpServers": {
    "youtube-data": {
      "command": "npx",
      "args": ["-y", "youtube-data-mcp"],
      "env": {
        "SERPAPI_KEY": "your_serpapi_key_here"
      }
    }
  }
}

API Tools

getTranscript

Extract transcript/subtitles from a YouTube video.

ParameterTypeRequiredDescription
urlstringYesYouTube URL or video ID
langstringNoLanguage code (default: 'en')
includeTimestampsbooleanNoInclude start/duration per segment
Get the Korean transcript for https://youtube.com/watch?v=xxxxx with timestamps

getVideoInfo

Get video metadata using SerpAPI.

ParameterTypeRequiredDescription
urlstringYesYouTube URL or video ID

Returns: title, views, publish date, channel, comment count, pagination tokens

getComments

Fetch video comments with pagination.

ParameterTypeRequiredDescription
urlstringConditionalRequired for first page
limitnumberNoMax comments (default: 100)
sortstringNo'relevance' or 'time'
pageTokenstringNoFor pagination

getCommentReplies

Get replies to a specific comment.

ParameterTypeRequiredDescription
pageTokenstringYesrepliesToken from comment

searchYoutube

Search YouTube for videos, channels, playlists.

ParameterTypeRequiredDescription
querystringYesSearch query
limitnumberNoMax results (default: 10)
glstringNoCountry code (us, kr, jp)
hlstringNoLanguage code (en, ko, ja)
spstringNoFilter parameter
pageTokenstringNoFor pagination

Project Structure

src/
├── index.ts          # Server entry (Stdio + HTTP)
├── config/           # Environment configuration
├── types/            # Zod schemas + TypeScript types
├── services/
│   ├── serpapi.ts    # SerpAPI integration
│   └── youtube.ts    # Transcript extraction
├── tools/            # MCP tool definitions
└── utils/            # Helper functions

Troubleshooting

Transcript not available

  • Some videos don't have captions enabled
  • Try different language codes (en, ko, ja, etc.)
  • Auto-generated captions may not be available for all videos

SerpAPI errors

  • Verify your API key is valid
  • Check your SerpAPI quota/limits
  • Ensure the video is publicly accessible

HTTP mode not starting

  • Check if PORT is already in use
  • Verify environment variables are set

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for YouTube Data MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/serpapi-youtube-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research