mcpField
M
mcp-youtube-video-channel-scraper

mcp-youtube-video-channel-scraper

Local
github.com/mambalabsdevSocial Media0Updated 1d ago

About mcp-youtube-video-channel-scraper

mcp-youtube-video-channel-scraper is an MCP server for collecting public YouTube channel, playlist, and search-list data. It runs the Mamba Labs scraper actor on Apify and returns flat video and channel rows with a per-source completion report.

Key features

  1. 01Scrapes channels, playlists, and search results
  2. 02Returns video titles, views, dates, and lengths
  3. 03Includes channel statistics and links
  4. 04Reports whether each source list was fully read
  5. 05Supports video, Shorts, and stream tabs

Use cases

  1. 01Collect recent videos from a YouTube channel
  2. 02Find videos matching a YouTube search term
  3. 03Retrieve channel subscriber and view counts

MCP support

Exposes the scrape_youtube_videos_channels tool to MCP clients. The server starts an Apify actor run, waits for completion, and returns dataset rows.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"com-mambabuilt-mcp-youtube-video-channel-scraper": {
"command": "npx",
"args": [
"-y",
"@mambalabsdev/mcp-youtube-video-channel-scraper"
],
"env": {
"APIFY_TOKEN": "<APIFY_TOKEN>"
}
}
}
}
Run commandnpx -y @mambalabsdev/mcp-youtube-video-channel-scraper
Environment variables to set
APIFY_TOKENSecretApify API token from https://console.apify.com/account/integrations

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@mambalabsdev/mcp-youtube-video-channel-scraper1.0.3

Tools

1

Saved tool list · updated 1d ago

ParameterTypeRequiredDescription
urlsarrayNoChannel, @handle, playlist, or search result addresses, or a bare channel ID or @handle. Up to 200 sources a run, counted with search terms. A single video address returns one free row: this actor does not open video pages. Clay users: wrap a column in a one item list.
channel_tabenumNoWhich channel list to read: videos (default), shorts, or streams.videos | shorts | streams
search_termsarrayNoTerms to search on YouTube. Each term returns videos in YouTube's order, for a logged out US visitor. Clay users: wrap a column in a one item list.
max_charge_usdstringNoOptional. The run stops before a charge that would pass this amount. Reports are always delivered.
include_channel_rowbooleanNoyes (default) adds one row per channel source with subscribers, total views, video count, joined date, country, and links. no skips it.
max_videos_per_sourcenumberNoPer channel, playlist, or search term. Default 30, maximum 5000. Set 0 on a channel to get only its channel row.

Details

From the project README

YouTube Channel and Video List Scraper MCP Server

MCP Registry npm version npm downloads license

An MCP server for the Mamba Labs YouTube Channel and Video List Scraper actor on Apify. Scrape public YouTube channels, playlists, and search lists as flat rows.

What's Inside

What it does

Give YouTube channels, playlists, or search terms. You get a row per video, with title, rounded views, relative date, and length, a row per channel with subscribers, total views, and links, and a free report per source that says whether its list was read to the end.

All of the work runs on Apify. This package is a thin client that starts the actor run, waits for it, and hands back the dataset rows.

Quick start

You need Node.js 18 or newer and an Apify account with an API token.

Add this to your Claude Desktop config (claude_desktop_config.json), Cursor, or any MCP client:

{
  "mcpServers": {
    "mamba-youtube-video-channel-scraper": {
      "command": "npx",
      "args": [
        "-y",
        "@mambalabsdev/mcp-youtube-video-channel-scraper"
      ],
      "env": {
        "APIFY_TOKEN": "your-apify-token"
      }
    }
  }
}

Restart the client. The scrape_youtube_videos_channels tool appears.

Prerequisites

Example prompts

  • "List the last 20 videos from the NASA channel with their views."
  • "Search YouTube for home espresso and give me the top 10 videos."
  • "How many subscribers does Veritasium have, and what links does the channel publish?"

Tool

scrape_youtube_videos_channels. One tool. Example arguments:

{
  "urls": [
    "https://www.youtube.com/@NASA"
  ],
  "max_videos_per_source": 5
}

Inputs

Every buyer facing input of the actor. Omitted inputs take the actor's own defaults.

InputTypeRequiredDescription
urlsarraynoChannel, @handle, playlist, or search result addresses, or a bare channel ID or @handle. Up to 200 sources a run, counted with search terms. A single video address returns one free row: this actor does not open video pages. Clay users: wrap a column in a one item list.
search_termsarraynoTerms to search on YouTube. Each term returns videos in YouTube's order, for a logged out US visitor. Clay users: wrap a column in a one item list.
max_videos_per_sourcenumbernoPer channel, playlist, or search term. Default 30, maximum 5000. Set 0 on a channel to get only its channel row.
include_channel_rowbooleannoyes (default) adds one row per channel source with subscribers, total views, video count, joined date, country, and links. no skips it.
channel_tabstringnoWhich channel list to read: videos (default), shorts, or streams.
max_charge_usdstringnoOptional. The run stops before a charge that would pass this amount. Reports are always delivered.

Pricing

Pay per event on Apify, billed to your Apify account. Prices in USD.

EventFree planBronzeSilverGold
video-row, one video from a list: title, rounded views, relative date, and length$0.0012$0.00114$0.00108$0.00102
channel-row, one channel$0.001$0.00095$0.0009$0.00085
apify-actor-start, per run start$0.0025$0.0025$0.0025$0.0025

Source reports, refused pages, and refused input are free. Mamba Labs pays the platform costs of the run, Apify proxy traffic included.

Full actor documentation

apify.com/mambalabs/youtube-video-channel-scraper

License

MIT. See LICENSE.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.