An MCP server retrieving transcripts of YouTube videos
A Model Context Protocol (MCP) server that fetches transcripts and metadata from YouTube videos directly into your LLM workflows.
Designed specifically for AI agents, it seamlessly handles long-form videos through automatic pagination and provides robust proxy support to circumvent YouTube rate limits and IP bans.
[!NOTE] You'll need
uvinstalled on your system to useuvxcommand.
This server communicates via standard stdio.
Most MCP clients can run it directly using uvx (part of Astral uv).
Add this entry to your client's MCP configuration file (typically under mcpServers):
{
"mcpServers": {
"youtube-transcript": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/jkawamoto/mcp-youtube-transcript",
"mcp-youtube-transcript"
]
}
}
}
.mcpb bundle
from the Releases page
and drop it into your Claude Desktop Settings.claude_desktop_config.json (restart Claude Desktop after saving):
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonyoutube-transcript, Type: command.uvx --from git+https://github.com/jkawamoto/mcp-youtube-transcript mcp-youtube-transcriptPlease refer to this tutorial for detailed installation instructions: YouTube Transcript Extension.
To configure this server for LM Studio, click the button below.
A Docker image for this server is available on Docker Hub. Please refer to the Docker Hub page for detailed usage instructions and documentation.
The server registers the following MCP tools for LLM agents:
| Tool | Description |
|---|---|
get_transcript | Retrieves the plain-text transcript for a YouTube video URL. |
get_timed_transcript | Retrieves transcript segments with start times and durations. |
get_available_languages | Lists all available transcript languages (manual & auto-generated). |
get_video_info | Fetches video metadata such as title and channel information. |
get_transcript
url (string, required): Full YouTube video URL.lang (string, optional): Preferred language code (defaults to "en").next_cursor (string, optional): Cursor token to fetch the next chunk for long videos.get_timed_transcript
url (string, required): Full YouTube video URL.lang (string, optional): Preferred language code (defaults to "en").next_cursor (string, optional): Cursor token to fetch the next chunk.get_available_languages
url (string, required): Full YouTube video URL.get_video_info
url (string, required): Full YouTube video URL.Long videos (e.g., lectures, conferences, podcast episodes) can quickly exceed LLM token context limits.
By default, transcripts exceeding 50,000 characters are chunked. When a response is split,
a next_cursor is provided so the LLM agent can autonomously query the rest.
To customize the chunk character limit, supply --response-limit.
To disable pagination and fetch the entire transcript at once, set --response-limit to a negative value (e.g., -1):
{
"mcpServers": {
"youtube-transcript": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/jkawamoto/mcp-youtube-transcript",
"mcp-youtube-transcript",
"--response-limit",
"15000"
]
}
}
}
YouTube aggressively blocks automated transcript requests from cloud providers and data center IPs. Using residential or rotating proxies ensures uninterrupted access.
Set credentials via environment variables or command-line flags:
{
"mcpServers": {
"youtube-transcript": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/jkawamoto/mcp-youtube-transcript",
"mcp-youtube-transcript"
],
"env": {
"WEBSHARE_PROXY_USERNAME": "your_username",
"WEBSHARE_PROXY_PASSWORD": "your_password"
}
}
}
}
(CLI equivalents: --webshare-proxy-username and --webshare-proxy-password)
If using ScrapingAnt, supply your API token:
{
"mcpServers": {
"youtube-transcript": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/jkawamoto/mcp-youtube-transcript",
"mcp-youtube-transcript"
],
"env": {
"SCRAPINGANT_API_TOKEN": "your_api_token"
}
}
}
}
(CLI equivalent: --scrapingant-api-token)
Accessing YouTube requires a paid ScrapingAnt Web Scraping API subscription. YouTube access requires residential proxies, which consume more ScrapingAnt credits than standard proxy requests. See the ScrapingAnt credit cost documentation for details.
Specify custom proxy endpoints via HTTP_PROXY / HTTPS_PROXY (or --http-proxy / --https-proxy):
{
"mcpServers": {
"youtube-transcript": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/jkawamoto/mcp-youtube-transcript",
"mcp-youtube-transcript"
],
"env": {
"HTTPS_PROXY": "http://username:password@proxy.example.com:8080"
}
}
}
}
For more details, please visit: Working around IP bans - YouTube Transcript API.
This application is licensed under the MIT License. See the LICENSE file for more details.
This listing does not have a supported local package template. Use the maintainer’s documentation for its hosted endpoint, authentication, and client-specific setup. No install command has been inferred.
https://github.com/jkawamoto/mcp-youtube-transcript/releases/download/v0.8.1/mcp-youtube-transcript.mcpbotherio.github.jkawamoto/mcp-youtube-transcript works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.