mcp-youtube-channel-transcript-extractor
This MCP server resolves a company domain or YouTube handle to a YouTube channel and returns channel stats, with optional recent video transcripts.
Resolve a company domain or YouTube handle/full channel URL to its YouTube channel.
Return subscriber count, stable UC channel ID, channel name, creation date, and description as one flat Clay-ready row.
Read
youtube_statusfirst to distinguishok,not_found,not_extractable,blocked,identity_mismatch, andskipped.Optionally fetch follower counts with
includeFollowerCounts; set tofalsefor cheaper URL-only resolution.Optionally pull timestamped transcripts for recent videos with
includeTranscriptsandtranscriptVideoCount; transcript content is currently gated by YouTube.Use
company_nameto improve search accuracy and identity matching.Cache successful lookups for seven days by default; use
skipCacheto force a fresh fetch.Set
max_charge_usdas a per-call spending cap.Read-only, requires an
APIFY_TOKEN, and consumes Apify credits per call.Looks up one known company channel per call; it does not search YouTube, list channel videos, or return video detail.
Resolves company domains or YouTube handles to YouTube channels and retrieves channel metadata such as subscriber count, channel ID, name, creation date, and description, with optional transcript extraction from recent videos.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-youtube-channel-transcript-extractorHow many YouTube subscribers does stripe.com have?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
YouTube Channel Stats Extractor MCP Server
MCP server for the Mamba Labs YouTube Channel Stats Extractor actor on Apify.
The npm package and the registry entry keep the name mcp-youtube-channel-transcript-extractor, so existing installs keep working; the product is YouTube Channel Stats Extractor.
Resolve a company domain or YouTube handle to the channel with subscriber count and channel metadata.
What it does
Resolve a company domain, or a YouTube handle, to that company's YouTube channel. Returns the subscriber count, the stable UC channel id, channel name, creation date and description, as one flat Clay ready row. Subscriber counts are rounded by YouTube above roughly a thousand subscribers, on the page and in its official API alike, and the row flags that. Optional transcript pulling is available and is CURRENTLY GATED by YouTube: the caption track list is readable and the caption content endpoint returns an empty body without a proof of origin token, which the row reports as not_extractable rather than as a video having no captions. No API key needed. Read only; requires an APIFY_TOKEN and consumes Apify credits per call.
Related MCP server: YouTube MCP
Quick start
Add this to your MCP client configuration:
{
"mcpServers": {
"mamba-youtube-channel-stats": {
"command": "npx",
"args": ["-y", "@mambalabsdev/mcp-youtube-channel-transcript-extractor"],
"env": { "APIFY_TOKEN": "your-apify-token" }
}
}
}Prerequisites
Node.js 18 or newer
An Apify API token from console.apify.com/account/integrations
The actor is pay per event and consumes Apify credits per call. Pricing is on the actor page.
Example prompts
"How many YouTube subscribers does stripe.com have?"
"Find the YouTube channel id for hubspot.com."
"Does gitlab.com run a YouTube channel, and when was it created?"
Tool and inputs
Tool: get_youtube_channel_stats
Input | Type | Meaning |
| string | Bare company domain, for example shopify.com. Supply this or a handle. With a domain the actor runs full discovery; with a handle it skips straight to |
| string | Optional. Improves search accuracy and is what the identity gate checks a discovered profile against, so supplying it reduces wrong matches. |
| string | Optional. A YouTube handle such as @shopify, or a full channel URL. Supplying it skips discovery and goes straight to the channel. |
| boolean | When "true" (default) the profile page is fetched and the counts are extracted. Set "false" to resolve the profile URL only, which is cheaper and need |
| boolean | When "false" (default) a successful lookup is cached for seven days and reused. Set "true" to force a fresh fetch. Sent as a string for Clay compatibi |
| boolean | When "true", full timestamped transcripts are pulled for the most recent videos on the channel and returned as one row per video. Default is "false" b |
| string | How many of the channel's most recent videos to pull transcripts for, when transcripts are on. Default 5. Each video is one extra fetch and one extra |
| number | Optional spending cap for this call, in USD. The actor stops before any charge that would take the run past this amount and keeps every row already charged. |
Reading the output
Every row carries a per platform _status field, and it is the field to read
first. The vocabulary is the same across the whole Mamba Labs social family:
Status | Meaning |
| fetched and parsed, the value is there |
| we looked and there is no such profile |
| the profile exists and the value is not on the wire to us |
| the platform refused us, worth retrying later |
| we found a real profile and it belongs to someone else |
| you did not ask for this platform |
false and null are never interchangeable. false means we looked and the
answer is no. null means we could not look. If you filter for companies with no
presence, filter on false, because null rows are unknown rather than absent.
Pricing
You pay per event on Apify, billed to your own Apify account. Prices from the live pricing record, read 2026-10-16:
Event | Price per event (USD) | Fires when |
| $0.00005 | Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event). |
| $0.0035 on the Free plan, down to $0.00245 on higher Apify plans | Once per company for which the discovery cascade completed and a non degraded channel row was produced, whether or not a channel was found. Does not fire on a degraded row. |
| $0.0025 on the Free plan, down to $0.00175 on higher Apify plans | Once per company whose candidate channel URL passed the identity gate. Fires on the validation work, not on a populated subscriber cell. |
| $0.0025 on the Free plan, down to $0.00175 on higher Apify plans | Once per channel where a numeric subscriber count was read off the public page. Does not fire when the owner has hidden the count, which reports not_extractable. |
| $0.015 on the Free plan, down to $0.0105 on higher Apify plans | Once per video for which transcript TEXT was actually returned. A video with no caption track does not charge, and neither does a video whose caption track exists but whose content YouTube refused to serve. Never fires when transcripts are turned off. This is deliberately strict: the fetch costs us roughly a cent whether or not it yields text, and the buyer should not carry that. |
The actor's Apify page carries the current prices. Running this server consumes Apify credits.
Full actor documentation
apify.com/mambalabs/youtube-channel-transcript-extractor
Mamba Labs GTM Suite
Mamba Labs builds a fleet of GTM enrichment actors that share one flat, Clay
ready output convention, so their rows join on company_domain with no cleaning
step. Full fleet: apify.com/mambalabs
License
MIT
Available Tools
1 toolget_youtube_channel_statsGet YouTube Channel StatsAIdempotent
Resolve a company domain, or a YouTube handle, to that company's YouTube channel. Returns the subscriber count, the stable UC channel id, channel name, creation date and description, as one flat Clay ready row. Subscriber counts are rounded by YouTube above roughly a thousand subscribers, on the page and in its official API alike, and the row flags that. Optional transcript pulling is available and is CURRENTLY GATED by YouTube: the caption track list is readable and the caption content endpoint returns an empty body without a proof of origin token, which the row reports as not_extractable rather than as a video having no captions. A company with no channel reports youtube_status not_found. Read youtube_status before any count. Use it to look up one known company channel per call; it does not search YouTube, list a channel's videos, or return video detail, and the package name mentions transcripts only because transcript pulling is an option. No API key needed. Read only; requires an APIFY_TOKEN and consumes Apify credits per call.
| Name | Required | Description | Default |
|---|---|---|---|
| handle | No | Optional. A YouTube handle such as @shopify, or a full channel URL. Supplying it skips discovery and goes straight to the channel. | |
| skipCache | No | When "false" (default) a successful lookup is cached for seven days and reused. Set "true" to force a fresh fetch. Sent as a string for Clay compatibility. | |
| company_name | No | Optional. Improves search accuracy and is what the identity gate checks a discovered profile against, so supplying it reduces wrong matches. | |
| company_domain | No | Bare company domain, for example shopify.com. Supply this or a handle. With a domain the actor runs full discovery; with a handle it skips straight to the fetch. | |
| max_charge_usd | No | Optional spending cap for this call, in USD, passed to the actor as max_charge_usd. The run stops before any charge that would take it past this amount and keeps every row already charged. Leave empty to rely only on the maximum charge per run set on your Apify account. | |
| includeTranscripts | No | When "true", full timestamped transcripts are pulled for the most recent videos on the channel and returned as one row per video. Default is "false" because transcripts are the expensive half of this actor and most buyers want channel stats only. Sent as a string for Clay compatibility. | |
| transcriptVideoCount | No | How many of the channel's most recent videos to pull transcripts for, when transcripts are on. Default 5. Each video is one extra fetch and one extra billable transcript event, so this is the dial that sets the cost of a transcript run. | |
| includeFollowerCounts | No | When "true" (default) the profile page is fetched and the counts are extracted. Set "false" to resolve the profile URL only, which is cheaper and needs no proxy. Sent as a string for Clay compatibility. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description is otherwise unusually candid — YouTube's subscriber rounding, the transcript gating and the not_extractable vs. no-captions distinction, credit consumption, and the APIFY_TOKEN requirement are all disclosed. However, it asserts 'Read only' while the annotations declare readOnlyHint=false, an outright conflict on the safety profile. Flagged as an annotation contradiction, which caps this score.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Purpose and return shape are front-loaded, and the caveats (rounding, gating, status field, cost) follow in descending priority. It runs long at roughly nine sentences, and the aside about the package name is borderline, but almost every sentence carries information an agent needs.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With 8 optional parameters and no output schema, the description does the heavy lifting: it names the return fields, the flat-row shape, the youtube_status signal, and the not_found case, plus auth and billing. It stops short of enumerating all possible youtube_status values or how a missing domain+handle is handled, which keeps it from a 5.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the baseline is 3, but the description adds genuine semantics beyond it: transcripts are CURRENTLY GATED by YouTube and the row reports not_extractable rather than no-captions, which materially changes how an agent should interpret includeTranscripts/transcriptVideoCount results. It also explains the cost framing of a transcript run rather than leaving it to the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Opens with a precise verb+resource: resolve a domain or handle to a company's YouTube channel, then lists the returned fields (subscriber count, UC id, name, creation date, description). It also explicitly fences the scope — 'it does not search YouTube, list a channel's videos, or return video detail' — so an agent knows exactly what this tool is and is not.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives direct usage guidance: 'Use it to look up one known company channel per call', with explicit exclusions (no search, no video listing, no video detail) and a sequencing rule ('Read youtube_status before any count'). The domain-vs-handle choice and its consequence (full discovery vs. straight to fetch) is stated inline.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v1.1.1- Changed
get_youtube_channel_stats2 fields changed- removed
Input schema / additionalPropertiesRemoved value: -false - added
Input schema / properties / max_charge_usdAdded value: +{ + "description": "Optional spending cap for this call, in USD, passed to the actor as max_charge_usd. The run stops before any charge that would take it past this amount and keeps every row already charged. Leave empty to rely only on the maximum charge per run set on your Apify account.", + "minimum": 0, + "type": "number" +}
1 tool update
v1.0.0- First observed
get_youtube_channel_stats
TDQS
Scored across 1 tool
With only one tool there is nothing to confuse it with, and the description clearly enumerates what it does (domain/handle → channel stats) and what it does not do (search, video listing, video detail). The only mild internal blur is that the tool name advertises transcripts while the body frames them as a gated option, but that is a scoping note, not a tool-selection ambiguity.
The single tool follows a clean snake_case verb_noun pattern (get_youtube_channel_stats). No mixing of conventions or vague verb styles is present to break predictability.
One tool is thin for a server that also implies transcript extraction and channel resolution; resolving, stats, and transcript pulling are collapsed into a single overloaded call. It is not mis-scoped enough to be wrong, but it sits at the borderline of too few.
Channel lookup and stats are covered, but the headline transcript capability is effectively unusable (caption content gated, reported as not_extractable), and there is no video listing, video detail, or multi-channel/batch operation. An agent can still retrieve channel stats, so gaps are notable rather than fatal.
Maintenance
Related MCP Connectors
YouTube video metadata, transcripts and channel data by URL or @handle. No API key. Pay per result.
Find the contact email of YouTube channels from the link, the @handle or the channel_id. Resolves th
YouTube search, whole channels, video stats, comments and full transcripts with timestamps.
YouTube data for AI agents: channels, videos, transcripts, comments, search. Video research.
Related MCP Servers
- AlicenseAqualityCmaintenanceChecks username availability and retrieves account information across major social media platforms including YouTube, TikTok, Threads, X (Twitter), and Instagram, perfect for brand name qualification and competitive research.5262 npmMIT
- AlicenseAqualityBmaintenanceProvides production-grade tools for YouTube channel resolution, video metadata extraction, transcripts, and playlist management. It features a quota-aware, AI-friendly design that supports structured searching and listing of public YouTube data.72MIT
- FlicenseNot gradedqualityDmaintenanceEnables YouTube data crawling and AI-powered summarization of videos, including channel metadata retrieval, time-range queries, and automatic transcription with multi-language support.-
- FlicenseAqualityDmaintenanceEnables AI assistants to analyze YouTube channels, videos, transcripts, and content strategy through structured tool calls.1711 npm-