Skip to main content
Glama
YouTube Transcript + Search MCP

YouTube Transcript + Search MCP

by tubeagentkit

Sixteen tools, one hosted endpoint, no local install, for Claude, ChatGPT, Cursor, VS Code, Windsurf, and 15+ other MCP-compatible clients.

https://getyoutubetranscript.com/api/mcp

Quick taste:

Search @veritasium for videos about black holes, pull the transcript of the
two best matches, and tell me where they disagree.

The agent chains search_channel_videos and get_youtube_transcript on its own. No code on your side.


Why this MCP

This MCP

Typical single-purpose YouTube MCP

Hosting

✅ Remote (no local install, no build step)

❌ Local stdio process to manage

Tools

✅ 15 (transcripts, translation, search, channels, playlists, video details, comments, related videos, dislikes, credits)

❌ Usually 1 (transcript only)

YouTube search (video and channel)

✅ Yes

❌ No

Full channel upload history, paginated

✅ Yes

❌ No

In-channel search

✅ Yes

❌ No

Auth

✅ API key and OAuth 2.1 (DCR + CIMD)

❌ Usually neither

Agent-friendly errors

✅ Stable error codes, human-readable messages

❌ Bare HTTP codes

What the official YouTube Data API can't do

Video details, comments, playlists and channel uploads are available from the official API too. This is what is missing there:

You want

Official YouTube Data API

This MCP

Transcript of someone else's video

Caption download works only for the video's owner

get_youtube_transcript, any public video with captions

Transcript in another language

Only the tracks the creator uploaded

translate, with timestamps kept aligned

Related videos

Endpoint removed in 2023

get_related_videos

Dislike count

Hidden since 2021

get_video_dislikes (community estimates)

Community posts

No endpoint

list_channel_posts

Many searches

10,000 quota units a day, 100 per search: about 100 searches

1 credit per search page

The bundled youtube skill also teaches the agent how to cite moment links, read the transcript header, handle each error code and keep large transcripts out of its answer.


Related MCP server: YouTube MCP

Install as an Agent Plugin

This repo root is also an Agent Plugins 1.0.0 package. It bundles the MCP server with a youtube skill that tells the agent which tool to use when, what each one costs, and how to avoid wasting credits.

plugin.json                # plugin manifest
mcp.json                   # hosted MCP server (streamable-http, OAuth, no key in the file)
skills/youtube/SKILL.md    # when and how to use the 16 tools

In VS Code, run Chat: Install Plugin From Source and paste https://github.com/tubeagentkit/youtube-mcp. Other clients that support Agent Plugins can point at this repo or a local clone. For Cursor there is a separate plugin repo.

The package holds no credentials. Check the manifests against the published schemas yourself:

curl -sO https://agent-plugins.org/schemas/1.0.0/plugin.schema.json
curl -sO https://agent-plugins.org/schemas/1.0.0/mcp.schema.json
npx ajv-cli@5 validate --spec=draft2020 -s plugin.schema.json -d plugin.json
npx ajv-cli@5 validate --spec=draft2020 -s mcp.schema.json -d mcp.json

ChatGPT and Codex

The same plugin.json carries the ChatGPT/Codex plugin directory listing under extensions.com.openai (other clients ignore it). scripts/build-openai-zip.sh checks it against OpenAI's field limits and builds the upload ZIP in dist/, with only plugin.json, mcp.json, skills/ and assets/.


Quick Install

Requirements: a free getyoutubetranscript.com account (sign up — 100 credits, no card) and an API key from your dashboard — or just connect via OAuth and skip the key entirely (see Authentication below).

Tip: clients that support MCP OAuth can skip the headers block in the snippets below and sign in through the browser instead.

Tip: to stop repeating "use the transcript tool", add a standing instruction to your client's rules or custom instructions, for example: "When I share a YouTube link, fetch its transcript with the youtube-transcript MCP before answering."

claude mcp add --transport http youtube-transcript https://getyoutubetranscript.com/api/mcp --header "Authorization: Bearer YOUR_API_KEY"
  1. Settings → Connectors → Add custom connector

  2. Name: YouTube Transcript · URL: https://getyoutubetranscript.com/api/mcp

  3. Click Add, then Connect and sign in via browser — no API key needed.

Settings → Features → MCP → Add New MCP Server — Type: SSE/HTTP, URL: https://getyoutubetranscript.com/api/mcp.

Or edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "youtube-transcript": {
      "url": "https://getyoutubetranscript.com/api/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}
"mcp.servers": {
  "youtube-transcript": {
    "type": "http",
    "url": "https://getyoutubetranscript.com/api/mcp",
    "headers": { "Authorization": "Bearer YOUR_API_KEY" }
  }
}

Enable Developer Mode, then Settings → Connected Apps → Add → URL https://getyoutubetranscript.com/api/mcp. Leave Client ID/Secret blank for Dynamic Client Registration, or use OAuth sign-in directly.

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "youtube-transcript": {
      "serverUrl": "https://getyoutubetranscript.com/api/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}
{
  "mcpServers": {
    "youtube-transcript": {
      "url": "https://getyoutubetranscript.com/api/mcp",
      "type": "streamableHttp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}
{
  "context_servers": {
    "youtube-transcript": {
      "source": "remote",
      "url": "https://getyoutubetranscript.com/api/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}
{
  "mcpServers": {
    "youtube-transcript": {
      "type": "streamable-http",
      "url": "https://getyoutubetranscript.com/api/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}
amp mcp add youtube-transcript https://getyoutubetranscript.com/api/mcp --header "Authorization: Bearer YOUR_API_KEY"
"augment.advanced": {
  "mcpServers": [
    {
      "name": "youtube-transcript",
      "url": "https://getyoutubetranscript.com/api/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  ]
}

In .kilocode/mcp.json:

{
  "mcpServers": {
    "youtube-transcript": {
      "type": "streamable-http",
      "url": "https://getyoutubetranscript.com/api/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}

Settings → Tools → AI Assistant → MCP:

{
  "mcpServers": {
    "youtube-transcript": {
      "url": "https://getyoutubetranscript.com/api/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}

30-second example

Summarize this video for me: https://youtu.be/dQw4w9WgXcQ

The agent calls get_youtube_transcript and summarizes the result. If you connected via OAuth, there's no key to configure at all — just approve the connection once.


Run locally (stdio)

Prefer a local process? server/ is an open-source stdio MCP server with the same 16 tools, built on the official MCP TypeScript SDK. It calls the public REST API with your API key.

git clone https://github.com/tubeagentkit/youtube-mcp
npm install --prefix youtube-mcp/server

Then point your client at it, e.g. Claude Desktop / Cursor:

{
  "mcpServers": {
    "youtube-transcript": {
      "command": "node",
      "args": ["/absolute/path/to/youtube-mcp/server/index.js"],
      "env": { "GYT_API_KEY": "sk_live_your_key_here" }
    }
  }
}

Live integration test (uses only free tools): GYT_API_KEY=sk_live_... npm test --prefix server


Authentication

API Key

Universal, works with every MCP client. Get one free (100 credits, no card) at the dashboard, then send it as a Bearer token:

"headers": { "Authorization": "Bearer sk_live_your_key_here" }

OAuth 2.1

No manual key management — sign in via browser, the server handles the rest.

  • Dynamic Client Registration (DCR): supported for clients that self-register at connect time (Claude Desktop/Web, ChatGPT, and most others).

  • Client ID Metadata Documents (CIMD): supported per the current MCP spec (2026-07-28) for clients that host their own metadata document — the more modern alternative to DCR, no shared secret required.

  • First connection opens a consent screen showing exactly what access is being granted; approve once and you're connected.

Both methods issue a token scoped and audience-bound to this specific MCP server — it can't be replayed against any other API.


Available Tools

All sixteen tools are exposed automatically once you connect. 1 credit = 1 successful request, except AI transcripts (3 credits per minute of video). Failed or rate-limited calls never consume credits.

1. get_youtube_transcript

Fetch the full transcript for a YouTube video, plus its title/author/thumbnail metadata.

Parameter

Type

Required

Description

video_url

string

required

YouTube URL (full or short) or an 11-character video ID

language

string

optional

Language code, e.g. en, es. Defaults to en

send_metadata

boolean

optional

Include title/author/thumbnail. Defaults to true

timestamps

boolean

optional

One line per caption, each starting with its [m:ss] start time ([h:mm:ss] past an hour). Defaults to false (one block of text)

translate

string

optional

Language code to machine-translate the transcript into, e.g. es, zh-CN. Timestamps stay aligned, and the header gains ## Translated to: es (machine translation)

mode

string

optional

native (default): captions only. auto: captions if the video has any, otherwise an AI speech-to-text transcript of the audio. generate: always an AI transcript. With auto or generate, language is the language spoken (omit it to use the video's own audio language) and translate is not allowed

Cost: 1 credit for captions, with or without timestamps or translate. An AI transcript costs 3 credits per minute of video (rounded up, minimum 3), for videos up to 4 hours. Reading your own AI transcript again within 24 hours costs 0, and credits are refunded automatically if generation fails. Live and upcoming streams are refused.

AI transcripts are labeled ## Source: AI speech-to-text transcript in the header, with the credits the call took. A long video may answer with a job_id instead of text while the transcript is being made: poll it with get_transcript_job.

2. get_transcript_job · FREE

Status or result of an AI transcript job that get_youtube_transcript (mode auto or generate) answered with a job_id. Returns the transcript when done, says it is still running otherwise (call again in about 5 seconds), or the error if it failed (credits are refunded then). Only jobs started by your account can be read; jobs are kept 7 days.

Parameter

Type

Required

Description

job_id

string

required

The job_id returned by get_youtube_transcript

send_metadata

boolean

optional

Include title/author. Defaults to true

timestamps

boolean

optional

One line per segment, each starting with its [m:ss] start time. Defaults to false

Cost: Free. The credits were taken when the job started.

3. get_transcript_languages

List the caption languages a video offers, creator-uploaded or auto-generated, and which one a default request returns.

Parameter

Type

Required

Description

video_url

string

required

YouTube URL (full or short) or an 11-character video ID

An empty list means the video has captions turned off. Not needed for an ordinary transcript request: get_youtube_transcript already reports the language it returned.

Cost: 1 credit.

4. search_youtube

Search YouTube for videos or channels, paginated.

Parameter

Type

Required

Description

query

string

required unless continuation set

Search query

search_type

"video" | "channel"

optional

Defaults to "video"

continuation

string

optional

Opaque token from a previous response — fetches the next page

Cost: 1 credit/page.

5. get_channel_latest_videos

Get a channel's metadata plus its most recent uploads.

Parameter

Type

Required

Description

channel

string

required

@handle, channel URL, or UC… channel ID

Cost: 1 credit.

6. search_channel_videos

Search within one specific channel's videos.

Parameter

Type

Required

Description

channel

string

required unless continuation set

@handle, channel URL, or UC… ID

query

string

required unless continuation set

Query to search within the channel

continuation

string

optional

Opaque token — fetches the next page

Cost: 1 credit/page.

7. list_channel_videos

List a channel's uploads beyond its latest videos: older episodes, its most popular videos, its Shorts, or its past live streams.

Parameter

Type

Required

Description

channel

string

required unless continuation set

@handle, channel URL, or UC… ID

tab

string

optional

videos (default), shorts, or streams (the Live tab). First page only

sort

string

optional

latest (default), popular, or oldest. First page only

continuation

string

optional

Opaque token — fetches the next page

Cost: 1 credit/page.

8. list_channel_playlists

List the playlists a channel has published. Pass a playlist's id to list_playlist_videos to see its videos.

Parameter

Type

Required

Description

channel

string

required unless continuation set

@handle, channel URL, or UC… ID

continuation

string

optional

Opaque token — fetches the next page

Cost: 1 credit/page.

9. list_channel_posts

List a channel's community posts: text, links, likes, comments and any attached image.

Parameter

Type

Required

Description

channel

string

required unless continuation set

@handle, channel URL, or UC… ID

continuation

string

optional

Opaque token — fetches the next page

Cost: 1 credit/page.

10. get_related_videos

The videos YouTube suggests next to a video, each with title, video ID, link, channel, views, age and length.

Parameter

Type

Required

Description

video_url

string

required

YouTube URL (full or short) or an 11-character video ID

Cost: 1 credit.

11. get_channel_banner

A channel's uncropped banner, every crop size YouTube serves, and its avatar. has_banner is false when the channel has none.

Parameter

Type

Required

Description

channel

string

required

@handle, channel URL, or UC… ID

Cost: 1 credit.

12. get_video_dislikes

A video's likes, dislikes, star rating and view count. YouTube no longer publishes dislikes, so these are estimates.

Parameter

Type

Required

Description

video_url

string

required

YouTube URL (full or short) or an 11-character video ID

Cost: 1 credit.

13. get_video_details

A video's title, description, channel and subscriber count, views, likes, upload date, length, thumbnails and tags. views is exact; likes and subscribers are the rounded labels YouTube shows ("19M").

Parameter

Type

Required

Description

video_url

string

required

YouTube URL (full or short) or an 11-character video ID

Cost: 1 credit.

14. get_video_comments

A page of a video's top comments: text, commenter, likes, reply count and age. For the next page, call again with the same video_url plus continuation.

Parameter

Type

Required

Description

video_url

string

required

YouTube URL (full or short) or an 11-character video ID

continuation

string

optional

Opaque token from the previous page; send it with the same video_url

Cost: 1 credit/page.

15. list_playlist_videos

Get every video in a YouTube playlist.

Parameter

Type

Required

Description

playlist

string

required unless continuation set

Playlist URL or ID

continuation

string

optional

Opaque token — fetches the next page

Cost: 1 credit/page.

16. get_credits · FREE

Check the remaining credit balance for your key/account. No parameters.

Cost: Free.


Use Cases & Prompts

Use Case

Example Prompt

📝 Summarize a video

"Summarize the key points from this video: [URL]"

🔍 Research a topic

"Search YouTube for the 5 most-watched videos on neural radiance fields; summarize each."

🧠 Study notes

"Create study notes from this MIT lecture series playlist: [PLAYLIST URL]"

📡 Monitor a creator

"Each morning, list new uploads from @hubermanlab and tell me which to watch."

🏛️ Build a content database

"Pull every video from @veritasium and store title + transcript."

🎯 Channel research

"Search inside @MKBHD for any video about [topic] and summarize the takeaways."

✍️ Repurpose content

"Turn this video into a 1,500-word blog post: [URL]"

🎙️ Video without captions

"This video has no captions. Make an AI transcript of it: [URL]"

🌍 Translate a video

"Give me this talk in Spanish with timestamps: [URL]"

💬 Audience reaction

"What do viewers think of this video? Quote the top comments: [URL]"


Pricing & Rate Limits

Plan

Price

Credits

Rate Limit

Free

$0

100 credits on signup

60 req/min

Monthly

$5/month

1,000 credits/month

200 req/min

Annual

$4.50/mo ($54/yr)

1,000 credits/month

300 req/min

Starter

$19/month

7,500 credits/month

300 req/min

Pro

$49/month

25,000 credits/month

400 req/min

Scale

$99/month

60,000 credits/month

600 req/min

  • 1 credit = 1 successful request. Failed/rate-limited requests don't consume credits.

  • AI transcripts (mode auto on a video with no captions, or mode generate) cost 3 credits per minute of video, rounded up, minimum 3.

  • get_credits and get_transcript_job are free.

  • Manage billing →


Troubleshooting

  • If using an API key: confirm it starts with sk_live_ and has no extra whitespace

  • If using OAuth: try disconnecting and reconnecting the connector

  • Confirm the key/connection is still active in your dashboard

Check your balance and top up or upgrade at the dashboard.

  • The video may not have captions enabled: call again with mode auto for an AI transcript

  • It may be private, age-restricted, or region-locked

  • Confirm it plays in a real browser first

Back off and retry after a short delay — don't hammer it in a tight loop.

  • Clear cookies for getyoutubetranscript.com and retry

  • Ensure popup/redirect blockers aren't interfering with the consent screen

  • If your client supports both DCR and CIMD, try the other registration method


Verification

This repo contains the MIT-licensed source of the local stdio MCP server in server/ (tool definitions, input validation, API calls, error mapping), plus the manifests for the hosted endpoint. The hosted endpoint and the REST API behind both are run by getyoutubetranscript.com and are not open source. To check either one yourself:

  • Run the local server's live test — GYT_API_KEY=sk_live_... npm test --prefix server starts server/index.js over stdio, lists all 16 tools, and calls the free ones.

  • Run verify.js against the hosted endpoint — zero dependencies, zero auth required:

    node verify.js

    It performs the real MCP handshake (initialize then tools/list) against the live endpoint and prints the server's actual response, including all 16 real tool schemas. Tool discovery is public; only tool calls require an API key or OAuth token (see Authentication).

  • Independently verified by four third-party MCP directories, each of which connected to the live endpoint and confirmed the tools themselves (not just took our word for it):

    • Official MCP Registry — com.getyoutubetranscript/youtube-transcript-and-youtube-search, published via domain-ownership-verified HTTP mcp-publisher

    • Smithery — its own scanner connected and discovered the tools

    • Glama

    • LobeHub

  • Live since 2026-09-12 — the OAuth 2.1 (DCR + CIMD) flow has also been exercised end-to-end by a real third-party client (Smithery) connecting via CIMD, which surfaced and got a real interop fix along the way (see commit history).


Also available as a REST API

Building an app instead of an agent? The same backend is a plain JSON REST API — see the Agent Skill repo for the full endpoint reference, or the dashboard to get a key directly.

Base URL: https://getyoutubetranscript.com/api/v1


Connect

Disclosure

getyoutubetranscript.com is an independent product and is not affiliated with or endorsed by YouTube or Google.

Other ways to use the GetYouTubeTranscript API:

Comparing options, including other tools: awesome-youtube-transcripts lists libraries, hosted APIs, MCP servers and speech-to-text tools for YouTube transcripts.

License

MIT — see LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides production-grade tools for YouTube channel resolution, video metadata extraction, transcripts, and playlist management. It features a quota-aware, AI-friendly design that supports structured searching and listing of public YouTube data.
      7
      2
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI tools to access YouTube content, including transcript extraction, video/channel info, and search.
      4
      MIT