Youtube MCP
YouTube MCP Connector for Claude.ai
Claude.ai가 HTTPS를 통해 읽기 전용 YouTube 도구를 사용할 수 있게 해주는 프로덕션 원격 MCP 서버:
search_videosget_trending_videosget_channel_videosget_video_detailsget_engagement_statsget_transcriptsearch_transcript
이 서비스는 검색, 메타데이터, 트렌딩 및 채널 업로드에 공식 YouTube Data API v3를 사용합니다. 트랜스크립트 가져오기는 최선 노력(best-effort) 방식입니다. 먼저 공개 InnerTube 캡션 트랙을 시도한 다음 YouTube 시청 페이지 캡션 검색을 시도합니다. 이 서비스는 CAPTCHA, 차단 또는 속도 제한을 우회하지 않습니다.
로컬 설정
npm install
cp .env.example .env최소한 다음을 설정하세요:
YOUTUBE_API_KEY=your_google_api_key
AUTH_MODE=none로컬에서 실행:
npm run dev헬스 체크:
curl http://localhost:3000/health
curl http://localhost:3000/ready빌드 및 테스트:
npm test
npm run buildRelated MCP server: youtube-research
프로덕션 환경
최소 Railway 테스트 변수:
YOUTUBE_API_KEY=...
AUTH_MODE=noneRedis가 권장되지만, 앱은 Redis 없이도 시작할 수 있으며 프로세스 내 no-op 캐시를 사용합니다.
전체 프로덕션 변수:
NODE_ENV=production
YOUTUBE_API_KEY=...
AUTH_MODE=oauth
AUTH_ISSUER=https://YOUR_AUTH0_DOMAIN/
AUTH_AUDIENCE=https://youtube-claude-mcp
AUTH_JWKS_URL=https://YOUR_AUTH0_DOMAIN/.well-known/jwks.json
AUTH_REQUIRED_SCOPE=youtube:read
REDIS_URL=...기본 캐시 TTL:
TRANSCRIPT_CACHE_TTL_SECONDS=604800
VIDEO_DETAILS_CACHE_TTL_SECONDS=900
TRENDING_CACHE_TTL_SECONDS=600
CHANNEL_VIDEOS_CACHE_TTL_SECONDS=600Auth0 설정
Auth0 API를 생성하거나 재사용합니다.
API 식별자를
AUTH_AUDIENCE와 동일한 값으로 설정합니다.youtube:read스코프를 추가합니다.Auth0 발급자 URL을
AUTH_ISSUER로 사용합니다.테넌트 JWKS 엔드포인트를
AUTH_JWKS_URL로 사용합니다.적절한 Auth0 클라이언트 정보로 Claude.ai 사용자 지정 커넥터 OAuth 고급 설정을 구성합니다.
/mcp 엔드포인트는 AUTH_MODE=oauth일 때 유효한 Authorization: Bearer <token>이 필요합니다.
Railway 배포
저장소를 GitHub에 푸시합니다.
GitHub 저장소에서 Railway 프로젝트를 생성합니다.
Railway는
railway.json을 통해 커밋된 Dockerfile을 사용해야 합니다.서비스 변수를 추가합니다:
YOUTUBE_API_KEY=...
AUTH_MODE=none배포하고
/health를 엽니다.공유 캐싱을 원한다면 나중에 Railway Redis를 추가한 다음
REDIS_URL을 설정합니다.AUTH_MODE=oauth및 Auth0 변수를 설정하여 Auth0로 전환합니다.
Render 배포
Render Redis 인스턴스를 생성합니다.
이 저장소에서 Render Web Service를 생성합니다.
Docker 배포를 선택합니다.
프로덕션 환경 변수를 추가합니다.
배포합니다.
확인합니다:
curl https://YOUR_RENDER_URL/health
curl https://YOUR_RENDER_URL/ready
curl -i https://YOUR_RENDER_URL/mcp인증되지 않은 /mcp는 401을 반환해야 합니다.
Claude.ai 커넥터
Claude.ai 설정을 엽니다.
Customize로 이동한 다음 Connectors를 선택합니다.
사용자 지정 커넥터를 추가합니다.
다음을 사용합니다:
https://YOUR_RENDER_URL/mcp프로덕션 인증이 활성화된 경우 OAuth 고급 설정을 구성합니다.
채팅에서 커넥터를 활성화합니다.
데모 프롬프트:
YouTube에서 최근 MCP 서버 튜토리얼 5개를 검색합니다.
지금 파키스탄에서 가장 인기 있는 동영상은 무엇인가요?
@GoogleDevelopers의 최신 동영상을 보여줍니다.
이 YouTube URL의 조회수, 좋아요 수 및 길이를 가져옵니다.
이 동영상의 참여율을 계산합니다.
트랜스크립트를 가져와 요약합니다.
트랜스크립트에서 인증을 언급하는 부분은 어디인가요?
운영 참고 사항
가능하면 Google Cloud에서 YouTube API 키를 제한하고 교체합니다.
API 키, bearer 토큰 또는 전체 인증 헤더를 로그에 기록하지 마세요.
검색 호출은 할당량을 많이 소모합니다. 가능하면 채널 업로드와 캐시된 메타데이터를 우선적으로 사용하세요.
Redis 장애는 캐시 동작을 저하시키지만 일반 도구 호출을 실패시키지는 않습니다.
캡션이 비활성화되거나, 제공되지 않거나, 지역 제한이 있거나, YouTube에 의해 차단된 경우 트랜스크립트 가져오기가 실패할 수 있습니다.
CAPTCHA 또는 봇 차단 응답은 오류로 표시됩니다. 이 서비스는 우회를 시도하지 않습니다.
문제 해결
YOUTUBE_API_KEY is required오류로 시작이 실패하는 경우: 서버 측 API 키를 설정하세요.프로덕션에서
REDIS_URL is required오류로 시작이 실패하는 경우: Render Redis를 연결하고 해당 URL을 설정하세요./mcp가401을 반환하는 경우: 토큰이 없거나, 만료되었거나, 형식이 잘못되었거나, 잘못된 발급자가 서명한 것입니다./mcp가403을 반환하는 경우: 토큰은 유효하지만youtube:read스코프가 없습니다.트랜스크립트 도구가 사용 불가를 반환하는 경우: 동영상에 공개 캡션이 없을 수 있습니다.
YouTube 할당량 초과: 할당량 재설정을 기다리거나, 할당량 증가를 요청하거나, 검색 사용량을 줄이세요.
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
- AlicenseNot gradedqualityDmaintenanceEnables Claude to access and manage YouTube channel data through the YouTube Data API v3 and YouTube Analytics API. Provides tools for reading analytics, fetching video metadata, searching uploads, and updating video SEO directly from Claude.91MIT
- AlicenseAqualityDmaintenanceEnables YouTube integration with Claude Code, including video search, metadata retrieval, transcript fetching, channel exploration, and trending videos.81MIT
- FlicenseNot gradedqualityDmaintenanceEnables Claude to interact with YouTube Data API for searching videos, channels, and playlists, and retrieving details and playlists.38
- FlicenseNot gradedqualityCmaintenanceEnables bringing YouTube to Claude Code with transcripts, search, metadata, channel info, playlists, comments, trending videos, engagement analytics, chapter extraction, SponsorBlock integration, and most-replayed heatmaps.38
Related MCP Connectors
YouTube transcripts, search, channels, playlists and bulk transcript jobs for AI agents. 14 tools.
Provide token-optimized, structured YouTube data to enhance your LLM applications. Access efficien…
YouTube transcripts, subtitles, and video metadata as structured JSON via an Apify Actor.
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/MSKKK007/youtube-claude-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server