mcp-youtube-transcript-downloader
A minimalist MCP server that fetches transcripts from YouTube videos using the Supadata API.
README
🎬 MCP YouTube Transcript Downloader
Download YouTube video transcripts directly into your AI workflow — no more copying/pasting!
A minimalist MCP server that fetches transcripts from YouTube videos using the Supadata API. Perfect for AI assistants that need to analyze video content, create summaries, or extract key information.
⚡ Features
- 🎯 Two handy tools —
get_transcriptfor quick downloads,get_transcript_and_savefor full path control - 📦 Zero dependencies — lightweight and fast
- 🔑 Flexible auth — token from file or environment variable
- 🛡️ Basic error handling — clear error messages when things go wrong
🚀 Quick Start
Prerequisites
- Node.js 18 or higher
- A free Supadata API key
Installation
# Install dependencies
npm install
# Build the project
npm run build
# Or use directly with npx
npx @milor123/mcp-youtube-transcript-downloader
Get Your Free API Key
Sign up at https://supadata.ai
100 requests/month FREE — no credit card required! Perfect for personal projects and experimentation.
Configuration
Create a token_api.txt file in the project root with your API key:
sd_your_api_key_here
Or set an environment variable:
export SUPADATA_API_KEY="sd_your_api_key_here"
📥 Available Tools
get_transcript
Downloads a YouTube video transcript and saves it to a .txt file. Returns the transcript content and filename for use in subsequent operations.
| Parameter | Type | Required | Description |
|---|---|---|---|
youtube_url |
string | ✅ | Full YouTube video URL (e.g., https://www.youtube.com/watch?v=dQw4w9WgXcQ) |
filename |
string | ❌ | Custom filename without extension. If omitted, uses the video ID |
Returns:
content— The full transcript text_meta.filename— The filename where transcript was saved_meta.videoId— The extracted YouTube video ID
Example request:
{
"youtube_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"filename": "rick_roll_transcript"
}
Example response:
{
"content": [
{
"type": "text",
"text": "Never gonna give you up, never gonna let you down..."
}
],
"_meta": {
"filename": "rick_roll_transcript.txt",
"videoId": "dQw4w9WgXcQ"
}
}
get_transcript_and_save
Downloads a YouTube video transcript and saves it to a specific filepath of your choice. Great when you need precise control over where files are stored.
| Parameter | Type | Required | Description |
|---|---|---|---|
youtube_url |
string | ✅ | Full YouTube video URL |
filepath |
string | ✅ | Full filepath including .txt extension (e.g., C:/Users/You/Documents/transcript.txt) |
Returns:
- Confirmation message with the filepath where the transcript was saved
Example request:
{
"youtube_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"filepath": "C:/Users/You/Documents/my_transcripts/rick_roll.txt"
}
Example response:
{
"content": [
{
"type": "text",
"text": "Transcript saved to C:/Users/You/Documents/my_transcripts/rick_roll.txt"
}
]
}
💡 Tip: This tool automatically creates parent directories if they don't exist!
🤖 AI Client Configuration
OpenCode
Option 1 - Remote (recommended - coming soon)
{
"mcpServers": {
"youtube-transcript": {
"type": "remote",
"url": "https://your-remote-mcp-server.com/youtube-transcript",
"environment": {
"SUPADATA_API_KEY": "sd_your_api_key_here"
}
}
}
}
Remote hosting allows sharing a single MCP server across multiple users. Contact the maintainer for server access.
Option 2 - Local (npx installation)
{
"mcpServers": {
"youtube-transcript": {
"type": "local",
"command": ["npx", "@milor123/mcp-youtube-transcript-downloader"],
"enabled": true,
"environment": {
"SUPADATA_API_KEY": "sd_28bee9cd727665ed7a6ceebcf4c90334"
}
}
}
}
Claude Desktop
{
"mcpServers": {
"youtube-transcript": {
"command": "node",
"args": ["/full/path/to/dist/index.js"],
"env": {
"SUPADATA_API_KEY": "sd_your_api_key_here"
}
}
}
}
💰 Supadata Free Tier
| Feature | Limit |
|---|---|
| Requests per month | 100 |
| Credit card required | ❌ No |
| Cost | Free! |
Get your API key at https://supadata.ai
📁 Project Structure
@milor123/mcp-youtube-transcript-downloader/
├── src/
│ └── index.ts # Main MCP server implementation
├── dist/ # Compiled JavaScript output (generated after build)
├── token_api.txt # Your API token (never commit this!)
├── package.json
├── tsconfig.json
└── README.md
❤️ Credits & Acknowledgments
This project was inspired by a script created by Mutti from GreasyFork. Thank you for the original idea that sparked this MCP server!
📜 License
MIT License — feel free to use it in your projects!
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。