youtube-automation

Social mediaDeveloper tools

CLI, MCP server, and AI Agent to automate YouTube workflows.

Your AI app calls the youtube-automation MCP server, which does the social media and developer tools work and sends the result back to the chat.

About youtube-automation

youtube-automation is a community MCP server from eat-pray-ai, filed in our directory under social media and developer tools. CLI, MCP server, and AI Agent to automate YouTube workflows.

youtube-automation runs on your own machine: your AI app starts it with the command npx -y @eat-pray-ai/yutu@0.11.1 mcp and talks to it over standard input and output. It needs YUTU_CREDENTIAL, YUTU_CACHE_TOKEN, YUTU_CREDENTIAL and YUTU_CACHE_TOKEN set before youtube-automation starts.

youtube-automation is listed in the official MCP registry as io.github.eat-pray-ai/yutu, version 0.11.1.

At a glance

Publisher
eat-pray-ai (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @eat-pray-ai/yutu
Written in
Go
License
Apache-2.0
GitHub stars
741
Official MCP registry
io.github.eat-pray-ai/yutu

How to set up youtube-automation

  1. Install Node.js on the machine that runs your AI app, because youtube-automation starts with npx and downloads its package on first run.
  2. Create YUTU_CREDENTIAL, YUTU_CACHE_TOKEN, YUTU_CREDENTIAL and YUTU_CACHE_TOKEN for youtube-automation in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add youtube-automation to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the youtube-automation tools to confirm the connection.
  5. Run one read-only task with youtube-automation first, and keep your app asking before each tool call until the results look right.

youtube-automation compared with similar servers

  • XActions by nirholas has fewer GitHub stars than youtube-automation (676 against 741); both are community servers, and both run locally.
  • Reddit MCP Buddy by karanb192 has more GitHub stars than youtube-automation (920 against 741); both are community servers, and both run locally.
  • YouTube by ZubeidHendricks has fewer GitHub stars than youtube-automation (615 against 741); both are community servers, and both run locally.

Before you connect youtube-automation

  • Give youtube-automation its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each youtube-automation tool call until you trust what it does with them.
  • Treat text that youtube-automation fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for youtube-automation on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for youtube-automation

How marketing and sales teams put youtube-automation to work, by company size. Pick the size closest to yours and start youtube-automation on one use case.

Small business

  • A solo marketer can use youtube-automation to draft a week of posts from one idea and check what performed last month before planning the next.
  • Local businesses can ask youtube-automation which posts drove comments and follows, then do more of what worked instead of posting on guesswork.
  • A small business with a developer can use youtube-automation to ship site and tracking fixes faster, with the AI reading the code it changes.
  • youtube-automation runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Social teams can connect youtube-automation to pull engagement across accounts into one weekly summary their leads actually read.
  • Demand gen teams can use youtube-automation to spot posts that earned replies from target accounts and hand those names to sales.
  • Growth engineers can use youtube-automation to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Start youtube-automation on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise brands can route youtube-automation drafts through legal and brand review, with publishing kept to approved people and every post logged.
  • Large social teams can use youtube-automation for listening across regions, surfacing complaints and trends to the right owner without a manual sweep.
  • Enterprise engineering teams can roll out youtube-automation with repo scopes and audit logs, so agents work only where they are allowed.
  • youtube-automation is a community server, so have security review the code and pin a version before youtube-automation touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

youtube-automation README

From eat-pray-ai/yutu on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

yutu

yutu is a CLI, MCP server, and AI Agent to automate YouTube workflows, from uploading and optimizing videos to managing comments, playlists, and channel branding, and provides a skill for AI Agents, so you can get more views, higher click-through rates, and stronger audience engagement with less manual effort. 中文文档

Table of Contents

  • Prerequisites
  • Installation
  • Agent
  • MCP Server
  • Skills
  • Usage
  • Features
  • Sponsor
  • Contributing

Prerequisites

An account on Google Cloud Platform is required. Set up the following:

  1. Create a GCP Project and enable these APIs under APIs & Services -> Enable APIs and services:

  2. Create OAuth credentials:

    • Go to APIs & Services -> OAuth consent screen, create a consent screen with yourself as a test user
    • Go to Credentials -> Create Credentials -> OAuth Client ID, select Desktop app
    • Download the credential file and save it as client_secret.json, it should look like
    {
      "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. Authenticate:

    yutu auth --credential client_secret.json
    

    A browser window will open for you to grant YouTube access. After granting permission, a token is saved to 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
    }
    

By default, yutu will read client_secret.json and youtube.token.json from the current directory, --credential/-c and --cacheToken/-t flags are available only in auth subcommand. To modify the default path in all subcommands, set these environment variables.

Global Environment Variables
Variable Description Default
YUTU_CREDENTIAL Path, Base64, or JSON of OAuth client secret client_secret.json
YUTU_CACHE_TOKEN Path, Base64, or JSON of cached OAuth token youtube.token.json
YUTU_ROOT Root directory for file resolution Current working directory
YUTU_LOG_LEVEL Log level: DEBUG, INFO, WARN, ERROR INFO

Installation

If you're using an AI Agent, copy and paste the following prompt to finish the installation:

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

You can download yutu from releases page directly, or use the following methods as you prefer.

GitHub Actions

There are two actions available for yutu, one is for general purpose and the other is for uploading video to YouTube. Refer to youtube-action and youtube-uploader for more information.

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

# with Agent enabled
❯ go install -tags agent github.com/eat-pray-ai/yutu@latest
Linux
❯ curl -sSfL https://raw.githubusercontent.com/eat-pray-ai/yutu/main/scripts/install.sh | bash
macOS

Install yutu using Homebrew🍺(recommended), or run the shell script.

❯ brew install yutu

# or
❯ curl -sSfL https://raw.githubusercontent.com/eat-pray-ai/yutu/main/scripts/install.sh | bash
Windows
❯ winget install yutu
Verifying Installation

Verify the integrity and provenance of yutu using its associated cryptographically signed attestations.

# 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

Agent

yutu provides an Agent mode (Miffy) to automate YouTube workflows. The Agent can retrieve, create, update, and delete YouTube content, with built-in YouTube growth strategy and SEO expertise.

[!NOTE] Agent mode is gated behind the agent build tag. Prebuilt and default builds only include CLI + MCP; to include Agent support, install or build with -tags agent:

go install -tags agent github.com/eat-pray-ai/yutu@latest or go build -tags agent

# Gemini(compatible) (default)
❯ yutu agent --provider google --model gemini-4-hydrogen --apiKey "YOUR_KEY"
❯ yutu agent --provider google --model gemini-4-carbon --apiKey "YOUR_KEY" --baseUrl "https://custom.endpoint.com"
# OpenAI(compatible) (OpenAI, DeepSeek, Ollama, vLLM, etc.)
❯ yutu agent --provider openai --model gpt-6-astra --apiKey "YOUR_KEY"
❯ yutu agent --provider openai --model deepseek-flash --apiKey "YOUR_KEY" --baseUrl "https://api.deepseek.com"
# Anthropic(compatible)
❯ yutu agent --provider anthropic --model claude-fable-5-2 --apiKey "YOUR_KEY"
❯ yutu agent --provider anthropic --model claude-opus-5-5 --apiKey "YOUR_KEY" --baseUrl "https://custom.endpoint.com"
# web mode with sub-launchers
❯ yutu agent --args "web api a2a webui" --apiKey "YOUR_KEY"
# show available launcher args
❯ yutu agent --args ""
Agent Flags
Flag Description Default
-a, --args Launcher arguments as a single string console
-p, --provider LLM provider: google, openai or anthropic google
-m, --model Model name gemini-4-hydrogen
--apiKey API key for the model provider
--baseUrl Base URL for the model provider's API endpoint
-i, --instruction Override the built-in Agent instruction INSTRUCTION.md

MCP Server

Before using yutu as an MCP server, make sure yutu is installed(see Installation section), and you have a valid client_secret.json and youtube.token.json files(refer to Prerequisites section).

Setup yutu MCP for one or more selected AI Agents:

❯ yutu mcp setup --agents claude,opencode,pi,codex \
  --credential /absolute/path/to/client_secret.json \
  --cacheToken /absolute/path/to/youtube.token.json

--agents is required. Credential/token flags accept Path/Base64/JSON; omitted flags use the corresponding environment variable or default file path. Relative paths are converted to absolute paths. Prefer file paths to avoid copying inline secrets into Agent settings.

Skills

yutu provides a unified skill that extends AI Agents with YouTube domain knowledge, common workflows, and SEO best practices, covering videos, playlists, comments, channels, captions, subscriptions, and more.

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

See skills/youtube-automation/SKILL.md for the full list of supported operations.

Usage

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

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
  videoTrainability      Manage YouTube video trainability
  watermark              Manage YouTube watermarks

Flags:
  -h, --help   help for yutu

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

Features

Please refer to FEATURES.md for more information.

Sponsor

If yutu saves you time, a ⭐ star on GitHub goes a long way and helps others discover the project.

You can also support its development with a donation (Alipay / WeChat) at yutu.ifor.dev. Thank you! 💖

Contributing

Please refer to CONTRIBUTING.md for more information.

Questions about youtube-automation

What is the youtube-automation MCP server?

CLI, MCP server, and AI Agent to automate YouTube workflows. youtube-automation is maintained by eat-pray-ai on GitHub at eat-pray-ai/yutu, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the youtube-automation MCP server?

Add youtube-automation to your AI app's MCP config with the command npx -y @eat-pray-ai/yutu@0.11.1 mcp. In Claude Code, run claude mcp add --transport stdio yutu -- npx -y @eat-pray-ai/yutu@0.11.1 mcp. To run youtube-automation this way you need Node.js installed.

Does youtube-automation need an API key?

Yes. youtube-automation expects YUTU_CREDENTIAL, YUTU_CACHE_TOKEN, YUTU_CREDENTIAL and YUTU_CACHE_TOKEN to be set. Create the key for youtube-automation in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is youtube-automation an official MCP server?

No. youtube-automation is a community server maintained by eat-pray-ai. Community servers can be excellent; read the code and the open issues before you give youtube-automation access to company data.

What license is youtube-automation under?

youtube-automation is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of youtube-automation; the service it connects to has its own terms.