mcp-youtube-transcript
MCP server retrieving transcripts of YouTube videos Python-based implementation.
Documentation
YouTube Transcript MCP Server
This MCP server retrieves transcripts for given YouTube video URLs.
Tools
This MCP server provides the following tools:
`get_transcript`
Fetches the transcript of a specified YouTube video.
Parameters
- url *(string)*: The full URL of the YouTube video. This field is required.
- lang *(string, optional)*: The desired language for the transcript. Defaults to `en` if not specified.
- next_cursor *(string, optional)*: Cursor to retrieve the next page of the transcript.
`get_timed_transcript`
Fetches the transcript of a specified YouTube video with timestamps.
Parameters
- url *(string)*: The full URL of the YouTube video. This field is required.
- lang *(string, optional)*: The desired language for the transcript. Defaults to `en` if not specified.
- next_cursor *(string, optional)*: Cursor to retrieve the next page of the transcript.
`get_video_info`
Fetches the metadata of a specified YouTube video.
Parameters
- url *(string)*: The full URL of the YouTube video. This field is required.
`get_available_languages`
Retrieves the available languages for the video.
Parameters
- url *(string)*: The full URL of the YouTube video. This field is required.
Installation
> [!NOTE]
> You'll need `uv` installed on your system to use `uvx` command.
For goose
Please refer to this tutorial for detailed installation instructions:
For Claude
Download the latest MCP bundle `mcp-youtube-transcript.mcpb` from
the Releases page,
then open the downloaded `.mcpb `file or drag it into the Claude Desktop's Settings window.
Manually configuration
You can also manually configure this server for Claude Desktop.
Edit the `claude_desktop_config.json` file by adding the following entry under
`mcpServers`:
{
"mcpServers": {
"youtube-transcript": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/jkawamoto/mcp-youtube-transcript",
"mcp-youtube-transcript"
]
}
}
}After editing, restart the application.
For more information,
see: Connect to local MCP servers - Model Context Protocol..
For LM Studio
To configure this server for LM Studio, click the button below.
Using Docker
A Docker image for this server is available on Docker Hub.
Please refer to the Docker Hub page for detailed usage instructions and documentation.
Response Pagination
When retrieving transcripts for longer videos, the content may exceed the token size limits of the LLM.
To avoid this issue, this server splits transcripts that exceed 50,000 characters.
If a transcript is split, the response will include a `next_cursor`.
To retrieve the next part, include this `next_cursor` value in your request.
The token size limits vary depending on the LLM and language you are using.
If you need to split responses into smaller chunks,
you can adjust this using the `--response-limit` command line argument.
For example, the configuration below splits responses to contain no more than 15,000 characters each:
{
"mcpServers": {
"youtube-transcript": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/jkawamoto/mcp-youtube-transcript",
"mcp-youtube-transcript",
"--response-limit",
"15000"
]
}
}
}Using Proxy Servers
In environments where access to YouTube is restricted, you can use proxy servers.
When using Webshare, set the username and password for the Residential Proxy using either
the environment variables `WEBSHARE_PROXY_USERNAME` and `WEBSHARE_PROXY_PASSWORD`,
or the command line arguments `--webshare-proxy-username` and `--webshare-proxy-password`.
When using other proxy servers, set the proxy server URL using either the environment variables `HTTP_PROXY` or
`HTTPS_PROXY`, or the command line arguments `--http-proxy` or `--https-proxy`.
For more details, please visit:
Working around IP bans - YouTube Transcript API.
License
This application is licensed under the MIT License. See the LICENSE file for more details.
Frequently asked questions
What is mcp-youtube-transcript?
mcp-youtube-transcript is MCP server retrieving transcripts of YouTube videos Python-based implementation.
How do I install mcp-youtube-transcript?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-youtube-transcript open source?
Yes — it is hosted on GitHub at https://github.com/jkawamoto/mcp-youtube-transcript and has 111 stars.
Related MCP tools
An LLM agent that conducts deep research (local and web) on any given topic and generates a long report with citations. Built for the Model Context Protocol to
Model Context Protocol with Neo4j Python-based implementation. Trusted by 700+ developers. Trusted by 700+ developers. Trusted by 700+ developers.
🌐Web Agent Protocol (WAP) - Record and replay user interactions in the browser with MCP support Python-based implementation.
开盒即用的优雅管理mcp服务 | 结合Agent框架 | 作者听劝 | 已发布pypi | Vue页面demo Python-based implementation.
Universal memory layer for AI Agents; Announcing OpenMemory MCP - local and secure memory management. Python-based implementation.
🚀 The fast, Pythonic way to build MCP servers and clients Trusted by 19900+ developers. Trusted by 19900+ developers. Trusted by 19900+ developers.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP