Extract transcripts from YouTube videos
YouTube Transcript is a Model Context Protocol server that enables easy access to video captions and subtitles from YouTube. It provides a simple interface to extract transcripts from videos using either a URL or video ID, with support for multiple languages. This tool is particularly useful for content analysis, research, and accessibility purposes. It handles various YouTube URL formats and provides detailed metadata in responses, making it a versatile solution for working with video content.
YouTube Transcript allows you to extract text transcripts from YouTube videos directly through a simple interface. This MCP server supports multiple video URL formats and language-specific transcript retrieval, making it easy to access video content in text form.
The easiest way to install YouTube Transcript is via Smithery:
npx -y @smithery/cli install @kimtaeyoon83/mcp-server-youtube-transcript --client claude
You can also install using the mcp-get tool:
npx @michaellatman/mcp-get@latest install @kimtaeyoon83/mcp-server-youtube-transcript
To manually configure YouTube Transcript with Claude Desktop or other MCP clients, add this server configuration to your settings:
{
"mcpServers": {
"youtube-transcript": {
"command": "npx",
"args": ["-y", "@kimtaeyoon83/mcp-server-youtube-transcript"]
}
}
}
Once installed, you can use the get_transcript
tool to extract transcripts from YouTube videos. Here are some examples:
get_transcript(url: "https://www.youtube.com/watch?v=VIDEO_ID", lang: "en")
get_transcript(url: "VIDEO_ID", lang: "ko")
Extract subtitles from this YouTube video: https://youtu.be/ODaHJzOyVCQ
url
(required): YouTube video URL or video IDlang
(optional, default: "en"): Language code for transcript (e.g., 'ko', 'en')The server implements robust error handling for common scenarios:
If you want to contribute or modify the server:
Prerequisites:
Setup:
npm install
npm run build
For development with auto-rebuild:
npm run watch
Testing:
npm test
Debugging with MCP Inspector:
npm run inspector
This MCP server is licensed under the MIT License.