YouTube MCP Server logo

YouTube MCP Server

by icraft2170

A Model Context Protocol (MCP) server implementation utilizing the YouTube Data API. It allows AI language models to interact with YouTube content through a standardized interface.

View on GitHub

Last updated: N/A

What is YouTube MCP Server?

The YouTube MCP Server is an implementation of the Model Context Protocol that enables AI language models to access and interact with YouTube data. It provides a standardized interface for retrieving video information, transcripts, channel statistics, and trend analysis.

How to use YouTube MCP Server?

To use the server, you can either install it automatically via Smithery or manually by cloning the repository or installing from npm. After installation, configure the environment variables with your YouTube Data API key and desired transcript language. Then, configure your MCP client (e.g., Claude Desktop) to connect to the server. You can then use the available tools to query YouTube data.

Key features of YouTube MCP Server

  • Retrieve detailed video information

  • Retrieve video captions with multi-language support

  • View detailed channel statistics

  • View trending videos by region and category

Use cases of YouTube MCP Server

  • Analyzing video engagement and performance

  • Retrieving transcripts for language learning or content analysis

  • Monitoring channel growth and identifying top-performing videos

  • Discovering trending content in specific categories

FAQ from YouTube MCP Server

How do I get a YouTube Data API key?

You can obtain a YouTube Data API key by accessing the Google Cloud Console, creating a new project or selecting an existing one, enabling the YouTube Data API v3, and creating API credentials.

What is the default caption language?

The default caption language is 'ko' (Korean), but you can change it by setting the YOUTUBE_TRANSCRIPT_LANG environment variable.

What ports does the server expose?

The server exposes HTTP on port 3000 and gRPC on port 3001.

What are the system requirements?

The server requires Node.js 18.0.0 or higher.

How do I keep my API key secure?

Always keep your API key secure and never commit it to version control systems. Manage your API key through environment variables or configuration files and set usage limits for your API key to prevent unauthorized use.