YouTube Transcript API
A MCP server helps to transcript a youtube video
minhleathvn
README
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
Recommended Servers
Crypto Price & Market Analysis MCP Server
A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.
MCP PubMed Search
Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.
dbt Semantic Layer MCP Server
A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.
mixpanel
Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Nefino MCP Server
Provides large language models with access to news and information about renewable energy projects in Germany, allowing filtering by location, topic (solar, wind, hydrogen), and date range.
Vectorize
Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.
Mathematica Documentation MCP server
A server that provides access to Mathematica documentation through FastMCP, enabling users to retrieve function documentation and list package symbols from Wolfram Mathematica.
kb-mcp-server
An MCP server aimed to be portable, local, easy and convenient to support semantic/graph based retrieval of txtai "all in one" embeddings database. Any txtai embeddings db in tar.gz form can be loaded
Research MCP Server
The server functions as an MCP server to interact with Notion for retrieving and creating survey data, integrating with the Claude Desktop Client for conducting and reviewing surveys.