YouTube MCP Server
YouTube MCP 서버
Claude Code에 YouTube를 연결하는 MCP 서버 — 동영상 자막, 검색, 메타데이터, 채널 정보, 재생 목록, 댓글, 인기 동영상, 참여도 분석, 챕터 추출, SponsorBlock 통합, 가장 많이 다시 본 구간 히트맵을 제공합니다. YouTube Data API v3, youtube-transcript, SponsorBlock을 사용합니다.
빠른 시작
1단계: API 키 받기
Google Cloud Console로 이동합니다.
프로젝트를 생성합니다(또는 기존 프로젝트를 선택합니다).
YouTube Data API v3를 활성화합니다:
API 라이브러리로 이동합니다.
**활성화(Enable)**를 클릭합니다.
API 키를 생성합니다:
사용자 인증 정보로 이동합니다.
사용자 인증 정보 만들기(Create Credentials) > **API 키(API key)**를 클릭합니다.
키를 복사합니다(3단계에서 필요합니다).
2단계: 사전 요구 사항 설치
3단계: MCP 서버 설치
3.1 저장소 클론
git clone https://github.com/wynandw87/claude-code-youtube-mcp.git
cd claude-code-youtube-mcp3.2 의존성 설치
macOS / Linux / Windows:
npm install참고: 의존성 설치와 서버 빌드가 한 단계로 자동으로 수행됩니다.
3.3 Claude Code에 등록
설치 범위를 선택하세요:
범위 | 플래그 | 사용할 수 있는 사람 |
사용자(User) (권장) |
| 모든 프로젝트에서 본인 |
프로젝트(Project) |
| 이 저장소를 클론하는 모든 사람 |
로컬(Local) |
| 현재 디렉터리에서만 |
YOUR_API_KEY를 실제 YouTube Data API 키로 바꾸고 dist/index.js의 전체 경로를 사용하세요.
팁: 전체 경로를 확인하려면 클론한 디렉터리에서 다음을 실행하세요:
macOS/Linux:
echo "$(pwd)/dist/index.js"Windows:
echo %cd%\dist\index.js
macOS / Linux:
claude mcp add -s user youtube -e YOUTUBE_API_KEY=YOUR_API_KEY -- node /full/path/to/dist/index.jsWindows (CMD):
claude mcp add -s user youtube -e "YOUTUBE_API_KEY=YOUR_API_KEY" -- node "C:\full\path\to\dist\index.js"Windows (PowerShell):
claude mcp add -s user youtube -e "YOUTUBE_API_KEY=YOUR_API_KEY" '--' node "C:\full\path\to\dist\index.js"대안: npm 헬퍼 사용(API 키가 환경 변수에 설정된 경우)
export YOUTUBE_API_KEY=YOUR_API_KEY
npm run install:claude4단계: Claude Code 다시 시작
변경 사항을 적용하려면 Claude Code를 닫았다가 다시 여세요.
5단계: 설치 확인
claude mcp listyoutube가 Connected 상태로 표시되어야 합니다.
Related MCP server: youtube-mcp
기능
자막 및 캡션
Get Transcript (
get_transcript) - 타임스탬프가 포함된 전체 동영상 자막을 가져오며, 여러 언어를 지원합니다Search Transcript (
search_transcript) - 동영상에서 키워드나 구문이 나타나는 위치를 타임스탬프와 함께 찾습니다Clean Transcript (
get_clean_transcript) - SponsorBlock을 통해 스폰서 멘트, 인트로, 아웃트로, 군더더기가 제거된 자막을 가져옵니다Extract Chapters (
extract_chapters) - 동영상 설명에서 챕터 타임스탬프를 추출합니다
검색 및 발견
Search Videos (
search_videos) - 날짜, 길이, 유형, 정렬 순서 필터를 지원하는 전체 YouTube 검색Search Within Channel (
search_within_channel) - 특정 크리에이터의 동영상을 검색합니다Get Trending Videos (
get_trending_videos) - 지역 및 카테고리별 현재 인기 동영상Get Channel Videos (
get_channel_videos) - 채널의 최근 업로드 동영상을 날짜 또는 조회수 순으로 정렬
동영상 및 채널 정보
Video Metadata (
get_video_metadata) - 제목, 설명, 길이, 조회수, 좋아요, 태그 등Channel Info (
get_channel_info) - 구독자 수, 동영상 수, 설명, 국가Playlist Items (
get_playlist_items) - 재생 목록의 모든 동영상을 위치 및 메타데이터와 함께 가져옵니다
분석 및 참여도
Calculate Engagement (
calculate_engagement) - 공개 통계에서 좋아요율, 댓글률, 참여율을 계산합니다Most Replayed (
get_most_replayed) - 시청자가 가장 많이 다시 보는 구간을 보여주는 히트맵 데이터Video Comments (
get_video_comments) - 좋아요 수와 답글 수가 포함된 주요 댓글
유틸리티
Parse YouTube URL (
parse_youtube_url) - 모든 YouTube URL 형식에서 동영상/채널/재생 목록 ID를 추출합니다
사용 방법
설치가 완료되면 트리거 문구를 사용하여 YouTube 도구를 호출할 수 있습니다:
트리거 | 도구 | 예시 |
| Get Transcript | "이 동영상의 YouTube 자막을 가져와 줘" |
| Search Videos | "React 튜토리얼을 YouTube에서 검색해 줘" |
| Video Metadata | "이 동영상의 YouTube 메타데이터를 가져와 줘" |
| Channel Info | "@ThePrimeagen의 YouTube 채널 정보를 가져와 줘" |
| Playlist Items | "이 YouTube 재생 목록의 동영상을 나열해 줘" |
| Video Comments | "이 동영상의 YouTube 댓글을 가져와 줘" |
| Trending Videos | "미국에서 YouTube 인기 동영상이 뭐야?" |
| Extract Chapters | "이 YouTube 동영상에서 챕터를 추출해 줘" |
| Calculate Engagement | "이 동영상의 YouTube 참여도를 계산해 줘" |
| Most Replayed | "이 YouTube 동영상에서 가장 많이 다시 본 구간을 보여 줘" |
| Clean Transcript | "스폰서 없는 깔끔한 YouTube 자막을 가져와 줘" |
| Search Transcript | "YouTube 자막에서 'authentication'을 검색해 줘" |
또는 자연스럽게 물어보세요:
"이 YouTube 동영상의 자막을 가져와서 요약해 줘"
"이 동영상에서 가장 많이 다시 본 구간은 어디야?"
"이 채널에서 TypeScript에 관한 최근 동영상을 찾아줘"
"이 동영상의 조회수와 좋아요 수는 얼마야?"
"이 동영상의 댓글을 가져와서 반응을 요약해 줘"
"이 튜토리얼의 챕터를 보여 줘"
"스폰서 멘트 없는 깔끔한 자막을 가져와 줘"
"지금 YouTube 게임 분야에서 뭐가 인기야?"
도구 참조
parse_youtube_url
모든 YouTube URL 형식을 파싱하고 식별자를 추출합니다. API 키가 필요 없습니다.
파라미터:
url(string, required) - 모든 YouTube URL 또는 동영상 ID
지원 형식: youtube.com/watch?v=, youtu.be/, /shorts/, /embed/, /playlist?list=, /channel/, /@handle, /c/, /user/, 동영상 ID 단독
get_transcript
YouTube 동영상의 전체 자막/캡션을 가져옵니다. API 키가 필요 없습니다.
파라미터:
url(string, required) - YouTube 동영상 URL 또는 동영상 IDlang(string, optional) - 캡션의 언어 코드(기본값:"en")
search_transcript
동영상 자막 내에서 키워드나 구문을 검색합니다.
파라미터:
url(string, required) - YouTube 동영상 URL 또는 동영상 IDquery(string, required) - 검색할 키워드 또는 구문lang(string, optional) - 캡션의 언어 코드(기본값:"en")
extract_chapters
동영상 설명에서 챕터 타임스탬프를 추출합니다.
파라미터:
url(string, required) - YouTube 동영상 URL 또는 동영상 ID
get_clean_transcript
SponsorBlock을 통해 스폰서 멘트, 인트로, 아웃트로, 군더더기가 제거된 자막을 가져옵니다.
파라미터:
url(string, required) - YouTube 동영상 URL 또는 동영상 IDlang(string, optional) - 캡션의 언어 코드(기본값:"en")
get_most_replayed
시청자가 가장 많이 다시 보는 구간을 보여주는 "most replayed" 히트맵 데이터를 가져옵니다.
파라미터:
url(string, required) - YouTube 동영상 URL 또는 동영상 ID
참고: 히트맵 데이터를 사용하려면 약 50K+ 이상의 조회수가 필요합니다.
search_videos
전체 필터를 지원하는 YouTube 검색을 수행합니다.
파라미터:
query(string, required) - 검색어max_results(number, optional) - 결과 수, 1-50(기본값:10)order(string, optional) -"relevance","date","viewCount","rating"(기본값:"relevance")duration(string, optional) -"short"(4분 미만),"medium"(4-20분),"long"(20분 초과)upload_date(string, optional) -"hour","day","week","month","year"type(string, optional) -"video","channel","playlist"(기본값:"video")
get_video_metadata
YouTube 동영상의 상세 메타데이터를 가져옵니다.
파라미터:
url(string, required) - YouTube 동영상 URL 또는 동영상 ID
반환값: 제목, 설명, 채널, 길이, 조회수/좋아요/댓글 수, 태그, 카테고리, 썸네일, 라이브 상태 등.
get_channel_info
YouTube 채널 정보를 가져옵니다.
파라미터:
url(string, required) - YouTube 채널 URL, @handle 또는 채널 ID
반환값: 제목, 설명, 구독자/동영상/조회 수, 국가, 맞춤 URL, 썸네일.
get_playlist_items
YouTube 재생 목록의 모든 동영상을 가져옵니다.
파라미터:
url(string, required) - YouTube 재생 목록 URL 또는 재생 목록 IDmax_results(number, optional) - 항목 수, 1-50(기본값:25)
get_channel_videos
YouTube 채널의 최근 동영상을 가져옵니다.
파라미터:
url(string, required) - YouTube 채널 URL, @handle 또는 채널 IDmax_results(number, optional) - 동영상 수, 1-50(기본값:25)order(string, optional) -"date","viewCount"(기본값:"date")
get_trending_videos
현재 인기 있는 YouTube 동영상을 가져옵니다.
파라미터:
region_code(string, optional) - ISO 3166-1 alpha-2 국가 코드(기본값:"US")category_id(string, optional) - YouTube 카테고리 ID(예: 음악은"10", 게임은"20", 과학 및 기술은"28")max_results(number, optional) - 결과 수, 1-50(기본값:10)
search_within_channel
특정 YouTube 채널 내에서 동영상을 검색합니다.
파라미터:
url(string, required) - YouTube 채널 URL, @handle 또는 채널 IDquery(string, required) - 검색어max_results(number, optional) - 결과 수, 1-50(기본값:10)
get_video_comments
YouTube 동영상의 최상위 댓글을 가져옵니다.
파라미터:
url(string, required) - YouTube 동영상 URL 또는 동영상 IDmax_results(number, optional) - 댓글 수, 1-100(기본값:20)order(string, optional) -"relevance","time"(기본값:"relevance")
calculate_engagement
YouTube 동영상의 참여도 지표를 계산합니다.
파라미터:
url(string, required) - YouTube 동영상 URL 또는 동영상 ID
반환값: 조회 수, 좋아요 수, 댓글 수, 좋아요율, 댓글률, 전체 참여율.
작동 방식
이 MCP 서버는 stdio 전송 방식을 통해 Claude Code에 연결되며 15개의 도구를 제공합니다:
도구 | 데이터 소스 | API 키 필요? |
| 로컬 파싱 | 아니요 |
| youtube-transcript 라이브러리 | 아니요 |
| youtube-transcript 라이브러리 | 아니요 |
| youtube-transcript + SponsorBlock API | 아니요 |
| YouTube 페이지 (Innertube) | 아니요 |
| YouTube Data API v3 | 예 |
| YouTube Data API v3 | 예 |
| YouTube Data API v3 | 예 |
| YouTube Data API v3 | 예 |
| YouTube Data API v3 | 예 |
| YouTube Data API v3 | 예 |
| YouTube Data API v3 | 예 |
| YouTube Data API v3 | 예 |
| YouTube Data API v3 | 예 |
| YouTube Data API v3 | 예 |
참고: 5개의 도구는 API 키 없이 작동합니다 (트랜스크립트, SponsorBlock, 히트맵, URL 파싱). 나머지 10개는 YouTube Data API v3 키가 필요합니다.
구성
환경 변수
변수 | 필수 | 기본값 | 설명 |
| 예 | — | YouTube Data API v3 키 |
| 아니요 |
| API 타임아웃(ms) |
YouTube API 할당량
YouTube Data API v3에는 일일 할당량 10,000단위가 있습니다. 각 도구는 서로 다른 단위를 사용합니다:
작업 | 호출당 비용 |
| 100단위 |
| 1단위 |
| 1단위 |
| 1단위 |
| 1단위 |
| 1단위 |
팁: 검색 작업이 가장 비쌉니다. 최근 업로드만 필요하다면
search_within_channel(100단위) 대신get_channel_videos(1단위)를 사용하세요.
문제 해결
API 키 수정
잘못된 API 키를 입력한 경우, 제거 후 재설치하세요:
claude mcp remove youtube그런 다음 위의 3.3단계 명령어를 사용하여 재설치하세요(원래 설치했던 것과 동일한 스코프를 사용).
MCP 서버가 표시되지 않음
서버가 설치되어 있는지 확인하세요:
claude mcp list목록에 없으면 3단계에 따라 설치하세요.
서버가 시작되지 않음
Google Cloud Console에서 API 키가 유효한지 확인하세요
YouTube Data API가 활성화되어 있는지 확인하세요:
API 라이브러리로 이동
"사용 설정됨"이라고 표시되어야 합니다
Node.js 버전을 확인하세요 (18+ 필요):
node --version서버가 빌드되었는지 확인하세요 —
dist/index.js가 없으면npm install을 다시 실행하세요
연결 오류
dist/index.js가 존재하는지 확인하세요 — 없으면npm install실행claude mcp add명령어의 경로가 절대 경로인지 확인하세요구성 변경 후 Claude Code를 다시 시작하세요
할당량 초과
"quotaExceeded" 오류가 표시되면:
태평양 시간 자정까지 기다리세요 (할당량은 매일 재설정됨)
다른 API 키를 사용하세요
검색 도구(100단위)보다 저비용 도구(
get_video_metadata1단위)를 우선 사용하세요
트랜스크립트를 사용할 수 없음
일부 동영상은 트랜스크립트가 비활성화되어 있습니다. get_transcript 도구는 명확한 오류 메시지를 반환합니다. 다음을 시도해 보세요:
다른 언어 코드 (예:
lang: "es")수동 자막이 없어도 자동 생성 자막이 제공될 수 있습니다
타임아웃 오류
느린 연결의 경우 YOUTUBE_TIMEOUT 환경 변수를 늘리세요:
claude mcp add -s user youtube -e YOUTUBE_API_KEY=YOUR_KEY -e YOUTUBE_TIMEOUT=60000 -- node /path/to/dist/index.js현재 구성 보기
claude mcp list기여
Pull Request 환영합니다! 간단하고 초보자에게 친숙하게 유지해 주세요.
라이선스
MIT
Claude Code 커뮤니티를 위해 제작됨
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityNot gradedmaintenanceEnables extraction and processing of YouTube video transcripts from individual videos, channels, and playlists. Supports transcript search, batch processing, multiple output formats (JSON, text, SRT, VTT), and bulk operations across multiple videos.1134
- AlicenseAqualityDmaintenanceEnables AI tools to access YouTube content, including transcript extraction, video/channel info, and search.427MIT
- AlicenseAqualityDmaintenanceEnables fetching, searching, and summarizing YouTube video transcripts with multi-language support.4MIT
- AlicenseAqualityAmaintenanceEnables fetching YouTube transcripts, searching videos, and listing channel/playlist videos via the TranscriptFetch API.10555MIT
Related MCP Connectors
Fetch transcripts, subtitles, chapters, metadata and frames from YouTube and 10+ video platforms
Extract YouTube transcripts, search what was said, and read on-screen frames with cited timestamps.
YouTube transcripts, search, channels, playlists and bulk transcript jobs for AI agents. 14 tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Engr-IsrarUllah/ClaudeCode_MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server