yt-mcp-agent
Extracts YouTube video transcripts and generates content such as blog posts, video chapters, and social media posts.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@yt-mcp-agentSummarize this video: https://youtu.be/w-Ml3NivoFo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
yt-mcp-agent
A YouTube video agent built using a custom MCP server and OpenAI's Agent's SDK. It can extract video transcripts given link fetch specialized instructions for things like: writing blog posts, video chapters, and social posts.
Resources:
This example is a prelude to Cohort 7 of the AI Builders Bootcamp.
Requirements
Python 3.13+
OpenAI API key
uvpackage manager (recommended)
Related MCP server: YouTube Insights MCP Server
How to run this example
uv (recommended)
Clone the repository
git clone <repository-url> cd yt-mcp-agentInstall dependencies with uv
uv syncSet up your OpenAI API key
Create a
.envfile in the root directory:echo "OPENAI_API_KEY=your_api_key_here" > .envRun the agent
uv run main.pyInteract with agent
Once running, you can ask the agent to analyze YouTube videos. Try prompts like:
"Summarize this: https://youtu.be/N3vHJcHBS-w?si=aw8PV0acYHJGPy7R"
"Generate chapter timestamps with links"
"Write me a LinkedIn post about the video"
Base Python/pip
Clone the repository
git clone <repository-url> cd yt-mcp-agentCreate a virtual environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activateInstall dependencies
pip install -e .Set up your OpenAI API key
Create a
.envfile in the root directory:echo "OPENAI_API_KEY=your_api_key_here" > .envRun the agent
python main.pyInteract with agent
This server cannot be deployed
Maintenance
Related MCP Connectors
An MCP server that gives any LLM or agent clean YouTube transcripts on demand: a single video, a whole channel, or a playlist, plus AI cleanup of auto-generated captions. API-key auth, credit-based, same backend as the public v1 API. Get a free API key with 25 free credits at youtubetranscriptdownload.com/account.
MCP server for RiverScript, an AI transcription platform - fetches transcripts shared via a link.
YouTube transcripts, search, channel browsing, and playlists for AI agents via MCP.
Multimodal video analysis MCP — transcription, vision, and OCR for any video URL.
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP server that enables the extraction of transcripts and detailed metadata from YouTube videos. It allows users to retrieve video information like titles and descriptions, as well as transcripts with optional timestamps and language selection.2MIT
- FlicenseBqualityDmaintenanceAn MCP server that extracts transcripts, metadata, and summaries from YouTube videos across various URL formats including Shorts and standard links. It provides comprehensive video data and insights for analysis within MCP-compatible environments.3-
- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server agent that enables analysis of YouTube videos by extracting transcripts, generating summaries, and creating chapter timestamps. It allows users to interact with video content through natural language to perform tasks such as writing social media posts.Apache 2.0
- AlicenseAqualityBmaintenanceAn MCP server for intelligent YouTube video analysis that provides token-optimized summaries, sentiment analysis, and entity extraction from transcripts. It enables AI assistants to perform video reporting, channel monitoring, and comprehensive YouTube searches through structured data tools.1052Apache 2.0