Skip to main content
Glama
Arvind29

YouTube Transcript MCP Server

by Arvind29

šŸŽ„ YouTube Transcript MCP Server

A simple Model Context Protocol (MCP) server that retrieves a YouTube video's title, duration, and transcript.

Features

  • Get YouTube video title

  • Get video duration

  • Automatically fetch the best available transcript

  • Language preference:

    • Hindi (hi)

    • Marathi (mr)

    • English (en)

  • Compatible with MCP clients such as Claude Desktop and VS Code


Related MCP server: YouTube Video Summarizer MCP Server

Requirements

  • Python 3.10+

  • Internet connection


Installation

Clone the repository:

git clone https://github.com/<your-username>/youtube-transcript-mcp.git
cd youtube-transcript-mcp

Install dependencies:

pip install -r requirements.txt

Or install manually:

pip install mcp youtube-transcript-api yt-dlp

Project Structure

youtube-transcript-mcp/
│
ā”œā”€ā”€ server.py
ā”œā”€ā”€ requirements.txt
└── README.md

Run

python server.py

MCP Tool

youtube_transcript

Input

{
  "url": "https://www.youtube.com/watch?v=VIDEO_ID"
}

Output

{
  "title": "Sample Video",
  "duration": "18:42",
  "language": "Hindi",
  "language_code": "hi",
  "transcript": "Complete transcript..."
}

Claude Desktop Configuration

{
  "mcpServers": {
    "youtube-transcript": {
      "command": "python",
      "args": [
        "/path/to/server.py"
      ]
    }
  }
}

Replace /path/to/server.py with the location of your server.py.


License

MIT

Related MCP Connectors

Related MCP Servers