This is a Model Context Protocol (MCP) tool for transcribing YouTube videos using the youtube-transcript-api.
- Extracts and transcribes from YouTube videos (manual or autogenerated). Enables retrieval of transcripts from YouTube videos.
- Exposes a single tool:
transcribe_video(video: str).
- Python 3.12+
- Install dependencies:
pip install -r requirements.txt
You can run the tool directly:
python youtube.pyTo use this tool as an MCP server in VS Code, add the following to your .vscode/settings.json or your MCP client configuration:
"youtube_transcriptor": {
"type": "stdio",
"command": "python",
"args": ["PATH\\transcription\\youtube.py"]
}Replace PATH with the absolute path to your workspace root.
Once configured, you can call the transcribe_video tool from your MCP client or compatible VS Code extension, passing a YouTube video URL as the argument.
Example:
result = transcribe_video("https://www.youtube.com/watch?v=VIDEO_ID")
print(result)MIT