hasdata-youtube

hasdata-youtube is a cursor rule for Cursor from HasData/youtube-mcp. It costs 19 tokens per session (1,005 once invoked), scanned A, original, MIT.

A set of rules for retrieving public YouTube search results, video and channel details, and transcripts through the HasData MCP server. MCP is a standard way for an AI tool to call an external service.

In plain words
What is it for?
Use it to find YouTube content, inspect channels and videos, read transcripts, apply filters such as date or length, and report organic results separately from paid placements.
Why use it?
It prevents incomplete or misleading search reports by distinguishing videos, Shorts, playlists, adverts, and sponsored results. It also explains how to request more pages and restrict searches to videos with transcripts.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it to find YouTube content, inspect channels and videos, read transcripts, apply filters such as date or length, and report organic results separately from paid placements.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/hasdata/youtube-mcp/hasdata-youtube
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/HasData/youtube-mcp

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hasdata-youtube

README.md
[![agentmods](https://agentmods.dev/badge/rules/hasdata/youtube-mcp/hasdata-youtube/github.svg)](https://agentmods.dev/rules/hasdata/youtube-mcp/hasdata-youtube)
Your own site
<a href="https://agentmods.dev/rules/hasdata/youtube-mcp/hasdata-youtube"><img src="https://agentmods.dev/badge/rules/hasdata/youtube-mcp/hasdata-youtube/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hasdata-youtube

Your own site · 80×15
<a href="https://agentmods.dev/rules/hasdata/youtube-mcp/hasdata-youtube"><img src="https://agentmods.dev/badge/rules/hasdata/youtube-mcp/hasdata-youtube.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,005 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.01005
Opus 5.5 $0.00008 $0.00402
Sonnet 5.5 $0.00004 $0.00201
Haiku 4.5 $0.00002 $0.00101

Measured 3d ago against content hash 6d9985d0270a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hasdata-youtube scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

rules/hasdata-youtube.mdc · 49 lines

How it starts

The opening of the file, as written. The whole thing — 49 lines — stays where its author put it; the contents beside it link to each section on GitHub.

YouTube through HasData

Four tools. hasdata_youtube_search_getYoutubeSearchResults takes q, hasdata_youtube_video_getYoutubeVideo and hasdata_youtube_transcript_getYoutubeTranscript take a video id as v, and hasdata_youtube_channel_getYoutubeChannel takes channelId, which also accepts an @handle.

The search page is five lists, not one

Results split into videoResults, inlineShortsResults, playlistResults, adsResults and sponsoredResults. Reading only the first misses the shorts and the playlists, and folding the last two into the organic set reports paid placements as rankings.

searchInformation.totalResults sizes the query, and pagination.nextPageToken goes back in as paginationToken for the next page.

sortBy takes relevance, popularity, rating, date or views. date narrows to hour, today, week, month or year, videoType to video, shorts, channel, playlist or movie, and length to under4, between420 or plus20. filters__, spelled with two underscores, takes flags including subtitles, which is how to keep only videos that have a transcript to read.

Counts use two opposite conventions

In the search and channel payloads views is the number and viewsOriginal is the printed string. The video call reverses it, where views reads "482,284 views" and extractedViews holds 482284, the same way as extractedLikes and channel.extractedSubscribers. Read the type rather than the name, and sort on whichever one is numeric.

publishedDate is a relative string such as 4 years ago, so it cannot be turned into a date. A window belongs in the date filter rather than in post-processing.

What the search already answers

videoResults entries carry chapters on many rows as title and time pairs. That is a video's structure with no second call behind it, and it is the cheapest signal here for deciding what to open.

The video call adds lengthSeconds, category, keywords, isFamilySafe, isUnlisted, likes with extractedLikes, a description split into content and links, a channel block, captions, relatedVideos, endScreenVideos and an aiSummary.

Read the full file on GitHub · 49 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · +6 lines 6d9985d0270a
  2. 23d ago First seen · 43 lines · 19 tokens per session scan A beab8667d40e

Subscribe to this mod's changes

hasdata-youtube is a cursor rule published in the GitHub repository HasData/youtube-mcp (6 stars, last pushed 3d ago), licensed MIT. It adds 19 tokens to every session and 1,005 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.