
youtube_transcript
A MCP server helps to transcript a youtube video
Repository Info
About This Server
A MCP server helps to transcript a youtube video
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
YouTube Transcript API
A Python service that provides APIs to fetch and transcribe YouTube video content. It supports both REST API (Flask) and MCP server implementations.
Features
- Fetch YouTube video transcripts in multiple languages (English and Vietnamese)
- Auto-detect and use available transcripts
- Fallback to audio transcription using Whisper when transcripts are unavailable
- Support for both REST API and MCP server interfaces
- Automatic language detection
- Temporary file cleanup
- Progress reporting for long-running operations
Installation
pip install -r requirements.txt
Usage
REST API (Flask)
Start the Flask server:
python apps/flask_server.py
Available endpoints:
GET /transcript?video_id=<video_id>&language=<lang>- Get video transcriptGET /video/info?video_id=<video_id>- Get video informationGET /health- Health check endpoint
MCP Server
Start the MCP server:
python apps/mcp_server.py
Available tools:
get_transcript(video_id, language)- Get video transcriptextract_transcript(video_id, language)- Extract transcript from audiosearch_youtube_video(query)- Search for YouTube videos
Language Support
- English (en)
- Vietnamese (vi)
- Auto-detection for other languages
Dependencies
- youtube-transcript-api
- pytube
- whisper
- torch
- langdetect
- flask (for REST API)
- mcp (for MCP server)
Development
The project structure:
apps/
├── __init__.py
├── flask_server.py # REST API implementation
├── mcp_server.py # MCP server implementation
└── utils.py # Shared utilities
License
MIT License
Quick Start
Clone the repository
git clone https://github.com/minhleathvn/youtube_transcriptInstall dependencies
cd youtube_transcript
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.