py-mcp-youtube-toolbox
An MCP server that provides AI assistants with powerful tools to interact with YouTube, including video searching, transcript extraction, comment retrieval, and more.
Overview
py-mcp-youtube-toolbox provides the following YouTube-related functionalities:
- Search YouTube videos with advanced filtering options
- Get detailed information about videos and channels
- Retrieve video comments with sorting options
- Extract video transcripts and captions in multiple languages
- Find related videos for a given video
- Get trending videos by region
- Generate summaries of video content based on transcripts
- Advanced transcript analysis with filtering, searching, and multi-video capabilities
Table of Contents
Prerequisites
- Python: Install Python 3.12 or higher
- YouTube API Key:
- Go to Google Cloud Console
- Create a new project or select an existing one
- Enable the YouTube Data API v3:
- Go to "APIs & Services" > "Library"
- Search for and enable "YouTube Data API v3"
- Create credentials:
- Go to "APIs & Services" > "Credentials"
- Click "Create Credentials" > "API key"
- Note down your API key
Installation
Git Clone
Configuration
- Install UV package manager:
- Create and activate virtual environment:
- Install dependencies:
- Environment variables:
Using Docker
- Build the Docker image:
- Run the container:
Using Local
- Run the server:
- Run the MCP Inspector:
Configure MCP Settings
Add the server configuration to your MCP settings file:
Claude desktop app
- To install automatically via Smithery:
- To install manually
open
~/Library/Application Support/Claude/claude_desktop_config.json
Add this to the mcpServers
object:
Cursor IDE
open ~/.cursor/mcp.json
Add this to the mcpServers
object:
for Docker
Tools Documentation
Video Tools
search_videos
: Search for YouTube videos with advanced filtering options (channel, duration, region, etc.)get_video_details
: Get detailed information about a specific YouTube video (title, channel, views, likes, etc.)get_video_comments
: Retrieve comments from a YouTube video with sorting optionsget_related_videos
: Find videos related to a specific YouTube videoget_trending_videos
: Get trending videos on YouTube by region
Channel Tools
get_channel_details
: Get detailed information about a YouTube channel (name, subscribers, views, etc.)
Transcript Tools
get_video_transcript
: Extract transcripts/captions from YouTube videos in specified languagesget_video_enhanced_transcript
: Advanced transcript extraction with filtering, search, and multi-video capabilities
Prompt Tools
transcript_summary
: Generate summaries of YouTube video content based on transcripts with customizable options
Resource Tools
youtube://available-youtube-tools
: Get a list of all available YouTube toolsyoutube://video/{video_id}
: Get detailed information about a specific videoyoutube://channel/{channel_id}
: Get information about a specific channelyoutube://transcript/{video_id}?language={language}
: Get transcript for a specific video
Development
For local testing, you can use the included client script:
License
MIT License
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
Ein MCP-Server, der KI-Assistenten leistungsstarke Tools zur Interaktion mit YouTube bereitstellt, darunter Videosuche, Transkriptextraktion, Kommentarabruf und mehr.
Related MCP Servers
- -securityAlicense-qualityAn MCP server that allows Claude and other AI assistants to interact with the YouTube API, providing tools to search videos/channels and retrieve detailed information about them.Last updated -51JavaScriptMIT License
- -securityFlicense-qualityAn MCP server that enables LLMs to search YouTube, retrieve video information, and access video transcripts through standardized tools.Last updated -TypeScript
- AsecurityFlicenseAqualityA simple MCP server that allows AI assistants like Cursor or Claude Desktop to search for and play tracks on YouTube Music through natural language commands.Last updated -278TypeScript
- -securityAlicense-qualityAn experimental MCP server that makes YouTube playlist transcripts available for AI assistants, enabling search and conversation about video content.Last updated -1PythonApache 2.0