Use YouTube MCP Server tools for Video, Channel, and Playlist management
mainThe server provides tools to interact with YouTube content. Below are examples of how these tools are used conceptually:
Video Operations
getVideo: Retrieve details like title, description, and duration.getTranscript: Retrieve timestamped captions for a video.searchVideos: Search for videos using a query.
Channel Operations
getChannel: Get channel details and statistics.listVideos: List videos belonging to a specific channel.
Playlist Operations
getPlaylistItems: List items within a playlist.getPlaylist: Get specific playlist details.
// Get video details
const video = await youtube.videos.getVideo({
videoId: "video-id"
});
// Get video transcript
const transcript = await youtube.transcripts.getTranscript({
videoId: "video-id",
language: "en"
});
// Search videos
const searchResults = await youtube.videos.searchVideos({
query: "search term",
maxResults: 10
});
// Get channel details
const channel = await youtube.channels.getChannel({
channelId: "channel-id"
});
// List channel videos
const videos = await youtube.channels.listVideos({
channelId: "channel-id",
maxResults: 50
});
// Get playlist items
const playlistItems = await youtube.playlists.getPlaylistItems({
playlistId: "playlist-id",
maxResults: 50
});
// Get playlist details
const playlist = await youtube.playlists.getPlaylist({
playlistId: "playlist-id"
});