Back to MCP directory
publicPublicdnsLocal runtime

mcp-youtube-sheets

一个MCP服务器工具,提供YouTube视频搜索并自动将结果保存至Google Sheets的功能

article

README

🚀 YouTube 到 Google 表格 MCP 服务器

本 MCP 服务器具备搜索 YouTube 视频的功能,并能自动将搜索结果保存至 Google 表格。它专为 Claude 及其他支持 Model Context Protocol 的 AI 助手量身打造。

English | 中文

✨ 主要特性

  • 借助 YouTube Data API v3 搜索 YouTube 视频。
  • 自动将搜索结果保存到 Google 表格。
  • 搜索参数可配置,如查询关键词、最大结果数等。
  • 搜索结果包含视频标题、URL、频道名称以及发布日期。

📦 安装指南

npm install @rikukawa/youtube-sheets-server

先决条件

  1. YouTube Data API v3 设置
    • 访问 Google Cloud Console
    • 创建新项目。
    • 启用 YouTube Data API v3。
    • 创建一个 API 密钥。
  2. Google 表格 API 设置
    • 在同一项目中,启用 Google 表格 API。
    • 创建服务账户。
    • 下载服务账户密钥(JSON 格式)。
    • 将目标 Google 表格与服务账户电子邮件共享。

🔧 配置

将服务器添加到您的 MCP 设置文件:

{
  "mcpServers": {
    "youtube-sheets": {
      "command": "node",
      "args": ["path/to/youtube-sheets-server/build/index.js"],
      "env": {
        "YOUTUBE_API_KEY": "your-youtube-api-key",
        "SPREADSHEET_ID": "your-spreadsheet-id"
      },
      "disabled": false,
      "alwaysAllow": []
    }
  }
}

💻 使用示例

基础用法

您可以让 AI 助手搜索带有“ChatGPT 使用”字样的 YouTube 视频并获取 10 个视频,按此方式进行使用。

输出格式

工具会将以下信息保存到您的 Google 表格中:

  • 视频标题
  • 视频 URL
  • 频道名称
  • 发布日期

📄 许可证

本项目采用 MIT 许可证。

👨‍💻 作者

Riku Kawashima

🔗 仓库

GitHub 仓库

📦 NPM 包

@rikukawa/youtube-sheets-server

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