Labsco
Mohammad1704 logo

YouTube Transcript

โ˜… 1

from Mohammad1704

A zero-setup server to extract transcripts from YouTube videos on any platform.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup
YouTube Transcript MCP Logo

YouTube Transcript Remote MCP Server

The first remote Model Context Protocol (MCP) server that enables Claude AI to extract transcripts from YouTube videos. This server offers zero-setup access for users on any platform including mobile devices.

Deploy to Cloudflare Workers

๐ŸŒŸ Features

  • Zero Local Setup: No installation required - works directly from the cloud
  • Universal Access: Works on desktop, mobile, and web versions of Claude
  • Smart Caching: Efficient caching system using Cloudflare KV for fast responses
  • Multi-language Support: Extract transcripts in different languages
  • Error Handling: Robust error handling with user-friendly messages
  • Analytics: Built-in request tracking and usage analytics
  • URL Flexibility: Handles all YouTube URL formats (youtube.com, youtu.be, m.youtube.com, etc.)

๐Ÿ›  Available Tools

get_transcript

Extracts the transcript from a YouTube video URL.

Parameters:

  • url (required): YouTube video URL in any format
  • language (optional): Language code for the transcript (e.g., 'en', 'es', 'fr'). Defaults to 'en'.

Example Usage:

{
  "name": "get_transcript",
  "arguments": {
    "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "language": "en"
  }
}

๐Ÿ“Š Server Information

  • Hosting: Cloudflare Workers
  • Caching: Cloudflare KV with 7-day cache for successful transcripts
  • Rate Limiting: Built-in retry logic with exponential backoff
  • Uptime: 99.9%+ availability through Cloudflare's global network
  • Response Time: Typically <3 seconds for cached content, <10 seconds for new requests

๐Ÿšจ Error Handling

The server provides clear error messages for common issues:

  • "Invalid YouTube URL provided": The URL format is not recognized
  • "No transcript available for this video": Video has no captions/transcript
  • "Video not found or private": Video is private, deleted, or doesn't exist
  • "Service temporarily busy, try again in a few minutes": Rate limiting from YouTube
  • "Transcripts are disabled for this video": Creator has disabled captions

๐ŸŒ Language Support

The server supports any language that YouTube provides transcripts for. Common language codes:

  • en - English (default)
  • tr - Turkish
  • es - Spanish
  • fr - French
  • de - German
  • it - Italian
  • pt - Portuguese
  • ja - Japanese
  • ko - Korean
  • zh - Chinese

๐Ÿ”’ Privacy & Security

  • No Authentication Required: Public server for ease of use
  • No Data Storage: Transcripts are cached temporarily for performance only
  • No Personal Information: Only YouTube video IDs and transcripts are processed
  • HTTPS Only: All communications are encrypted
  • CORS Enabled: Supports web-based MCP clients

๐Ÿš€ API Endpoints

For developers who want to integrate directly:

HTTP POST /mcp

Standard MCP JSON-RPC endpoint for direct integration.

Server-Sent Events /sse

MCP SSE transport endpoint for real-time communication.

Info /

Server information and status endpoint.

Example Direct API Call:

curl -X POST https://youtube-transcript-mcp.ergut.workers.dev/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "get_transcript",
      "arguments": {
        "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "language": "en"
      }
    }
  }'

๐Ÿค Contributing

This is an open-source project. Contributions are welcome!

  • Report Issues: Found a bug? Please open an issue
  • Feature Requests: Have ideas for improvements? Let us know!
  • Code Contributions: PRs welcome for enhancements

Development Setup

git clone https://github.com/ergut/youtube-transcript-mcp
cd youtube-transcript-mcp
npm install
npm run dev

๐Ÿ“œ License

This project is open source and available under the MIT License.

๐Ÿ™ Acknowledgments


Ready to supercharge Claude with YouTube transcript extraction? Add this server to your Claude Desktop configuration and start extracting transcripts from any YouTube video instantly! ๐ŸŽ‰