这是一个模型上下文协议(MCP)服务器,提供工具和提示以处理(Shaw Talebi的)YouTube视频,包括字幕提取、章节生成和博客文章创建。
准备用于 AgentCon 2025 - 达拉斯 工作坊。
资源:
此MCP服务器使AI助手能够:
# Mac/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
uv sync
uv run mcp dev main.py
{
"mcpServers": {
"YT-MCP": {
"command": "/Users/shawhin/.local/bin/uv", # 替换为您的uv安装全局路径
"args": [
"--directory",
"/Users/shawhin/Documents/repos/yt-mcp/", # 替换为仓库全局路径
"run",
"main.py"
]
}
}
}
fetch_youtube_transcript: 从YouTube URL中提取带有时间戳的格式化字幕yt-library://: 访问Shaw Talebi的YouTube频道库,专注于人工智能和创业主题create_chapters_instructions: 生成有意义的视频章节的详细指南write_blog_instructions: 将字幕转换成专业博客文章的指示yt-mcp/
├── main.py # MCP服务器实现
├── prompts/
│ ├── create_chapters.md # 章节生成指南
│ └── write_blog.md # 博客写作指示
├── resources/
│ └── videos.csv # 视频库数据库
├── yt-mcp-example.ipynb # 使用示例
├── pyproject.toml # 项目配置
└── requirements.txt # 依赖项