mcpField
Y
Yutu

Yutu

ローカル
github.com/eat-pray-aiソーシャルメディア7101 日前に更新

Yutu について

Yutuは、YouTubeのワークフローを自動化するコマンドラインツール、MCPサーバー、AIエージェントです。コンテンツ管理と最適化に対応し、エージェントモードとスキルも備えています。

主な機能

  1. 01動画のアップロードと最適化
  2. 02コメントと再生リストの管理
  3. 03チャンネルのブランド設定
  4. 04コンテンツの取得・作成・更新・削除
  5. 05YouTubeのワークフローとSEOの指針

活用シーン

  1. 01動画を自動アップロードしてメタデータを更新
  2. 02再生リストの整理とコメントの管理
  3. 03AIクライアント経由でチャンネルコンテンツを管理

MCP 対応

Yutuは標準入出力またはHTTP経由でMCPサーバーとして動作します。Google OAuthの認証情報とキャッシュ済みトークンを使い、MCPクライアントにYouTube操作を提供します。

設定

ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。

mcp.json · 共通設定
{
"mcpServers": {
"yutu": {
"command": "npx",
"args": [
"-y",
"@eat-pray-ai/yutu"
],
"env": {
"YUTU_CREDENTIAL": "<YUTU_CREDENTIAL>",
"YUTU_CACHE_TOKEN": "<YUTU_CACHE_TOKEN>",
"YUTU_LOG_LEVEL": "<YUTU_LOG_LEVEL>"
}
}
}
}
起動コマンドnpx -y @eat-pray-ai/yutu
設定が必要な環境変数
YUTU_CREDENTIALシークレットGCP project credential for yutu, Base64 encoded JSON or path to JSON file
YUTU_CACHE_TOKENシークレットYouTube authentication token, Base64 encoded JSON or path to JSON file
YUTU_LOG_LEVELLog level

ローカルサーバーにはマシン上の実行環境(Node.js 18 以上など)が必要です。設定ファイルの場所はクライアントごとに異なります。

パッケージ
npm@eat-pray-ai/yutu0.11.0

ツール

74

掲載時のツール一覧 · 2 週間前に更新

パラメーター型必須説明
partsarrayいいえレスポンスに含める部分
outputenumいいえjson|yaml|silentjson | yaml | silent
confirmedbooleanいいえ操作を確認する
subject_idstringはい報告対象の ID
abuse_typesarrayはい不正利用の種類の ID(例:スパム、嫌がらせ)
descriptionstringいいえ不正利用の内容
subject_urlstringいいえ報告対象の URL
subject_type_idstringはい対象の種類の ID(例:動画、コメント、チャンネル)
related_entity_idstringいいえ関連エンティティの ID

詳細

Yutu

yutu

Static Badge GitHub License Go Reference Go Coverage

GitHub Repo stars GitHub Downloads GitHub Actions build Status GitHub Actions CodeQL Status GitHub Actions test Status LINUX DO

GitHub Release Homebrew Formula Version WinGet Package Version npm Version

yutuは、YouTube のワークフローを自動化する CLI、MCP サーバー、AI エージェントです。動画のアップロードや最適化から、コメント、プレイリスト、チャンネルのブランディング管理までを自動化します。また、AI エージェント向けのスキルも提供しており、手作業を減らしながら、視聴回数、クリック率、視聴者エンゲージメントを高められます。中文文档

mcp demo

目次

前提条件

Google Cloud Platform のアカウントが必要です。以下を設定してください。

  1. GCP プロジェクトを作成し、APIs & Services -> Enable APIs and services で次の API を有効にします。

  2. OAuth 認証情報を作成します。

    • APIs & Services -> OAuth consent screen に移動し、自分をテストユーザーとして同意画面を作成します
    • Credentials -> Create Credentials -> OAuth Client ID に移動し、Desktop app を選択します
    • 認証情報ファイルをダウンロードして client_secret.json という名前で保存します。ファイルの内容は次のようになります
    {
      "installed": {
        "client_id": "11181119.apps.googleusercontent.com",
        "project_id": "yutu-11181119",
        "auth_uri": "https://accounts.google.com/o/oauth2/auth",
        "token_uri": "https://oauth2.googleapis.com/token",
        "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
        "client_secret": "XXXXXXXXXXXXXXXX",
        "redirect_uris": [
          "http://localhost"
        ]
      }
    }
    
  3. 認証します。

    yutu auth --credential client_secret.json
    

    ブラウザーウィンドウが開き、YouTube へのアクセス許可を求められます。許可すると、トークンが youtube.token.json に保存されます。

    {
      "access_token": "ya29.XXXXXXXXX",
      "token_type": "Bearer",
      "refresh_token": "1//XXXXXXXXXX",
      "expiry": "2024-05-26T18:49:56.1911165+08:00",
      "expires_in": 3599
    }
    

デフォルトでは、yutu は現在のディレクトリから client_secret.json と youtube.token.json を読み込みます。--credential/-c と --cacheToken/-t フラグは auth サブコマンドでのみ使用できます。すべてのサブコマンドでデフォルトのパスを変更するには、次の環境変数を設定してください。

グローバル環境変数
変数説明デフォルト
YUTU_CREDENTIALOAuth クライアントシークレットのパス、Base64、または JSONclient_secret.json
YUTU_CACHE_TOKENキャッシュされた OAuth トークンのパス、Base64、または JSONyoutube.token.json
YUTU_ROOTファイル解決のルートディレクトリ現在の作業ディレクトリ
YUTU_LOG_LEVELログレベル:DEBUG、INFO、WARN、ERRORINFO

インストール

AI エージェントを使用している場合は、以下のプロンプトをコピーして貼り付け、インストールを完了してください。

Install and configure yutu by following https://raw.githubusercontent.com/eat-pray-ai/yutu/main/internal/tools/skillgen/setup.md

yutu はリリースページから直接ダウンロードするか、お好みの方法でインストールできます。

GitHub Actions

yutu には、汎用向けと YouTube への動画アップロード向けの 2 つのアクションがあります。詳しくは youtube-action と youtube-uploader を参照してください。

Node.js
❯ npm i -g @eat-pray-ai/yutu
Docker
# GitHub Container Registry (GHCR)
❯ docker pull ghcr.io/eat-pray-ai/yutu:latest
# or Docker Hub
❯ docker pull eatprayai/yutu:latest

❯ docker run --rm ghcr.io/eat-pray-ai/yutu:latest
# make sure client_secret.json is in the current directory
❯ docker run --rm -it -u $(id -u):$(id -g) -v $(pwd):/app -p 8216:8216 ghcr.io/eat-pray-ai/yutu:latest
Gopher
❯ go install github.com/eat-pray-ai/yutu@latest
Linux
❯ curl -sSfL https://raw.githubusercontent.com/eat-pray-ai/yutu/main/scripts/install.sh | bash
macOS

Homebrew🍺(推奨)を使用して yutu をインストールするか、シェルスクリプトを実行します。

❯ brew install yutu

# or
❯ curl -sSfL https://raw.githubusercontent.com/eat-pray-ai/yutu/main/scripts/install.sh | bash
Windows
❯ winget install yutu
インストールの検証

関連付けられた暗号署名済みの証明書を使用して、yutu の整合性と出所を検証します。

# Docker
❯ gh attestation verify oci://ghcr.io/eat-pray-ai/yutu:latest --repo eat-pray-ai/yutu
❯ gh attestation verify oci://docker.io/eatprayai/yutu:latest --repo eat-pray-ai/yutu

# Linux and macOS(if installed using shell script)
❯ gh attestation verify $(which yutu) --repo eat-pray-ai/yutu

# Windows
❯ gh attestation verify $(where.exe yutu.exe) --repo eat-pray-ai/yutu

エージェント

yutu は、YouTube のワークフローを自動化するエージェントモード(Miffy)を提供します。このエージェントは、YouTube コンテンツの取得、作成、更新、削除が可能で、YouTube の成長戦略と SEO に関する専門知識を備えています。

# Gemini(compatible) (default)
❯ yutu agent --provider google --model gemini-3.8-flash --api-key "YOUR_KEY"
❯ yutu agent --provider google --model gemini-3.8-flash --api-key "YOUR_KEY" --base-url "https://custom.endpoint.com/"
# OpenAI(compatible) (OpenAI, DeepSeek, Ollama, vLLM, etc.)
❯ yutu agent --provider openai --model gpt-5.6-terra --api-key "YOUR_KEY"
❯ yutu agent --provider openai --model deepseek-flash --api-key "YOUR_KEY" --base-url "https://api.deepseek.com/"
# web mode with sub-launchers
❯ yutu agent --args "web api a2a webui" --api-key "YOUR_KEY"
# show available launcher args
❯ yutu agent --args ""
エージェントのフラグ
フラグ説明デフォルト
-a, --argsランチャーの引数を単一の文字列で指定しますconsole
-p, --providerLLM プロバイダー:Gemini(互換)の場合は google、OpenAI(互換)の場合は openaigoogle
-m, --modelモデル名gemini-3.8-flash
--api-keyモデルプロバイダーの API キー
--base-urlモデルプロバイダーの API エンドポイントのベース URL
-i, --instruction組み込みのエージェント指示を上書きしますINSTRUCTION.md

MCP サーバー

yutu を MCP サーバーとして使用する前に、yutu がインストールされていること(インストールのセクションを参照)、有効な client_secret.json ファイルと youtube.token.json ファイルがあること(前提条件のセクションを参照)を確認してください。

以下の手順に従って、お好みのツールで yutu を MCP サーバーとして設定できます。

Claude Code
# Stdio mode
❯ claude mcp add --env YUTU_CREDENTIAL=/absolute/path/to/client_secret.json \
  --env YUTU_CACHE_TOKEN=/absolute/path/to/youtube.token.json \
  yutu -- yutu mcp

# HTTP mode (start the server first: yutu mcp --mode http)
❯ claude mcp add --transport http \
  --client-id YOUR_CLIENT_ID.apps.googleusercontent.com \
  --client-secret \
  yutu http://localhost:8216/mcp
Codex
# Stdio mode
❯ codex mcp add --env YUTU_CREDENTIAL=/absolute/path/to/client_secret.json \
  --env YUTU_CACHE_TOKEN=/absolute/path/to/youtube.token.json \
  yutu -- yutu mcp

# HTTP mode (start the server first: yutu mcp --mode http)
❯ codex mcp add --url http://localhost:8216/mcp \
  --oauth-client-id YOUR_CLIENT_ID.apps.googleusercontent.com \
  yutu
手動設定(VS Code、Cursor、OpenCode など)

以下を MCP の設定に追加してください。YUTU_CREDENTIAL と YUTU_CACHE_TOKEN の値を、ローカルマシン上の正しいパスに置き換えてください。

{
  "yutu": {
    "type": "stdio",
    "command": "yutu",
    "args": [
      "mcp"
    ],
    "env": {
      "YUTU_CREDENTIAL": "/absolute/path/to/client_secret.json",
      "YUTU_CACHE_TOKEN": "/absolute/path/to/youtube.token.json"
    }
  }
}

スキル

yutu は、YouTube のドメイン知識、一般的なワークフロー、SEO のベストプラクティスを AI エージェントに提供する統合型スキルを備えています。動画、再生リスト、コメント、チャンネル、字幕、登録などを扱えます。

❯ npx skills add eat-pray-ai/yutu --skill youtube

サポートされている操作の全一覧については、skills/youtube/SKILL.mdを参照してください。

使い方

❯ yutu
yutu is a CLI, MCP server, and AI agent that automates your YouTube workflows from the terminal or any AI client.

Environment variables:
  YUTU_CREDENTIAL    Path/Base64/JSON of OAuth client secret (default: client_secret.json)
  YUTU_CACHE_TOKEN   Path/Base64/JSON of cached OAuth token (default: youtube.token.json)
  YUTU_ROOT          Root directory for file resolution (default: current working directory)
  YUTU_LOG_LEVEL     Log level: DEBUG, INFO, WARN, ERROR (default: INFO)

Usage:
  yutu [flags]
  yutu [command]

Available Commands:
  abuseReport            Manage YouTube abuse reports
  activity               Manage YouTube activities
  agent                  Start an agent to automate YouTube workflows
  auth                   Authenticate with YouTube APIs
  caption                Manage YouTube video captions
  channel                Manage YouTube channels
  channelBanner          Manage YouTube channel banners
  channelSection         Manage YouTube channel sections
  comment                Manage YouTube comments
  commentThread          Manage YouTube comment threads
  completion             Generate the autocompletion script for the specified shell
  help                   Help about any command
  i18nLanguage           Manage YouTube i18n languages
  i18nRegion             Manage YouTube i18n regions
  liveBroadcast          Manage YouTube live broadcasts
  liveChatBan            Manage YouTube live chat bans
  liveChatMessage        Manage YouTube live chat messages
  liveChatModerator      Manage YouTube live chat moderators
  liveStream             Manage YouTube live streams
  mcp                    Start MCP server
  member                 Manage YouTube channel members
  membershipsLevel       Manage YouTube membership levels
  playlist               Manage YouTube playlists
  playlistImage          Manage YouTube playlist images
  playlistItem           Manage YouTube playlist items
  search                 Manage YouTube search
  subscription           Manage YouTube subscriptions
  superChatEvent         Manage YouTube Super Chat events
  thirdPartyLink         Manage YouTube third-party links
  thumbnail              Manage YouTube video thumbnails
  version                Show the version of yutu
  video                  Manage YouTube videos
  videoAbuseReportReason Manage YouTube video abuse report reasons
  videoCategory          Manage YouTube video categories
  watermark              Manage YouTube watermarks

Flags:
  -h, --help   help for yutu

Use "yutu [command] --help" for more information about a command.

機能

詳細については、FEATURES.mdを参照してください。

コントリビューション

詳細については、CONTRIBUTING.mdを参照してください。

コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。