Back to MCP directory
publicPublicdnsLocal runtime

YouTube Search

一个基于MCP协议的YouTube视频搜索服务端,提供视频搜索、信息获取和字幕提取功能。

article

README

🚀 基于 YouTube 搜索的 MCP 服务器

本项目是一个简单的 MCP(模型上下文协议)服务器,它提供了从 YouTube 视频搜索和检索信息的工具,可用于支持 MCP 协议的 AI 助手。

🚀 快速开始

服务器地址

http://127.0.0.1:8889/sse

✨ 主要特性

工具列表

  • youtube_search:可使用文本查询搜索 YouTube 视频。
  • youtube_get_video_info:能通过视频 ID 获取视频的详细信息。
  • youtube_get_subtitles:可获取英文或俄文字幕。

💻 使用示例

基础用法

该服务器有两种运行模式:stdiosse(Server-Sent Events),默认使用 sse 模式。以下是启动服务器的命令示例:

go_mcp_server_youtube_search -t sse -h 0.0.0.0 -p 8889
# 或
go_mcp_server_youtube_search -t stdio
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client