YouTube Transcript API
A MCP server helps to transcript a youtube video
Overview
YouTube Transcript API Server is a microservice that provides transcriptions of YouTube videos via a simple HTTP API.
To use the API, clone the repository, install the dependencies, and run the server. Make a GET request to the /transcript endpoint with a video_id parameter to retrieve the transcript.
- Provides transcriptions for YouTube videos. - Simple HTTP API for easy integration. - Error handling for missing parameters and retrieval issues.
- Automatically generating subtitles for YouTube videos.
- Analyzing video content for research purposes.
- Creating searchable text from video content.
Add to your AI client
Use these steps to connect YouTube Transcript API in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"youtube-transcript-minhleathvn": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-youtube-transcript-minhleathvn"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"youtube-transcript-minhleathvn": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-youtube-transcript-minhleathvn"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"youtube-transcript-minhleathvn": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-youtube-transcript-minhleathvn"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"youtube-transcript-minhleathvn": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-youtube-transcript-minhleathvn"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"youtube-transcript-minhleathvn": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-youtube-transcript-minhleathvn"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"youtube-transcript-minhleathvn": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-youtube-transcript-minhleathvn"
]
}
}
}FAQ
Can I use this API for any YouTube video?
Yes! As long as you have the video ID, you can retrieve the transcript.
What happens if the video ID is missing?
The API will return an error message indicating the missing parameter.
Is there a limit to the number of requests I can make?
The API does not impose a strict limit, but be mindful of YouTube's API usage policies.