Add your description here
Project description
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)
How to run this example
uv (recommended)
-
Clone the repository
git clone <repository-url> cd yt-mcp-agent
-
Install dependencies with uv
uv sync -
Set up your OpenAI API key
Create a
.envfile in the root directory:echo "OPENAI_API_KEY=your_api_key_here" > .env
-
Run the agent
uv run main.py
-
Interact 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-agent
-
Create a virtual environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install 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" > .env
-
Run the agent
python main.py -
Interact with agent
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_shawhint_yt_mcp_agent-0.1.0.tar.gz.
File metadata
- Download URL: iflow_mcp_shawhint_yt_mcp_agent-0.1.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2578030f2ff8c57068e720b2311c083db6f8240a368072b23e5439de3986df7b
|
|
| MD5 |
1026d072e0e7f7ab1b7b064529befbd5
|
|
| BLAKE2b-256 |
1aef5e76877ee6a5a213992b1891c4d75bc9a012e7dd3179dc61b20136f69636
|
File details
Details for the file iflow_mcp_shawhint_yt_mcp_agent-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_shawhint_yt_mcp_agent-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ae311d1b49a7e7b0a9e3b5d7be363ca6fefb0f5a56a14341417c47287eab6b2
|
|
| MD5 |
691fc199486615a18cbdd7c30a7177d9
|
|
| BLAKE2b-256 |
8d1012a7e037b2c2a5dbceab413c3a0b3c5ad02a81c226db1d2908c8661ba174
|