yt description mcp
A Model Context Protocol server that enables AI assistants to extract transcripts from YouTube videos, allowing AI to analyze and work with video content directly.
A Model Context Protocol server that enables AI assistants to extract transcripts from YouTube videos, allowing AI to analyze and work with video content directly.
A Model Context Protocol (MCP) server that enables AI assistants to extract transcripts from YouTube videos. Built for integration with Cursor and Claude Desktop, this tool allows AI to analyze and work with YouTube video content directly.
Clone the repository:
git clone https://github.com/yourusername/yt-mcp.git
cd yt-mcp
Install dependencies:
pnpm install
Build the project:
pnpm run build
youtube-transcript
command
node /absolute/path/to/yt-mcp/build/index.js
Add this configuration to your Claude Desktop config:
{
"mcpServers": {
"youtube-transcript": {
"command": "node",
"args": ["/absolute/path/to/yt-mcp/build/index.js"]
}
}
}
Once configured, the AI can extract transcripts from YouTube videos by calling the tool with a video URL. Example:
// The AI will use this format internally
const transcript = await extractTranscript({
input: "https://www.youtube.com/watch?v=VIDEO_ID"
});
The server is built using: - @modelcontextprotocol/sdk - For MCP implementation - youtube-transcript - For transcript extraction - TypeScript - For type safety and better development experience
Common issues and solutions:
Check if the video is publicly accessible
"No transcript available" error
Try a different video to confirm the tool is working
Build errors
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
MIT