YouTube MCP Server
YouTube MCP Server
A Model Context Protocol (MCP) server implementation for YouTube, enabling AI language models to interact with YouTube content through a standardized interface.
Features
Video Information
- Get video details (title, description, duration, etc.)
- List channel videos
- Get video statistics (views, likes, comments)
- Search videos across YouTube
Transcript Management
- Retrieve video transcripts
- Support for multiple languages
- Get timestamped captions
- Search within transcripts
Channel Management
- Get channel details
- List channel playlists
- Get channel statistics
- Search within channel content
Playlist Management
- List playlist items
- Get playlist details
- Search within playlists
- Get playlist video transcripts
Installation
Configuration
Set the following environment variables:
YOUTUBE_API_KEY
: Your YouTube Data API keyYOUTUBE_TRANSCRIPT_LANG
: Default language for transcripts (optional, defaults to 'en')
Using with MCP Client
Add this to your MCP client configuration (e.g. Claude Desktop):
YouTube API Setup
- Go to Google Cloud Console
- Create a new project or select an existing one
- Enable the YouTube Data API v3
- Create API credentials (API key)
- Copy the API key for configuration
Examples
Managing Videos
Managing Channels
Managing Playlists
Development
Contributing
See CONTRIBUTING.md for information about contributing to this repository.
License
This project is licensed under the MIT License - see the LICENSE file for details.# YouTube MCP Server
A YouTube API integration using the Model Context Protocol.
Setup
- Clone the repository
- Install dependencies:Copynpm install
- Copy
.env.example
to.env
:Copycp .env.example .env - Edit
.env
and add your YouTube API key - Start the server:Copynpm start
Environment Variables
YOUTUBE_API_KEY
: Your YouTube Data API v3 key (get it from Google Cloud Console)
Development
- To run in development mode with auto-reload:Copynpm run dev
- To build:Copynpm run build
Security Note
Always keep your API keys secure and never commit them to version control.
This server cannot be installed
This server allows AI language models to interact with YouTube content through a standardized interface, providing features such as video and channel information retrieval, transcript management, and playlist operations.