serpapi-youtube-mcp-server

serpapi-youtube-mcp-server

1

The YouTube Data MCP Server is designed to extract and manage YouTube video transcripts and comments, primarily for analysis and summarization purposes. It requires Node.js and a SerpAPI key, leveraging SerpAPI to provide video data without using YouTube's official API.

YouTube Data MCP Server

A Model Context Protocol (MCP) server designed to extract YouTube video transcripts and comments. This server offers tools for analyzing and summarizing YouTube video content.

Features

  • Extract subtitles/transcripts from YouTube videos.
  • Retrieve basic information about a YouTube video.
  • Fetch comments for YouTube videos using SerpAPI.
  • Get replies to specific YouTube comments.

Requirements

  • Node.js 16+
  • TypeScript
  • SerpAPI API key for comments functionality

Installation (for Developer)

  1. Clone the repository.
  2. Install dependencies with npm install.

Configuration

Create a .env file with your SerpAPI key.

Build and Run

Build the project with npm run build and run with npm start. The server listens for commands via stdin/stdout.

API Tools

  • searchYoutube: Search for videos, channels, and playlists.
  • getVideoInfo: Retrieve basic video information.
  • getTranscript: Extract video transcripts.
  • getReplies: Retrieve comments using SerpAPI.
  • getCommentReplies: Get replies to specific comments.