Aerostack
electrical_services

Youtube MCP Server — Hosted Api Connectors Integration

MCP Server language Hosted language Public

Search videos, manage playlists, read comments, and pull analytics from YouTube Data API v3.

aerostack @aerostack verified
v0.1.0 MIT Updated May 13, 2026
robot_2

Use with AI AssistantsMCP

Connect Claude, Cursor, or any MCP-compatible client — then call tools directly

① Add This MCP Server

Paste into your AI client config — then all its tools are available instantly.

.claude/mcp.json
{
  "mcpServers": {
    "youtube": {
      "url": "https://mcp.aerostack.dev/s/aerostack/mcp-youtube",
      "headers": {
        "Authorization": "Bearer YOUR_AEROSTACK_TOKEN"
      }
    }
  }
}

Replace YOUR_AEROSTACK_TOKEN with your API token from the dashboard.

② Call a Tool

Ask your AI assistant to call a specific tool, or send raw JSON-RPC:

+14 more

Natural Language Prompt

“Use the search_videos tool to search youtube videos by keyword. returns video ids, titles, descriptions, channel info, and thumbnails

Using a Workspace?

Add this MCP to your Workspace — your team shares one token, secrets are stored securely, and every AI agent in the workspace can call it without per-user setup.

add_circleAdd to Workspace

description Overview

mcp-youtube — YouTube MCP Server

Search videos, manage playlists, subscribe to channels, post comments, and pull analytics from YouTube Data API v3 — all from any AI agent.

YouTube is the world's largest video platform. This MCP server gives your agents complete access to the YouTube Data API v3 and YouTube Analytics API: searching and browsing videos and channels, managing playlists, reading comments, rating content, and pulling detailed performance analytics for creators.

Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-youtube


What You Can Do

  • Search YouTube for any video or channel and pull full metadata including view count and duration
  • Create, update, and delete playlists on behalf of authenticated users
  • List and reply to comments on any video
  • Pull per-video and channel-level analytics: views, watch time, subscriber changes, and revenue estimates
  • Subscribe to channels and rate videos using OAuth credentials

Available Tools

Tool Description
search_videos Search YouTube videos by keyword with order and duration filters
get_video Get full video details: title, duration, viewCount, likeCount, publishedAt
list_channel_videos List videos uploaded by a specific channel
get_video_categories Get available YouTube video categories for a region
rate_video Like, dislike, or remove rating from a video (OAuth)
get_video_captions List available caption/subtitle tracks for a video
get_channel Get channel details: title, subscriberCount, videoCount, viewCount
search_channels Search for channels by keyword
get_my_channel Get authenticated user's channel stats (OAuth)
get_channel_sections Get featured sections on a channel page
subscribe_to_channel Subscribe authenticated user to a channel (OAuth)
list_playlists List playlists for a channel or authenticated user
get_playlist Get playlist details: title, description, itemCount, privacy
create_playlist Create a new playlist with title and privacy setting (OAuth)
update_playlist Update playlist title, description, or privacy status (OAuth)
delete_playlist Delete a playlist by ID (OAuth)
list_comments Get top-level comments for a video sorted by time or relevance
reply_to_comment Post a reply to an existing comment (OAuth)
get_video_analytics Get per-video analytics: views, watchTime, likes by date range (OAuth)
get_channel_analytics Get channel analytics: views, subscribers, watchTime, revenue (OAuth)

Configuration

Variable Required Description How to Get
YOUTUBE_API_KEY For read ops YouTube Data API v3 key Google Cloud Console → APIs & Services → Credentials → Create API Key → restrict to YouTube Data API v3
YOUTUBE_ACCESS_TOKEN For write/analytics OAuth 2.0 access token with youtube and yt-analytics.readonly scopes OAuth Playground or use Google OAuth 2.0 flow

Minimum scopes for full access:

  • https://www.googleapis.com/auth/youtube — read/write YouTube account
  • https://www.googleapis.com/auth/yt-analytics.readonly — read analytics

Read-only tools (search, get video, list channels) work with just an API key. Write tools and analytics require an OAuth access token.

Quick Start

Add to Aerostack Workspace
  1. Go to aerostack.dev → Your Project → MCPs
  2. Search for "YouTube" and click Add to Workspace
  3. Add your YOUTUBE_API_KEY and/or YOUTUBE_ACCESS_TOKEN under Project → Secrets

Once added, every AI agent in your workspace can search YouTube, manage content, and analyze performance automatically.

Example Prompts
"Search YouTube for the top 5 most viewed cooking videos this month"
"Get the subscriber count and total views for channel UCuAXFkgsw1L7xaCfnd5JJOw"
"Create a new private playlist called 'AI Research Talks' on my YouTube channel"
"Show me analytics for my video dQw4w9WgXcQ for the last 30 days"
Direct API Call
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-youtube \
  -H 'Content-Type: application/json' \
  -H 'X-Mcp-Secret-YOUTUBE-API-KEY: your-api-key' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_videos","arguments":{"query":"machine learning tutorial","maxResults":5,"order":"viewCount"}}}'

License

MIT

terminal Tools (20)

Available tools on this MCP server. Each tool can be called directly from any AI agent.

terminal
search_videos #1

Search YouTube videos by keyword. Returns video IDs, titles, descriptions, channel info, and thumbnails.

terminal
get_video #2

Get full details for a video by ID: title, description, duration, viewCount, likeCount, publishedAt, channelId.

terminal
list_channel_videos #3

List the most recent videos uploaded by a specific channel.

terminal
get_video_categories #4

Get the list of available YouTube video categories for a given region.

terminal
rate_video #5

Like, dislike, or remove rating from a video. Requires OAuth access token.

terminal
get_video_captions #6

List available captions/subtitle tracks for a video (language, name, trackKind).

terminal
get_channel #7

Get channel details by channel ID: title, description, subscriberCount, videoCount, viewCount, thumbnails.

terminal
search_channels #8

Search YouTube channels by keyword. Returns channel ID, title, description, and thumbnails.

terminal
get_my_channel #9

Get the authenticated user's own channel stats: title, subscriberCount, videoCount, viewCount. Requires OAuth.

terminal
get_channel_sections #10

Get the featured sections on a channel page (playlists, subscriptions, liked videos, etc.).

terminal
subscribe_to_channel #11

Subscribe the authenticated user to a channel. Requires OAuth access token.

terminal
list_playlists #12

List playlists for a channel or the authenticated user. Returns id, title, description, itemCount, publishedAt.

terminal
get_playlist #13

Get playlist details by ID: title, description, itemCount, publishedAt, thumbnails, privacyStatus.

terminal
create_playlist #14

Create a new YouTube playlist. Requires OAuth access token.

terminal
update_playlist #15

Update a playlist's title, description, or privacy status. Requires OAuth access token.

terminal
delete_playlist #16

Delete a YouTube playlist by ID. Requires OAuth access token.

terminal
list_comments #17

Get top-level comments for a YouTube video, sorted by time or relevance.

terminal
reply_to_comment #18

Post a reply to an existing top-level comment. Requires OAuth access token.

terminal
get_video_analytics #19

Get analytics for a specific video owned by the authenticated user: views, watchTime, likes, subscribersGained by date range. Requires OAuth.

terminal
get_channel_analytics #20

Get channel-level analytics: views, estimatedMinutesWatched, subscribersGained, subscribersLost, estimatedRevenue by date range. Requires OAuth.

Details

upgrade Version 0.1.0
gavel License MIT
wifi Transport streamable-http
lock Access Public
category Category API Connectors
terminal Tools 20

language Live Endpoint

https://mcp.aerostack.dev/s/aerostack/mcp-youtube

Sub-50ms globally · Zero cold start

Publisher

aerostack
@aerostack verified

Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.

Tags

Browse more servers

More in API Connectors

Browse API Connectors MCPs →

Frequently asked questions

What is the Youtube MCP server and what can it do? +

The Youtube MCP server is hosted on Aerostack and exposes these tools to your AI agent: `search_videos`, `get_video`, `list_channel_videos`, `get_video_categories`, `rate_video`. You get one hosted URL — no self-hosting — that works from Claude, Cursor, ChatGPT, Gemini, VS Code, or any MCP-compatible client, and you can share it with your team or combine it with other MCP servers in a workspace.

Is the Youtube MCP server hosted, or do I have to run it myself? +

It's hosted on Aerostack's edge infrastructure — you don't deploy or maintain anything. Add it to a workspace and you get one authenticated URL, with secrets encrypted, that any AI agent or editor can connect to. Use it solo or share the same URL across your whole team.

Which AI agents and editors can use the Youtube MCP server? +

Any MCP client: Claude and Claude Code, Cursor, ChatGPT, Gemini, Windsurf, Cline, VS Code, and custom agents. Because it's one hosted URL, the same Youtube MCP server works everywhere — and you can compose it with other MCP servers, skills, and functions behind a single workspace URL.

How do I install the Youtube MCP server in Claude Desktop? +

Add the following to your Claude Desktop config (`claude_desktop_config.json`): ```json { "mcpServers": { "@aerostack/mcp-youtube": { "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-youtube"] } } } ``` Then restart Claude Desktop and the tools will appear automatically.

How do I use the Youtube MCP server in Cursor? +

In Cursor, open **Settings → MCP** and add: ```json { "name": "@aerostack/mcp-youtube", "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-youtube"] } ``` Save and reload Cursor. The MCP tools will be available in Agent mode.

Does Youtube MCP require authentication? +

Yes. Youtube requires authentication. Check the MCP's documentation for the required credentials.