Skip to main content
Glama

mcp-server-youtube-transcript

by kimtaeyoon83

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 许可证。详情请参阅许可证文件。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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.

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

  1. 通过 Smithery 安装
    1. 成分
      1. 工具
    2. 主要特点
      1. 配置
        1. 通过工具安装
          1. Awesome-mcp-服务器
            1. 发展
              1. 先决条件
              2. 设置
              3. 测试
              4. 调试
            2. 错误处理
              1. 使用示例
                1. 安全注意事项
                  1. 执照

                    Related MCP Servers

                    • -
                      security
                      A
                      license
                      -
                      quality
                      A Model Context Protocol server that enables retrieval of transcripts from YouTube videos with language-specific support.
                      Last updated -
                      526
                      MIT License
                    • -
                      security
                      F
                      license
                      -
                      quality
                      A Model Context Protocol server that enables AI assistants to extract transcripts from YouTube videos, allowing AI to analyze and work with video content directly.
                      Last updated -
                      6
                      1
                      TypeScript
                    • -
                      security
                      -
                      license
                      -
                      quality
                      A Model Context Protocol server that enables access to YouTube video content through transcripts, translations, summaries, and subtitle generation in various languages.
                      Last updated -
                      Python
                      MIT License
                    • A
                      security
                      A
                      license
                      A
                      quality
                      A Model Context Protocol server that enables retrieval of transcripts from YouTube videos. This server provides direct access to video transcripts and subtitles through a simple interface, making it ideal for content analysis and processing.
                      Last updated -
                      1
                      258
                      10
                      TypeScript
                      MIT License
                      • Linux
                      • Apple

                    View all related MCP servers

                    MCP directory API

                    We provide all the information about MCP servers via our MCP API.

                    curl -X GET 'https://glama.ai/api/mcp/v1/servers/kimtaeyoon83/mcp-server-youtube-transcript'

                    If you have feedback or need assistance with the MCP directory API, please join our Discord server