Back to MCP directory
publicPublicdnsLocal runtime

YouTube to Sheets

一个连接YouTube与Google Sheets的MCP服务工具,支持视频搜索并自动保存结果到表格

article

README

🚀 YouTube 到 Google Sheets MCP 服务器

本 MCP 服务器可搜索 YouTube 视频,并将搜索结果自动保存至 Google Sheets,旨在与 Claude 及其他支持 Model Context Protocol 的 AI 助手协同使用。

English | 日本語

✨ 主要特性

  • 借助 YouTube Data API v3 搜索 YouTube 视频。
  • 自动将搜索结果保存到 Google Sheets。
  • 搜索参数可配置,如查询内容、最大结果数。
  • 搜索结果包含视频标题、URL、频道名称和发布日期。

📦 安装指南

npm install @rikukawa/youtube-sheets-server

📋 先决条件

  1. YouTube Data API v3 设置
    • 访问 Google Cloud Console
    • 创建新项目。
    • 启用 YouTube Data API v3。
    • 创建一个 API 密钥。
  2. Google Sheets API 设置
    • 在同一项目中,启用 Google Sheets 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