- YouTube Transcript MCP Server
YouTube Transcript MCP Server
Content
YouTube Transcript MCP Server
A high-performance, serverless implementation of a YouTube transcript extraction service using the Model Context Protocol (MCP), deployed on Cloudflare Workers.
Overview
This MCP server enables AI assistants to retrieve transcripts from YouTube videos through a simple API. The implementation combines the lightweight transcript extraction capabilities seen in kimtaeyoon83/mcp-server-youtube-transcript with the remote MCP server architecture from Cloudflare AI demos.
Features
- Serverless Deployment: Runs on Cloudflare's global edge network for minimal latency
- YouTube URL Flexibility: Supports multiple URL formats and direct video IDs
- Language Selection: Retrieve transcripts in different languages (defaults to English)
- Edge-optimized: Ultra-fast response times (typically 400-800ms)
- Minimal Implementation: Less than 300 lines of code for easy maintenance
- SSE Transport: Implements Server-Sent Events for streaming connections
Available Tools
| Tool | Description | Parameters |
|---|---|---|
get_transcript | Extract transcripts from YouTube videos | url (required): YouTube video URL or IDlang (optional, default: "en"): Language code |
Usage with Claude Desktop
Installation
- Open Claude Desktop and go to Settings > Developer > Edit Config
- Update your configuration file:
{
"mcpServers": {
"youtube-transcript": {
"command": "npx",
"args": [
"mcp-remote",
"https://your-deployed-worker.workers.dev/sse"
]
}
}
}
- Restart Claude Desktop
Example Prompts
Can you show me the transcript of this YouTube video? https://www.youtube.com/watch?v=dQw4w9WgXcQ
Extract the transcripts from this TED talk and summarize the key points: https://youtu.be/8S0FDjFBj8o
Local Development
Prerequisites
- Node.js 18 or higher
- Wrangler CLI (
npm install -g wrangler)
Setup
# Clone the repository
git clone https://github.com/yourusername/youtube-transcript-mcp-server.git
cd youtube-transcript-mcp-server
# Install dependencies
npm install
# Run locally
wrangler dev
Testing with MCP Inspector
-
Install the MCP Inspector:
npx @modelcontextprotocol/inspector -
In the inspector:
- Set Transport Type to
SSE - Enter
http://localhost:8787/sseas the URL - Click "Connect"
- Set Transport Type to
-
Try out the
get_transcripttool with different YouTube URLs
Deployment to Cloudflare
# Deploy to Cloudflare Workers
wrangler deploy
Technical Implementation
The server is built with a minimal, high-efficiency codebase:
- YouTubeTranscriptMCPSqlite: Core MCP agent implementation with transcript extraction capabilities
- McpServer: Handles MCP protocol interactions
- MCP Protocol Integration: Complete implementation of the Model Context Protocol
Key optimizations:
- Efficient URL parsing and validation
- Minimal external dependencies
- Proper error handling with detailed error messages
- Streaming support through SSE
Credits
- Built with @modelcontextprotocol/sdk
- Uses youtube-captions-scraper for transcript extraction
- Inspired by:
License
MIT
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
ChatWiseThe second fastest AI chatbot™
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Serper MCP ServerA Serper MCP Server
Amap Maps高德地图官方 MCP Server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Playwright McpPlaywright MCP server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
DeepChatYour AI Partner on Desktop
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
WindsurfThe new purpose-built IDE to harness magic
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Tavily Mcp
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
CursorThe AI Code Editor