YouTube Transcript MCP Server
by Arvind29
README.md
# š„ 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
---
## Requirements
* Python 3.10+
* Internet connection
---
## Installation
Clone the repository:
```bash
git clone https://github.com/<your-username>/youtube-transcript-mcp.git
cd youtube-transcript-mcp
```
Install dependencies:
```bash
pip install -r requirements.txt
```
Or install manually:
```bash
pip install mcp youtube-transcript-api yt-dlp
```
---
## Project Structure
```text
youtube-transcript-mcp/
ā
āāā server.py
āāā requirements.txt
āāā README.md
```
---
## Run
```bash
python server.py
```
---
## MCP Tool
### `youtube_transcript`
**Input**
```json
{
"url": "https://www.youtube.com/watch?v=VIDEO_ID"
}
```
**Output**
```json
{
"title": "Sample Video",
"duration": "18:42",
"language": "Hindi",
"language_code": "hi",
"transcript": "Complete transcript..."
}
```
---
## Claude Desktop Configuration
```json
{
"mcpServers": {
"youtube-transcript": {
"command": "python",
"args": [
"/path/to/server.py"
]
}
}
}
```
Replace `/path/to/server.py` with the location of your `server.py`.
---
## License
MIT
This server cannot be deployed
Maintenance
ActivityStale
ResponsivenessNo issues