Skip to main content
Glama
n8nfelipe

YouTube MCP Server

by n8nfelipe

YouTube MCP Server

MCP (Model Context Protocol) server to interact with YouTube: search videos, get transcripts, find trending content, and explore AI communities.

Features

  • Search videos by keyword

  • Get trending videos by region and category

  • Fetch video transcripts/subtitles (no API key needed for transcripts)

  • Get detailed video metadata

  • Look up channel info and latest uploads

  • Read video comments

  • Discover and rank AI-focused communities by subscribers

Related MCP server: YouTube MCP Server

Prerequisites

Quick Start

cp .env.example .env
# Edit .env with your YOUTUBE_API_KEY

pip install -r requirements.txt
python server.py

Tools

Tool

Description

Arguments

search_videos

Search videos by keyword

query (string, required), max_results (int, default 10, max 50)

get_trending_videos

Trending in a region

region_code (string, default BR), category_id (string, optional)

get_video_details

Full video metadata

video_id (string, required)

get_video_transcript

Video transcript/subtitles

video_id (string, required), lang (string, default pt)

get_channel_info

Channel profile and stats

channel_id (string, required)

get_channel_videos

Latest videos from channel

channel_id (string, required), max_results (int, default 10)

get_video_comments

Comments sorted by relevance

video_id (string, required), max_results (int, default 20, max 100)

search_ai_communities

Find AI communities, sorted by subscribers

query (string, default 'artificial intelligence'), max_results (int, default 10)

Register with opencode

{
  "mcpServers": {
    "youtube": {
      "command": "python3",
      "args": ["/caminho/para/youtube-mcp/server.py"],
      "env": {
        "YOUTUBE_API_KEY": "sua_chave"
      }
    }
  }
}

How it works

Uses the YouTube Data API v3 for metadata, search, and comments, and youtube-transcript-api for subtitles (no extra auth needed).

Tests

python -m pytest . -v
F
license - not found
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

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/n8nfelipe/youtube-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server