Skip to main content
Glama
mambalabsdev

mcp-youtube-channel-transcript-extractor

by mambalabsdev

YouTube Channel Stats Extractor MCP Server

Smithery Glama score npm version npm downloads license

MCP server for the Mamba Labs YouTube Channel Stats Extractor actor on Apify.

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

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

company_domain

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

company_name

string

Optional. Improves search accuracy and is what the identity gate checks a discovered profile against, so supplying it reduces wrong matches.

handle

string

Optional. A YouTube handle such as @shopify, or a full channel URL. Supplying it skips discovery and goes straight to the channel.

includeFollowerCounts

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

skipCache

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

includeTranscripts

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

transcriptVideoCount

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

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

ok

fetched and parsed, the value is there

not_found

we looked and there is no such profile

not_extractable

the profile exists and the value is not on the wire to us

blocked

the platform refused us, worth retrying later

identity_mismatch

we found a real profile and it belongs to someone else

skipped

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.

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 tool
get_youtube_channel_statsGet YouTube Channel StatsA
Read-onlyIdempotent

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
handleNoOptional. A YouTube handle such as @shopify, or a full channel URL. Supplying it skips discovery and goes straight to the channel.
skipCacheNoWhen "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_nameNoOptional. Improves search accuracy and is what the identity gate checks a discovered profile against, so supplying it reduces wrong matches.
company_domainNoBare 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.
includeTranscriptsNoWhen "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.
transcriptVideoCountNoHow 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.
includeFollowerCountsNoWhen "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

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Far beyond the annotations (readOnlyHint, idempotentHint, destructiveHint=false), the description discloses non-obvious behaviors: YouTube rounds subscriber counts above ~1k and the row flags this; the caption content endpoint returns an empty body without a proof-of-origin token and is reported as not_extractable rather than no captions; and calls require an APIFY_TOKEN while no YouTube API key is needed. Nothing contradicts the annotations — 'Read only' actually reinforces readOnlyHint.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose and return values are front-loaded in the first sentence, and every subsequent sentence carries a unique, essential caveat (rounding, transcript gating, auth/credits). At roughly 170 words it is longer than average, but there is no padding — each sentence earns its place by preventing a wrong interpretation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema to lean on, the description spells out the return payload and its quirks, the two resolution modes, the optional transcript behavior and its failure mode, and the auth/cost profile — everything an agent needs to invoke the tool correctly. The 7 optional parameters are fully handled by the schema, so no gap remains.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

All 7 parameters are documented at 100% coverage in the input schema with rich descriptions (handle 'skips discovery,' skipCache's 7-day caching, transcriptVideoCount as the 'billable transcript event' dial). The description itself adds little parameter-level detail beyond framing the domain-vs-handle choice, which the schema already states, so it sits at the high-coverage baseline of 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb phrase — 'Resolve a company domain, or a YouTube handle, to that company's YouTube channel' — and enumerates the exact return fields (subscriber count, UC channel id, channel name, creation date, description). With no sibling tools to differentiate from, the specificity alone removes any ambiguity about what the tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description frames the two supported lookup paths (domain vs handle) and clarifies which skips discovery, plus gives cost-aware guidance: transcripts are 'the expensive half' and each call 'consumes Apify credits.' It does not name exclusions or alternatives, but since no sibling tools exist there is nothing to exclude against.

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. Dates show when Glama detected each change.

  1. 1 tool updatev1.0.0
    • First observedget_youtube_channel_stats

TDQS

A4.2/5.0
Disambiguation5/5

With only one tool, there is no possibility of ambiguity or overlap.

Naming Consistency4/5

The single tool name 'get_youtube_channel_stats' is clear and follows a verb_noun pattern, though there are no other tools to compare for consistency.

Tool Count3/5

A single tool is on the low end, but it is focused on a narrow task (retrieving channel stats and optionally transcripts). Still, it may feel limited for a server dedicated to YouTube channels.

Completeness2/5

The tool covers channel stats and transcript extraction, but lacks other typical operations like searching for channels, listing videos, or fetching video details, leaving significant gaps for a comprehensive YouTube channel assistant.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mambalabsdev/mcp-youtube-channel-transcript-extractor'

If you have feedback or need assistance with the MCP directory API, please join our Discord server