Enables analysis of YouTube videos to extract transcripts, generate summaries, create chapter timestamps, and create content such as social media posts based on video data.
Click on "Install 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., "@YouTube MCP AgentSummarize https://www.youtube.com/watch?v=dQw4w9WgXcQ and generate chapter timestamps."
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.
YouTube MCP Agent
An MCP (Model Context Protocol) server agent for analyzing YouTube videos, built with OpenAI's Agent SDK. This tool allows you to extract transcripts, generate summaries, create chapter timestamps, and write content based on YouTube videos.
Requirements
Python 3.13+
OpenAI API key
uvpackage manager (recommended)
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: "
"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 the agent
Once running, you can interact with the agent via the CLI.