Youtube MCP
Provides read-only tools for searching YouTube videos, retrieving trending videos, channel uploads, video details, engagement statistics, and video transcripts, including transcript search.
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 YouTube for recent MCP server tutorials"
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 Connector for Claude.ai
Production remote MCP server that lets Claude.ai use read-only YouTube tools over HTTPS:
search_videosget_trending_videosget_channel_videosget_video_detailsget_engagement_statsget_transcriptsearch_transcript
The service uses the official YouTube Data API v3 for search, metadata, trending, and channel uploads. Transcript retrieval is best-effort: it tries public InnerTube caption tracks first, then YouTube watch-page caption discovery. It does not bypass CAPTCHA, blocks, or rate limits.
Local Setup
npm install
cp .env.example .envSet at minimum:
YOUTUBE_API_KEY=your_google_api_key
AUTH_MODE=noneRun locally:
npm run devHealth checks:
curl http://localhost:3000/health
curl http://localhost:3000/readyBuild and test:
npm test
npm run buildRelated MCP server: youtube-research
Production Environment
Minimum Railway test variables:
YOUTUBE_API_KEY=...
AUTH_MODE=noneRedis is recommended, but the app can boot without it and will use an in-process no-op cache.
Full production variables:
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=...Default cache TTLs:
TRANSCRIPT_CACHE_TTL_SECONDS=604800
VIDEO_DETAILS_CACHE_TTL_SECONDS=900
TRENDING_CACHE_TTL_SECONDS=600
CHANNEL_VIDEOS_CACHE_TTL_SECONDS=600Auth0 Setup
Create or reuse an Auth0 API.
Set the API identifier to the same value as
AUTH_AUDIENCE.Add scope
youtube:read.Use the Auth0 issuer URL as
AUTH_ISSUER.Use the tenant JWKS endpoint as
AUTH_JWKS_URL.Configure Claude.ai custom connector OAuth advanced settings with the appropriate Auth0 client details.
The /mcp endpoint requires a valid Authorization: Bearer <token> when AUTH_MODE=oauth.
Railway Deployment
Push the repository to GitHub.
Create a Railway project from the GitHub repository.
Railway should use the checked-in Dockerfile via
railway.json.Add service variables:
YOUTUBE_API_KEY=...
AUTH_MODE=noneDeploy and open
/health.Add Railway Redis later if you want shared caching, then set
REDIS_URL.Switch to Auth0 by setting
AUTH_MODE=oauthand the Auth0 variables.
Render Deployment
Create a Render Redis instance.
Create a Render Web Service from this repository.
Select Docker deployment.
Add the production environment variables.
Deploy.
Verify:
curl https://YOUR_RENDER_URL/health
curl https://YOUR_RENDER_URL/ready
curl -i https://YOUR_RENDER_URL/mcpUnauthenticated /mcp should return 401.
Claude.ai Connector
Open Claude.ai settings.
Go to Customize, then Connectors.
Add a custom connector.
Use:
https://YOUR_RENDER_URL/mcpConfigure OAuth advanced settings if production auth is enabled.
Enable the connector in a chat.
Demo prompts:
Search YouTube for 5 recent MCP server tutorials.
What are the most popular videos in Pakistan right now?
Show the latest videos from @GoogleDevelopers.
Get views, likes and duration for this YouTube URL.
Calculate its engagement rate.
Get the transcript and summarize it.
Where in the transcript do they mention authentication?
Operational Notes
Restrict and rotate the YouTube API key in Google Cloud where practical.
Do not log API keys, bearer tokens, or full authorization headers.
Search calls are quota-expensive; prefer channel uploads and cached metadata where possible.
Redis failures degrade cache behavior but do not fail normal tool calls.
Transcript failures can happen when captions are disabled, unavailable, region-restricted, or blocked by YouTube.
CAPTCHA or bot-block responses are surfaced as errors; the service does not attempt bypasses.
Troubleshooting
Startup fails with
YOUTUBE_API_KEY is required: set the server-side API key.Startup fails in production with
REDIS_URL is required: attach Render Redis and set its URL./mcpreturns401: token is missing, expired, malformed, or signed by the wrong issuer./mcpreturns403: token is valid but lacksyoutube:read.Transcript tool returns unavailable: the video may not have public captions.
YouTube quota exceeded: wait for quota reset, request a quota increase, or reduce search usage.
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