Skip to main content
Glama
mambalabsdev

mcp-youtube-channel-transcript-extractor

YouTube Channel Stats Extractor MCP Server

Smithery Glama score npm version npm downloads license

Mamba Labs YouTube Channel Stats Extractor actor(Apify 上)的 MCP 服务器。

将公司域名或 YouTube handle 解析为频道,并获取订阅者数量和频道元数据。

功能

将公司域名或 YouTube handle 解析为该公司的 YouTube 频道。返回订阅者数量、稳定的 UC 频道 ID、频道名称、创建日期和描述,作为一个扁平的、可直接用于 Clay 的行。订阅者数量在超过大约一千时会被 YouTube 四舍五入(页面和官方 API 均是如此),该行会对此进行标记。可选的字幕拉取功能目前受 YouTube 限制:字幕轨道列表可读,但字幕内容端点在没有来源证明令牌的情况下返回空主体,该行将其报告为 not_extractable,而不是视频没有字幕。无需 API 密钥。只读;需要 APIFY_TOKEN,每次调用消耗 Apify 积分。

Related MCP server: YouTube MCP

快速开始

将此添加到您的 MCP 客户端配置中:

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

前提条件

该 actor 按事件付费,每次调用消耗 Apify 积分。定价详见 actor 页面。

示例提示

  • "stripe.com 有多少 YouTube 订阅者?"

  • "查找 hubspot.com 的 YouTube 频道 ID。"

  • "gitlab.com 是否运营 YouTube 频道?它是什么时候创建的?"

工具与输入

工具:get_youtube_channel_stats

输入

类型

含义

company_domain

string

裸公司域名,例如 shopify.com。提供此字段或 handle。使用域名时,actor 会执行完整的发现流程;使用 handle 时,它会直接跳过发现步骤。

company_name

string

可选。可提高搜索准确性,并且是身份验证门检查已发现配置文件的依据,因此提供它可减少错误匹配。

handle

string

可选。YouTube handle,例如 @shopify,或完整的频道 URL。提供它可跳过发现步骤,直接访问频道。

includeFollowerCounts

boolean

当为 "true"(默认)时,会获取个人资料页面并提取计数。设为 "false" 仅解析个人资料 URL,这更便宜且可能不需要...

skipCache

boolean

当为 "false"(默认)时,成功的查找会缓存七天并复用。设为 "true" 以强制重新获取。以字符串形式发送以兼容 Clay。

includeTranscripts

boolean

当为 "true" 时,会为频道上最近的视频提取完整的时间戳转录文本,并作为每个视频一行返回。默认为 "false"。

transcriptVideoCount

string

当转录开启时,要为频道的多少个最近视频提取字幕。默认为 5。每个视频是一次额外的获取和一次额外的

解读输出

每一行都带有按平台区分的 _status 字段,这是首先需要读取的字段。其词汇在整个 Mamba Labs 社交媒体系列中保持一致:

状态

含义

ok

已获取并解析,值存在

not_found

我们查找了,但不存在这样的个人资料

not_extractable

个人资料存在,但值不在我们能获取的数据中

blocked

平台拒绝了我们的请求,稍后重试可能有效

identity_mismatch

我们找到了真实的个人资料,但它属于其他人

skipped

您未请求该平台

false 和 null 绝不可互换。 false 表示我们已查找,答案是否定的;null 表示我们无法查找。如果您要筛选没有存在的公司,请筛选 false,因为 null 行是未知状态,而非不存在。

完整 actor 文档

apify.com/mambalabs/youtube-channel-transcript-extractor

Mamba Labs GTM Suite

Mamba Labs 构建了一系列 GTM 富化 actor,它们共享一种扁平的、Clay 就绪的输出约定,因此它们的行可以直接按 company_domain 连接,无需清理步骤。完整系列:apify.com/mambalabs

许可证

MIT

Available Tools

1 tool
get_youtube_channel_statsGet YouTube Channel StatsA
Idempotent

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.

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.
max_charge_usdNoOptional 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.
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.1/5.0
Behavior2/5

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.

Conciseness4/5

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.

Completeness4/5

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.

Parameters4/5

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.

Purpose5/5

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.

Usage Guidelines5/5

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. 1 tool updatev1.1.1
    • Changedget_youtube_channel_stats2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / max_charge_usd
        Added 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"
        +}
  2. 1 tool updatev1.0.0
    • First observedget_youtube_channel_stats

TDQS

A4.1/5.0

Scored across 1 tool

Disambiguation5/5

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.

Naming Consistency5/5

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.

Tool Count3/5

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.

Completeness3/5

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

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers