
YouTube Translate
io.github.brianshin22由 GitHub 账号 brianshin22 发布v0.2.1更新于 Oct 29, 2026
Transcripts, translations, summaries, subtitles, and search for public YouTube videos.
概览
托管式 MCP 服务器,让助手获取公开 YouTube 视频的字幕文本、翻译、字幕文件、摘要以及视频内搜索。
- 可以做什么
- 提交 YouTube 视频链接并查询处理任务状态
- 获取纯文本或带时间戳的字幕文本
- 将字幕文本翻译成其他语言
- 生成翻译后的 SRT 或 VTT 字幕文件
- 生成短、中、长三种长度的视频摘要
- 在视频内检索片段,返回时间戳与位置
- 适用场景
- 适合让助手处理公开 YouTube 视频的口语内容:总结演讲、翻译或制作字幕、定位某个具体片段而无需观看整段视频。长视频可能因工具调用默认约 75 秒超时而需要重试。
- 运行要求
- 远程端点 api.youtubetranslate.com,使用 streamable HTTP;需通过 OAuth 关联账号(PKCE、短期令牌),或以 X-API-Key 请求头提供账号自有的 API 密钥。若本地以 stdio 运行,则需要 Python 3.12 及以上和 YOUTUBE_TRANSLATE_API_KEY 环境变量,Docker 可选。
安装
在 SourceWeft 中
- 打开 控制台中的 YouTube Translate,将其添加到工作区。
- 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.brianshin22%2Fyoutube-translate/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。
{
"mcpServers": {
"youtube-translate": {
"type": "http",
"url": "https://api.youtubetranslate.com/mcp"
}
}
}README
YouTube Translate MCP
A Model Context Protocol (MCP) server for accessing the YouTube Translate API, allowing you to obtain transcripts, translations, and summaries of YouTube videos.
Features
- Get transcripts of YouTube videos
- Translate transcripts to different languages
- Generate subtitles in SRT or VTT format
- Create summaries of video content
- Search for specific content within videos
Hosted remote MCP
Production endpoint: https://api.youtubetranslate.com/mcp using streamable HTTP.
Preferred authentication is OAuth. The server returns a protected-resource discovery challenge, and the API provides public-client registration, S256 PKCE, owner consent, short-lived access tokens, refresh rotation, and revocation. Send Authorization: Bearer <access token> after linking your account.
For legacy clients, send an account-owned user key on every request:
For local stdio, YOUTUBE_TRANSLATE_API_KEY remains supported. Every hosted request is authenticated before tool discovery or invocation, and the transport is stateless. No shared administrative credential is used. The account page provides a disconnect action that revokes an assistant's token family.
Tools
start_video: queue a YouTube URL and return a job ID.get_video_status: check processing state by job ID or YouTube ID.get_transcript: return text or timestamped segments.get_translation: request and return a translated transcript.get_subtitles: generate and return translated SRT or VTT.get_summary: generate short, medium, or long summaries.search_video: find passages with global positions and timestamps.
High-level tools wait up to TOOL_TIMEOUT_SECONDS (75 by default). Longer videos return a processing message and should be retried by the agent.
Run remotely
MCP_ALLOWED_HOSTS must include the public hostname used by the reverse proxy. Requests without X-API-Key are rejected.
ChatGPT and Claude
Use the hosted URL with OAuth where the client supports it. Account-owned API-key headers remain an alternative. The production OAuth flow and MCP invocation have been verified with an outside client, but not through ChatGPT's or Claude's own connection UI. Google account signup still needs this application's configured OIDC client. Public directory review and submission are not complete. Do not promise in-chat purchase: current ChatGPT plugin rules prohibit selling digital credits through the plugin.
Installation
Installing via Smithery
To install youtube-translate-mcp for Claude Desktop automatically via Smithery:
Installing Manually
This package requires Python 3.12 or higher:
Or install from source:
Usage
To run the server:
Docker
You can also run the server using Docker:
Environment Variables
YOUTUBE_TRANSLATE_API_KEY: Required. Your API key for accessing the YouTube Translate API.
Deployment with Smithery
This package includes a smithery.yaml file for easy deployment with Smithery.
To deploy, set the YOUTUBE_TRANSLATE_API_KEY configuration parameter to your YouTube Translate API key.
Development
Prerequisites
- Python 3.12+
- Docker (optional)
Setup
Testing with Claude Desktop
To test with Claude Desktop (macOS/Windows only), you'll need to add your server to the Claude Desktop configuration file located at ~/Library/Application Support/Claude/claude_desktop_config.json.
Method 1: Local Development
Use this method if you want to test your local development version:
Make sure to replace /ABSOLUTE/PATH/TO/youtube-translate-mcp with the actual path to your project directory.
Method 2: Docker-based Testing
If you prefer to test using Docker (recommended for more reproducible testing):
Replace YOUR_API_KEY with your actual YouTube Translate API key.
For more information on using MCP servers with Claude Desktop, see the MCP documentation.
Debugging
- The normal MCP Inspector has a built in timeout for MCP tool calls, which is generally too short for these video processing calls (as of March 13, 2025). Better to use Claude Desktop and look at the MCP logs from Claude at ~/Library/Logs/Claude/mcp-server-{asfasf}.log.
- Can do tail -f {log-file}.log to follow as you interact with Claude.
Directory submissions and launch learnings
See submission/README.md for the ChatGPT review status, Claude preparation, exact findings and fixes, evidence, and remaining steps. The cross-product submission playbook captures reusable requirements and failure modes for future services.
License
MIT
来源:README.md,提交 75ca25b
工具
0版本历史
1- v0.2.1最新Oct 29, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分