CY

cottongeeks/ytt-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

74 stars 4 forks 质量 50 趋势 14MIT

MCP服务器用于获取YouTube文字稿

概览

MCP服务器用于获取YouTube视频的文字稿。 最方便的安装和运行方式是先用 uv,然后用 uvx 调用该包 这将生成一个本地主机的URL,用于检查和测试服务器。 进入“开发者设置”→,然后点击编辑配置。这样就能在默认编辑器中打开claude-desktop-config.json文件。添加如下内容 重启Claude配置,试试下面截图所示的服务器 如果你用的是Raycast,可以通过调用MCP扩展中的“安装服务器”命令来安装MCP服务器。 之后你可以把MCP服务器称为@youtube-transcript并与它交互。你也可以在Raycast AI命令中用它搭配提示词。举个例子,这里有我用来提取并总结剪贴板里一个YouTube网址的提示 https://github.com/user-attachments/assets/e6530768-3483-4cb9-988a-7ec7a999d505

概述(AI 翻译)

MCP服务器用于获取YouTube视频的文字稿。

安装与运行

最方便的安装和运行方式是使用 uv,然后使用 uvx 调用该包。

使用 MCP Inspector(仅用于开发/调试/测试)

这将生成一个本地主机的URL,用于检查和测试服务器。

克劳德桌面

进入_Settings_→Developer,然后点击_Edit Config_。这样就能在默认编辑器中打开claude-desktop-config.json文件。请进行以下添加

重启Claude配置,试试下面截图所示的服务器

雷卡斯特

如果你用的是Raycast,可以通过调用MCP扩展中的_Install Server_命令来安装MCP服务器。

之后你可以将MCP服务器称为@youtube-transcript并与之交互。你也可以在Raycast AI命令中用它并提示。例如,这里有一个我用来提取并总结剪贴板中YouTube URL的提示

请看下面的视频演示

https://github.com/user-attachments/assets/e6530768-3483-4cb9-988a-7ec7a999d505

本页由 AI 翻译,技术细节请以原文为准。

README

ytt-mcp: YouTube Transcript MCP Server

MCP Server to fetch transcripts for YouTube videos.

Installing and Running

The most convenient way to install and run is to use uv and then invoke the package using uvx

Using MCP Inspector (for development/debugging/testing only)

uv run fastmcp dev ytt_mcp.py

This will generate a localhost URL that can be used to examine and test out the server.

Claude Desktop

Go to Settings → Developer, and then click on Edit Config. This will open the claude-desktop-config.json file in your default editor. Make the following addition

{
  "mcpServers": {
    ……
    "ytt-mcp": {
      "command": "uvx",
      "args": ["ytt-mcp"]
    }
  }
}

Relaunch Claude config and try out the server as shown in the screenshot below

Raycast

If you are using Raycast, you can install the MCP server by invoking the Install Server command from the MCP extension.

After that you can refer to the MCP server as @youtube-transcript and interact with it. You can also use it in a Raycast AI Command with a prompt. For example, here is a prompt I use to extract and summarize a YouTube URL in the clipboard

@youtube-transcript fetch the Youtube transcript of the video: {clipboard | raw}

Comprehensively summarize the transcript with the following format:
"""
### Key Takeaways

- 
"""

### Theme Wise Breakdown


Some rules to follow precisely:
- ALWAYS capture the perspective and POV of the author
- NEVER come up with additional information

See video demo below

https://github.com/user-attachments/assets/e6530768-3483-4cb9-988a-7ec7a999d505

在 GitHub 查看完整 README

安装

uvx ytt-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { …<rest of the config>… "ytt-mcp": { "command": "uvx", "args": ["ytt-mcp"] } } }