YouTube Transcript Server

by williamvd4
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Enables retrieval of transcripts from YouTube videos, supporting multiple URL formats, language-specific transcript retrieval, and providing detailed metadata in responses.

YouTube 转录服务器

一个模型上下文协议服务器,支持检索 YouTube 视频的文字记录。该服务器通过简单的界面直接访问视频字幕。

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 YouTube 成绩单服务器:

npx -y @smithery/cli install @kimtaeyoon83/mcp-server-youtube-transcript --client claude

成分

工具

  • 获取成绩单
    • 从 YouTube 视频中提取文字记录
    • 输入:
      • url (字符串,必需):YouTube 视频 URL 或视频 ID
      • lang (字符串,可选,默认值:“en”):成绩单的语言代码(例如,'ko','en')

主要特点

  • 支持多种视频 URL 格式
  • 特定语言的成绩单检索
  • 响应中的详细元数据

配置

要与 Claude Desktop 一起使用,请添加此服务器配置:

{ "mcpServers": { "youtube-transcript": { "command": "npx", "args": ["-y", "@kimtaeyoon83/mcp-server-youtube-transcript"] } } }

通过工具安装

mcp-get用于安装和管理模型上下文协议 (MCP) 服务器的命令行工具。

npx @michaellatman/mcp-get@latest install @kimtaeyoon83/mcp-server-youtube-transcript

Awesome-mcp-服务器

awesome-mcp-servers精选的优秀模型上下文协议 (MCP) 服务器列表。

发展

先决条件

  • Node.js 18 或更高版本
  • npm 或 yarn

设置

安装依赖项:

npm install

构建服务器:

npm run build

对于使用自动重建的开发:

npm run watch

测试

npm test

调试

由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们建议使用 MCP Inspector 进行开发:

npm run inspector

错误处理

服务器针对常见场景实现了强大的错误处理:

  • 视频 URL 或 ID 无效
  • 无法获取成绩单
  • 语言可用性问题
  • 网络错误

使用示例

  1. 通过视频网址获取成绩单:
await server.callTool("get_transcript", { url: "https://www.youtube.com/watch?v=VIDEO_ID", lang: "en" });
  1. 通过视频ID获取成绩单:
await server.callTool("get_transcript", { url: "VIDEO_ID", lang: "ko" });
  1. 如何在 Claude 桌面应用程序中提取 YouTube 字幕
chat: https://youtu.be/ODaHJzOyVCQ?si=aXkJgso96Deri0aB Extract subtitles

安全注意事项

服务器:

  • 验证所有输入参数
  • 优雅地处理 YouTube API 错误
  • 实现成绩单检索超时
  • 提供详细的错误消息以进行故障排除

执照

此 MCP 服务器采用 MIT 许可证。详情请参阅许可证文件。

-
security - not tested
A
license - permissive license
-
quality - not tested

模型上下文协议服务器,支持检索 YouTube 视频的文字记录并提供特定语言的支持。

  1. Installing via Smithery
    1. Components
      1. Tools
    2. Key Features
      1. Configuration
        1. Install via tool
          1. Awesome-mcp-servers
            1. Development
              1. Prerequisites
              2. Setup
              3. Testing
              4. Debugging
            2. Error Handling
              1. Usage Examples
                1. Security Considerations
                  1. License
                    ID: gf069c0gad