Youtube MCP Server
Unofficial YouTube MCP — wraps the YouTube Data API v3 (platform key, or BYO API key as _apiKey)
Youtube scores 69 (Good), licensed MIT and written in JavaScript. It can be reached as a remote MCP endpoint. It declares 1 tool. Filed under Media. GitHub shows 0 stars. Package registries report about 105 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
69 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
71/100 for listing completeness. Lost points: 1 of 1 tools barely described, short summary.
How quality is graded
Where the 69 comes from
22 + 20 + 3 + 10 + 4 + 10 = 69. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 3 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Remote auth: OAuth sign-in. Your client opens a browser window to sign in with the provider. No key goes in the config file. How remote auth works
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "pipeworx-io-mcp-youtube": { "command": "npx", "args": [ "-y", "@pipeworx/mcp-youtube@0.2.3" ], "env": { "PIPEWORX_API_KEY": "YOUR_PIPEWORX_API_KEY" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
PIPEWORX_API_KEYSecret | Optional | Optional Pipeworx API key. Without it calls are anonymous and capped daily; a free key raises the cap. |
Tools1Tool docs quality grade F
All capabilitieskeyless.
About
@pipeworx/youtube
YouTube videos, channels, comments and transcripts: search, video and channel metadata with view/like counts, comment threads, and the caption text of a video.
Part of Pipeworx — an MCP gateway connecting AI agents to 2100+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
Tools
yt_search(query, type?, …)— videos, channels or playlists matching a term.yt_video_details(video_id)— title, description, duration, view/like/comment counts, tags.yt_channel_details(channel_id | username)— subscriber, video and view counts.yt_channel_videos(channel_id, …)— a channel's recent uploads.yt_video_comments(video_id, …)— top-level comment threads.yt_video_transcript(video_id, lang?, start_seconds?, max_chars?)— the video's captions as timestamped segments plus the joined text, the track language, and whether it is auto-generated. Accepts a bare ID or a youtube.com / youtu.be URL. Long videos are paged: the response carriestruncatedandnext_start_seconds; pass that back asstart_seconds.
Auth
yt_video_transcript— keyless.- Everything else — platform key, or bring your own: Pipeworx supplies a
YouTube Data API v3 key, or pass your own from Google Cloud Console as
_apiKey(used first).
Data sources
- https://www.googleapis.com/youtube/v3 — the Data API (all tools except the transcript).
- https://www.youtube.com/youtubei/v1/player — YouTube's own player endpoint,
called with the ANDROID client context; its
captionTracks[].baseUrlis then fetched withfmt=json3for the transcript.
The transcript upstream is fragile. It is an undocumented endpoint, not a published API, and YouTube can change it without notice. What we know as of 2026-10-09 (edge-probed from a Worker, fleet #2846):
- The WEB watch page lists the same caption tracks, but their URLs carry
exp=xpeand need a PO token: fetched bare they answer 200 with a 0-byte body. That is a silent empty transcript, so the WEB route is not used. The ANDROID client's track URLs fetch without one. - YouTube intermittently answers datacenter IPs with
LOGIN_REQUIRED"Sign in to confirm you're not a bot". It lands per request rather than per video: through the live gateway it hit 7 of 10 consecutive calls with a single attempt, and then let the same videos through. So the tool tries the ANDROID client, then IOS (both give caption URLs that need no PO token; ANDROID_VR does not qualify, it was bot-checked on every probe). If both are refused it opens the public watch page. If that page shows the video plays and has no caption tracks, the answer iscaptions_unavailable. Otherwise both clients are retried carrying the visitor ID and cookies the page handed out. Only after all four are refused does the call failupstream_down, saying that YouTube is blocking our servers. It never returns an empty transcript. The watch page itself answers 429 from some egress IPs, and in that case it is skipped. - Translation (
&tlang=) answers 429 from a datacenter IP, so a language the video has no track for is refused (captions_unavailable, listing the tracks it does have) rather than machine-translated. - A video with no caption tracks fails
captions_unavailable. A private, removed or region-blocked video failsnot_foundwith YouTube's own reason.
If this starts failing for every video, check the ANDROID clientVersion in
src/index.ts first — YouTube retires old client versions.
The egress relay is NOT the fallback after that. Measured and ruled out
2026-10-09 (fleet #2877). It was the obvious next move and it is strictly
worse than what we have. Probed from a throwaway function on the relay's own
Supabase edge infra, against www.youtube.com:
| Leg the transcript needs | Through the relay | Residential control |
|---|---|---|
POST /youtubei/v1/player | 403, 10/10 — Google's "Sorry… your computer or network may be sending automated queries" page, an identical 1,103 bytes on every call, across 5 different videos | 200 OK, 3/3, 2 caption tracks |
GET /watch?v= | 200, 5/5, visitor ID present | — |
GET /api/timedtext (signed) | 200, 3/3, 79,833 bytes — byte-identical to residential | 200, 79,833 bytes |
So the block is scoped to exactly one endpoint — the innertube player call —
and that is the only leg that fails on Cloudflare today. The relay refuses it
100% of the time; Cloudflare egress refuses it 40% (8 of 20 live
yt_video_transcript calls across 10 videos, 2026-10-09). Routing the player
call through the relay would take the tool from partly working to never working,
which is why www.youtube.com is deliberately absent from the relay's
ALLOWED_HOSTS (there is a note there saying so). The two legs that do pass
the relay are not the ones that need help.
Measuring the 40% needs care: the gateway caches tool responses, so a probe that
repeats identical arguments reads far too healthy. An un-busted run of the same
10 videos scored 14/16; varying max_chars per call to defeat the cache gave
12/20. Vary an argument or you will measure the cache.
What is actually left, none of it tried: a residential/mobile proxy (costs
money, so it is Bruce's call), a PO-token minter so the WEB route's exp=xpe
URLs stop answering 0 bytes, or accepting the 40% and making the retry advice in
the error message the answer.
Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
{
"mcpServers": {
"youtube": {
"url": "https://gateway.pipeworx.io/youtube/mcp"
}
}
}
What this endpoint actually serves
tools/list at https://gateway.pipeworx.io/youtube/mcp returns the tools in the table
above plus five Pipeworx tools: ask_pipeworx, discover_tools, ask_pipeworx_grounded, company_register_search and company_facts.
ask_pipeworx answers a question this pack does not cover by routing across the
whole catalog, without adding a second MCP server.
Add an option to the same URL:
https://gateway.pipeworx.io/youtube/mcp?meta=1lists this pack's tools plus up to 48 shared Pipeworx tools (48 when this README was generated; a connection without an account lists fewer, and its owntools/listis the exact answer on any given day).https://gateway.pipeworx.io/youtube/mcp?meta=0lists this pack's tools alone.
Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
Both URLs reach the same gateway and the same 2100+ data sources. The
only difference is which pack's tools are listed directly; ask_pipeworx
reaches all of them from either one (it is not listed on a ?meta=0 connection).
No MCP client? Call it over HTTP
curl -X POST https://gateway.pipeworx.io/v1/tools/yt_search \
-H 'Content-Type: application/json' \
-d '{"query":"machine learning tutorial"}'
No account needed for the first calls. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/yt_search. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.
Run it from npm
@pipeworx/mcp-youtube is a local stdio bridge to the Pipeworx gateway: your MCP client
starts it with npx, and it forwards every call to the same
https://gateway.pipeworx.io/youtube/mcp endpoint shown above. It needs network access;
there is no offline mode.
{
"mcpServers": {
"youtube": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-youtube"]
}
}
}
Without a key it calls anonymously, capped at 50 calls a day. A free account
raises that to 200 a day: get a key at https://pipeworx.io/signup and add
"env": { "PIPEWORX_API_KEY": "<your key>" } to the server entry.
The key is sent as a Bearer token, the same way a hosted connection sends it,
so calls are metered and billed exactly as they are there.
It lists only this pack's tools by default. Set PIPEWORX_META_TOOLS=1 to
also list ask_pipeworx and the other gateway-wide tools.
Behind an HTTPS proxy: Node's built-in fetch does not read HTTPS_PROXY by
default. Newer Node releases honour it when NODE_USE_ENV_PROXY=1 is set; check
your Node version's documentation.
Using with ask_pipeworx
Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:
ask_pipeworx({ question: "your question about Youtube data" })
The gateway picks the right tool and fills the arguments automatically.
More
License
MIT
Frequently asked questions
What is Youtube MCP Server?
Unofficial YouTube MCP — wraps the YouTube Data API v3 (platform key, or BYO API key as _apiKey)
How do I install Youtube MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Youtube MCP Server runs locally from the npm package @pipeworx/mcp-youtube with the command npx -y @pipeworx/mcp-youtube@0.2.3.
Is Youtube MCP Server free and open source?
Yes. Youtube MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Youtube MCP Server support remote (HTTP) connections?
Yes. Youtube MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
What tools does Youtube MCP Server provide?
Youtube MCP Server provides 1 tool: yt_video_transcript. See the full tool list for descriptions and parameters.
How is Youtube MCP Server's trust score calculated?
Youtube MCP Server scores 69 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.