# eukosh/youtube-kit [Health: Active]

**Category:** 🌐 Social Media  
**Repository:** https://github.com/eukosh/youtube-kit  
**GitHub Stars:** 10  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/eukosh-youtube-kit

## Description
Search and read public YouTube, and manage your own channels: analytics, uploads, metadata, playlists and comment moderation, with two-step deletes. Also a CLI (ytk).

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "youtube-kit": {
    "command": "uvx",
    "args": ["youtube-kit"],
    "env": {
      "YOUTUBE_API_KEY": "",
      "YOUTUBE_CLIENT_SECRETS": "",
      "YOUTUBE_TOKEN_DIR": "",
      "YOUTUBE_CHANNEL": "",
      "YOUTUBE_CONFIG_FILE": "",
      "YTK_NO_UPDATE_CHECK": ""
    }
  }
}
```

**Requires environment variables:** `YOUTUBE_API_KEY`, `YOUTUBE_CLIENT_SECRETS`, `YOUTUBE_TOKEN_DIR`, `YOUTUBE_CHANNEL`, `YOUTUBE_CONFIG_FILE`, `YTK_NO_UPDATE_CHECK` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What eukosh/youtube-kit does

eukosh/youtube-kit connects MCP clients and terminal workflows to YouTube. Its tools cover both public-data tasks and authenticated channel management, including analytics, video uploads and metadata, captions, playlists, comments, subscriptions, and channel settings.

Public searches can find videos, channels, and playlists, with filters for channel or date. Agents can also retrieve public channel information, video details, comments, playlists, and caption tracks. Authenticated access adds channel-specific operations such as reporting metrics, uploading videos, moderating comments, changing metadata, and managing playlists.

Analytics can be requested as totals or broken down by dimensions such as day, month, video, country, device, operating system, traffic source, playback location, audience demographics, subscription status, content type, and sharing service. Video retention, thumbnail impressions, and click-through rate are also supported.

## How it works

The package provides the `ytk` CLI and an MCP entry point. Start the MCP server with `uvx youtube-kit mcp`; MCP clients receive tools corresponding to the CLI's YouTube operations. Commands and tools return JSON, and command failures use exit codes with error details on stderr.

Authentication is handled through Google. Run `ytk auth login` to configure a channel, then repeat the process for additional channels, including brand channels. A default channel can be selected, while individual CLI commands or MCP calls can target another channel using its channel ID, handle, or exact title. The `YOUTUBE_CHANNEL` variable can set the default for a shell or MCP server.

The server can use a Google API key for public data. OAuth login is needed for channel-management operations and authenticated analytics. The setup guide is available through `ytk auth guide` or the MCP `setup_guide` tool.

## Setup and configuration

Install the CLI with:

```sh
uv tool install youtube-kit
ytk auth login
```

The guided login walks through creating or configuring a Google Cloud project, enabling the YouTube Data API v3, YouTube Analytics API, and YouTube Reporting API, and downloading an OAuth desktop client file. An existing client file can be supplied with `ytk auth login --client-secrets path/to/client_secret.json`.

For public-data access without OAuth, set `YOUTUBE_API_KEY` in the environment or in the MCP client's server configuration. Other configuration variables can select the OAuth client-secrets file, token directory, default channel, configuration file, and update-check behavior: `YOUTUBE_CLIENT_SECRETS`, `YOUTUBE_TOKEN_DIR`, `YOUTUBE_CHANNEL`, `YOUTUBE_CONFIG_FILE`, and `YTK_NO_UPDATE_CHECK`.

An MCP client can use this stdio configuration:

```json
{
  "mcpServers": {
    "youtube": { "command": "uvx", "args": ["youtube-kit", "mcp"] }
  }
}
```

Stored credentials and configuration reside in the platform's user configuration directory. `ytk auth status` reports the exact paths. Restart the MCP client after changing its server configuration.

## Tools and capabilities

- Query channel, video, playlist, comment, and subscription data.
- Search YouTube videos, channels, and playlists by channel or date.
- Retrieve analytics, audience retention, impressions, and click-through rates.
- Upload videos with resumable transfers and progress reporting.
- Update video metadata, thumbnails, ratings, processing status, and deletion.
- Read, upload, replace, hide, and delete captions, including optional translation.
- List, post, reply to, edit, delete, approve, hold, reject, and moderate comments.
- Create and maintain playlists, including images, items, ordering, and deletion.
- Inspect or update supported channel information, banners, watermarks, and home-page sections.

## Limitations and notes

The package does not cover localizations, live streaming, or channel memberships. Google Cloud setup and OAuth consent may require browser-based steps. A Google account with a YouTube channel is needed for authenticated channel work. The same installation can serve multiple logged-in channels, with one selected as the default.

_Full upstream README: https://allmcps.com/mcp/eukosh-youtube-kit/readme_

