mcp-youtube-transcript-downloader

mcp-youtube-transcript-downloader

A minimalist MCP server that fetches transcripts from YouTube videos using the Supadata API.

Category
Visit Server

README

šŸŽ¬ MCP YouTube Transcript Downloader

Download YouTube video transcripts directly into your AI workflow — no more copying/pasting!

npm version License: MIT Node.js 18+

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_transcript for quick downloads, get_transcript_and_save for 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!

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured