YouTube视频转录服务

一个提供YouTube视频转录提取工具的远程MCP服务器,支持OAuth 2.0认证,适用于内容生成和自动化处理场景。

  • by Entropic-group
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 Entropic-group/mcp-test

使用说明

(远程)YouTube MCP服务器

一个远程MCP(模型上下文协议)服务器,为YouTube视频转录提取工具提供OAuth身份验证。它包括通过Auth0进行OAuth 2.0身份验证,与MCP客户端兼容,包括ChatGPT和Claude。

资源

快速开始

  1. 克隆存储库
git clone [<repository-url>](https://github.com/ShawhinT/yt-mcp-remote.git)
cd yt-mcp-remote
  1. 安装依赖项 (要求Python>=3.13)
uv sync
  1. 在.env中配置环境变量
AUTH0_DOMAIN=your-auth0-domain
AUTH0_AUDIENCE=your-api-identifier # same as RESOURCE_SERVER_URL in this example
RESOURCE_SERVER_URL=<your-server-public-url>/mcp
  1. 运行服务器
uv run python main.py

服务器在上运行 http://0.0.0.0:8000/mcp

MCP工具

  • fetch_video_transcript(url) -提取并格式化YouTube视频转录本
  • fetch_instructions(prompt_name) -获取写作模板(write_blog_post, write_social_post, write_video_chapters)

技术栈

  • FastMCP-MCP服务器框架
  • 铁路-托管远程服务器
  • Auth0-OAuth身份验证
  • youtube转录api-转录提取
  • uv-Python依赖管理