YouTube MCP Integration

YouTube MCP Integration

An MCP server that enables LLMs to search YouTube, retrieve video information, and access video transcripts through standardized tools.

Category
Visit Server

README

YouTube MCP Integration

This project provides a Model Context Protocol (MCP) integration for YouTube, allowing LLMs to search YouTube, get video information, and retrieve transcripts via standardized tools.

Features

  • YouTube Search Tool: Search for videos on YouTube with configurable result limits
  • Video Info Tool: Get detailed information about a YouTube video
  • Transcript Tool: Retrieve and parse the transcript of a YouTube video

Architecture

The implementation follows the Model Context Protocol (MCP) specification, which standardizes how LLMs interact with external tools and resources. The architecture consists of:

  1. MCP Server: Provides YouTube functionality as MCP tools through HTTP/SSE transport
  2. YouTube API Integration: Scrapes YouTube data to provide search, video info, and transcript functionality
  3. MCP Client: Example client showing how to consume the MCP YouTube tools

Getting Started

Prerequisites

  • Node.js 18+
  • npm

Installation

# Clone the repository
git clone https://github.com/your-username/ephor-youtube-mcp.git
cd ephor-youtube-mcp

# Install dependencies
npm install

# Build the project
npm run build

Running the Server

Start the MCP server:

npm run start

The server will start on http://localhost:3000 with the following endpoints:

  • SSE endpoint: /sse
  • Message endpoint: /messages

Using with an MCP Client

The MCP tools can be used with any MCP-compatible client. Here's an example of how to use the tools:

// Initialize client
const client = new Client(
  { name: 'youtube-client', version: '1.0.0' },
  { capabilities: { tools: {} } }
);

// Connect to the server
await client.connect(transport);

// Search YouTube
const searchResults = await client.callTool({
  name: 'youtube_search',
  arguments: {
    query: 'javascript tutorial',
    limit: 3
  }
});

// Get video info
const videoInfo = await client.callTool({
  name: 'youtube_get_video_info',
  arguments: {
    input: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'
  }
});

// Get video transcript
const transcript = await client.callTool({
  name: 'youtube_get_transcript',
  arguments: {
    input: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'
  }
});

Available Tools

youtube_search

Search for YouTube videos.

Arguments:

  • query (string, required): The search query
  • limit (number, optional): Maximum number of results (1-10, default: 5)

Response: A list of video results with details like title, video ID, URL, thumbnail, description, channel info, view count, and publish date.

youtube_get_video_info

Get detailed information about a YouTube video.

Arguments:

  • input (string, required): YouTube video ID or URL

Response: Detailed video information including title, description, view count, publish date, channel details, and thumbnail URL.

youtube_get_transcript

Get the transcript of a YouTube video.

Arguments:

  • input (string, required): YouTube video ID or URL

Response: The video transcript with timestamped entries, along with basic video information.

License

MIT

Acknowledgements

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured