youtube-mcp
Provides tools for searching videos, channels, playlists, getting trending content, video details, comments, and more via the YouTube Data API v3.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@youtube-mcpsearch for AI news from the last week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
YouTube MCP Server
Model Context Protocol (MCP) server for YouTube Data API v3. Provides tools for searching videos, channels, playlists, getting trending content, video details, comments, and more.
Features
Video Search - Search YouTube videos with advanced filters (duration, definition, region, date range, etc.)
Channel Search - Find channels by query
Video Details - Get comprehensive video information (statistics, content details, topics, etc.)
Channel Details - Get channel statistics, branding, topics, and more
Trending Videos - Get most popular videos by region and category
Video Categories - Browse available video categories
Channel Videos - Get recent uploads from a specific channel
Playlist Videos - Get videos from any playlist
Playlist Search - Search for playlists
Video Comments - Get comments on videos
Channel by Handle - Look up channels by @username
Related MCP server: yutu
Installation
cd /opt/data/mcp-servers/youtube-mcp
pip install -e .Or with uv:
uv pip install -e /opt/data/mcp-servers/youtube-mcpConfiguration
Requires a YouTube Data API v3 key. Get one from Google Cloud Console.
Set the environment variable:
export YOUTUBE_API_KEY="your_api_key_here"Usage with Hermes Agent
Add to your ~/.hermes/config.yaml:
mcp_servers:
youtube:
command: "uvx"
args: ["youtube-mcp"]
env:
YOUTUBE_API_KEY: "your_api_key_here"
timeout: 120
connect_timeout: 60Then restart Hermes Agent. The tools will be available as mcp_youtube_*.
Available Tools
Tool | Description |
| Search videos with filters |
| Search channels |
| Get detailed video info |
| Get detailed channel info |
| Get trending videos by region |
| Get video categories |
| Get channel's recent videos |
| Get playlist videos |
| Search playlists |
| Get video comments |
| Get channel by @handle |
Example Queries
"Search for videos about AI news from the last week"
"Get trending videos in Brazil (BR)"
"Find channels about programming tutorials"
"Get details for video dQw4w9WgXcQ"
"Get comments on a viral video"
"Find playlists about machine learning"
Development
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytestLicense
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/PPiai/youtube-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server