YouTube MCP
This server gives Claude/MCP clients access to YouTube transcripts, search, video/channel/playlist/comment data, and trending videos.
Get transcripts for any public video with no API key, including pagination, timestamps, time-range extraction, translation, and configurable page size.
List available caption tracks for a video.
Search YouTube for videos, channels, or playlists with filters like region, channel, date, and sort order.
Fetch details and stats for up to 50 videos at once.
Get channel info and stats by ID or @handle, and list a channel's latest uploads with performance stats.
Read top-level comments on a video.
Get the videos in a playlist, in order.
See trending videos by region and YouTube category.
All video/channel/playlist tools accept IDs or full YouTube URLs.
Provides tools for interacting with YouTube, including transcripts, search, video and channel stats, comments, playlists, and trending videos.
Click on "Deploy 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 MCP Summarise this video: https://youtu.be/dQw4w9WgXcQ"
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.
Install (Claude Desktop)
Download
YouTube.mcpbfrom the latest release.Double-click it (or drag it into Claude Desktop) and click Install.
Optionally paste a YouTube API key in the settings form. Skip it if you only need transcripts.
That's it. No Node, Python or terminal needed: Claude Desktop runs the extension on its built-in runtime.
Try asking Claude:
"Summarise this video: https://youtu.be/..."
"Pull the transcript with timestamps and write chapter markers for the description."
"What are people saying in the comments on this video?"
"Show me @somechannel's last 20 uploads and which ones overperformed."
"What's trending in Australia in Science & Tech right now?"
Related MCP server: YouTube MCP Server
Tools
Tool | What it does | Needs API key | Quota cost |
| Transcript of any public video, paginated for long videos. Options: timestamps, time range ( | No | None |
| Caption tracks available for a video | No | None |
| Search videos, channels or playlists | Yes | 100 |
| Details and stats for up to 50 videos | Yes | 1 |
| Channel info and stats by ID or | Yes | 1 |
| A channel's latest uploads with stats | Yes | ~2 to 3 |
| Top-level comments on a video | Yes | 1 |
| Videos in a playlist, in order | Yes | 1 per 50 |
| Most popular videos by region and category | Yes | 1 |
All tools accept video IDs or any YouTube URL (watch, youtu.be, shorts, live, embed).
Transcript track selection: manual captions are preferred over auto-generated ones, and regional variants count (asking for en will pick a manual en-CA track over an auto-generated en one).
Getting a YouTube API key (optional)
Go to Google Cloud Console and create or pick a project.
APIs & Services > Library, search for YouTube Data API v3, click Enable.
APIs & Services > Credentials > Create credentials > API key.
Recommended: restrict the key to YouTube Data API v3.
The free quota is 10,000 units per day. search costs 100 units, so Claude is told to prefer list_channel_videos when it already knows the channel.
In Claude Desktop you can add or change the key any time under Settings > Extensions > YouTube.
Other MCP clients
The server is a standard stdio MCP server, so it works with Claude Code, Cursor, VS Code, Windsurf and others. Clone the repo and build it:
git clone https://github.com/Promethic-Labs/youtube-mcp.git
cd youtube-mcp
npm install
npm run buildClaude Code
claude mcp add youtube -e YOUTUBE_API_KEY=your_key -- node /absolute/path/to/youtube-mcp/dist/server/index.mjsJSON config (Cursor, Windsurf and most other clients)
{
"mcpServers": {
"youtube": {
"command": "node",
"args": ["/absolute/path/to/youtube-mcp/dist/server/index.mjs"],
"env": { "YOUTUBE_API_KEY": "your_key" }
}
}
}Requires Node 18 or newer. Leave out YOUTUBE_API_KEY if you only want transcripts.
How transcripts work, and their limits
The official YouTube Data API only lets you download captions for videos you own, via OAuth. To support any public video, this server reads the same caption tracks the YouTube web player uses. That means:
Run it locally. YouTube blocks these requests from most cloud and datacenter IPs, so hosting this on a server will usually fail. On a home or office connection it works normally.
It can break. YouTube can change its internal endpoints without notice. If transcripts stop working, check for a new release or open an issue.
Heavy use can get rate limited. If you see a captcha error, wait a while before trying again.
Long videos are paginated. Transcripts come back in pages of about 8,000 words (roughly 11k tokens), well under the tool response limits of Claude Desktop and Claude Code. If there's more, the result includes a
next_cursorand Claude fetches the next page. Usepage_wordsto change the page size, orstartandendto grab a specific section.
Everything except transcripts goes through the official YouTube Data API v3.
Privacy Policy
The extension runs entirely on your computer. It sends requests only to YouTube (www.youtube.com) and the Google YouTube Data API (www.googleapis.com), directly from your machine. It has no analytics or telemetry, stores nothing, and sends nothing to Promethic Labs or any other third party. Your API key is stored by Claude Desktop as a sensitive setting and is never logged.
Full policy, covering data collection, use, storage, sharing, retention and contact: PRIVACY.md
Development
npm install
npm start # run the server from source over stdio
npm run build # bundle into dist/
npm run pack # build and create youtube-mcp.mcpb
npm run validate # validate manifest.json against the MCPB specProject layout:
src/index.js server source (all tools)
manifest.json MCPB manifest (version is synced from package.json on build)
scripts/build.mjs bundles the server with esbuild and assembles dist/
.github/workflows/ CI on every push, release build on version tagsThe server is bundled into a single file, so the .mcpb has no node_modules and stays around 235 KB.
Releasing
Bump
versioninpackage.jsonand add a note toCHANGELOG.md.Commit, then tag and push:
git tag v1.0.2
git push origin main --tagsGitHub Actions builds YouTube.mcpb and attaches it to a new release.
Contributing
Issues and pull requests are welcome. For anything larger than a bug fix, please open an issue first so we can agree on the approach. Please run npm run validate and npm run pack before submitting.
Disclaimer
Not affiliated with, endorsed by, or sponsored by YouTube or Google. YouTube is a trademark of Google LLC. You are responsible for using this tool in line with the YouTube Terms of Service and the YouTube API Services Terms.
About
Built and maintained by Promethic Labs, an AI research lab in Sydney. More of our tools and research at promethic.xyz.
License
Available Tools
9 toolsget_channelGet channel detailsARead-onlyIdempotent
Channel info and stats by channel ID (UC...) or @handle. 1 quota unit.
Inputs: channel (required).
get_commentsGet video commentsARead-onlyIdempotent
Top-level comments on a video (ID or URL). 1 quota unit.
Inputs: video (required), order, max_results.
get_playlistGet playlist videosBRead-onlyIdempotent
Videos in a playlist, in order. 1 quota unit per 50.
Inputs: playlist_id (required), max_results.
get_transcriptGet video transcriptARead-onlyIdempotent
Get a video's transcript (ID or URL). No API key or quota needed. Long transcripts are split into pages of about page_words words; when the result includes next_cursor, more of the transcript remains and can be fetched by calling again with the same arguments plus cursor. timestamps=false gives clean text for summarising; true gives [m:ss] chunks for citing moments or making chapters. start/end (seconds) limit to a section of the video.
Inputs: video (required), end, start, cursor, +5 more.
get_videosGet video detailsARead-onlyIdempotent
Full details and stats for up to 50 videos (IDs or URLs). 1 quota unit.
Inputs: videos (required).
list_channel_videosList channel videosARead-onlyIdempotent
Latest uploads for a channel (ID or @handle), newest first, with stats. ~2-3 quota units.
Inputs: channel (required), with_stats, max_results.
list_transcriptsList transcript tracksARead-onlyIdempotent
List caption tracks available for a video (ID or URL). No API key or quota needed.
Inputs: video (required).
searchSearch YouTubeARead-onlyIdempotent
Search YouTube for videos, channels or playlists by keyword, with optional filters for date, region, channel and sort order. Uses 100 of the 10,000 daily YouTube API quota units per call (other tools use about 1).
Inputs: query (required), type, order, channel_id, +3 more.
trendingGet trending videosARead-onlyIdempotent
Most popular videos right now in a region. Optional category_id (28 Science & Tech, 20 Gaming, 22 People & Blogs, 24 Entertainment). 1 quota unit.
Inputs: category_id, max_results, region_code.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a clearly distinct resource or action: videos, search, channels, channel uploads, comments, playlists, trending, and transcripts. There is no meaningful overlap that would confuse an agent.
Most tools follow a predictable get_/list_ convention, and the list_ versus get_ distinction is sensible. Search and trending are standalone verbs rather than verb_noun names, but they are still clear and not jarring.
Nine tools is a well-scoped size for a YouTube MCP server. Each tool covers a major YouTube data access need without unnecessary bloat.
The surface covers the core read-only YouTube domain thoroughly: search, video details, channels, channel uploads, comments, playlists, trending content, and transcripts. There are no obvious dead ends for common discovery and analysis workflows.
Maintenance
Related MCP Connectors
YouTube for AI agents: transcripts, comments, video stats, channel monitor, Shorts captions.
Search YouTube videos, read transcripts and get public video information in your AI assistant.
YouTube transcripts, search, channel/playlist listings and upload tracking for AI agents.
Fetch YouTube transcripts, monitor channels and track keyword matches from your AI assistant.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables YouTube integration with Claude Code, including video search, metadata retrieval, transcript fetching, channel exploration, and trending videos.81MIT
- FlicenseNot gradedqualityDmaintenanceEnables bringing YouTube into Claude Code for video transcripts, search, metadata, channel info, playlists, comments, trending videos, engagement analytics, chapters, SponsorBlock clean transcripts, and most-replayed heatmaps.-
- FlicenseAqualityDmaintenanceEnables Claude Code to access YouTube features such as video transcripts, search, metadata, channel info, playlists, comments, trending videos, engagement analytics, chapters, SponsorBlock, and most-replayed heatmaps.151-
- FlicenseAqualityDmaintenanceEnables Claude Code to retrieve YouTube transcripts, search videos and channels, fetch metadata, playlists, comments, trending videos, engagement analytics, chapters, SponsorBlock-cleaned transcripts, and most-replayed heatmaps.15-