Purpose
mcp-youtube-shorts-scraper is an MCP (Model Context Protocol) server for connecting the YouTube Shorts Scraper actor that Mamba Labs provides on the Apify platform to AI clients that support MCP. It is intended for scenarios that require bulk retrieval of YouTube Shorts data, such as collecting view counts, like counts, comment counts, publish dates, hashtags, and channel information for short videos by channel, search term, or Shorts link.
Key capabilities
- Input a YouTube channel, search term, or Shorts link and return one row of data per Short.
- Returned fields include exact view count, like count, comment count, publish date, hashtags, and channel.
- Return one additional free report row for each source.
- Provide a single tool, get_youtube_shorts, whose parameters cover all buyer-facing input fields of the actor; omitted inputs use the actor's own defaults.
How to use
- Prepare Node.js 18 or higher.
- Get an API token from the integrations page of the Apify console and set it as the APIFY_TOKEN environment variable.
- Add the server configuration to Claude Desktop's claude_desktop_config.json, Cursor, or any MCP client, then restart the client.
- After restarting, the get_youtube_shorts tool will appear and can be invoked through natural language prompts, for example to get the top 20 Shorts of a channel with their like and comment counts, or to find the most-viewed Shorts on a topic.
The server can list tools without a token, but actual calls require a token. All scraping work runs on Apify; this package is only responsible for starting the actor run, waiting for completion, and returning the dataset rows.
Use cases
Suitable for content research, competitor channel observation, topic popularity screening, and other tasks that require analyzing YouTube Shorts performance as structured row data, and also suitable for quickly initiating scraping through conversational prompts in an MCP client.
Limitations and billing
- Requires Node.js 18+ and an Apify account and API token.
- Charges are settled under Apify's pay-per-event billing model, priced in USD and billed to the Apify account.
- Source reports, Shorts that YouTube declares unavailable, rejected reads, duplicates, and rejected inputs are free; platform running costs (including Apify proxy traffic) are borne by Mamba Labs.
- The project uses the MIT license.
- The materials do not provide specific price figures, rate limits, or a complete list of data fields; these are not provided for now.