
Kirbah Mcp Youtube
ai.smithery由 smithery.ai 发布官方发布者v0.2.6更新于 Oct 24, 2026
Provide token-optimized, structured YouTube data to enhance your LLM applications. Access efficien…
发布方自己的服务:222wcnm Bilistalkermcp
概览
让助手获取经过令牌优化的 YouTube 数据:视频详情、搜索、字幕、频道统计、热门趋势和评论。
- 可以做什么
- 封装 YouTube Data API v3,返回精简后的结构化结果,而非原始大体积数据。工具包括 getVideoDetails、searchVideos、getTranscripts、getChannelStatistics、getChannelTopVideos、getTrendingVideos、getVideoCategories、getVideoComments 和 findConsistentOutlierChannels。可选的 MongoDB 缓存层可让重复请求不消耗 API 配额。字幕抓取无需 API 密钥。
- 适用场景
- 适合助手需要研究 YouTube 视频、频道、趋势或评论,或读取字幕进行内容分析,同时避免占满上下文窗口的场景。在配置 MongoDB 连接后,也适合做细分领域或异常表现频道的调研。
- 运行要求
- 远程端点位于 server.smithery.ai,需要 Authorization Bearer 令牌进行 Smithery 身份验证。npm 包 @kirbah/mcp-youtube 可在本地运行,需要 Node.js >=22.0.0 和 npm。YOUTUBE_API_KEY 用于解锁搜索和分析功能;字幕无需密钥即可使用。findConsistentOutlierChannels 和缓存需要 MDB_MCP_CONNECTION_STRING。
安装
在 SourceWeft 中
- 打开 控制台中的 Kirbah Mcp Youtube,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/ai.smithery%2Fkirbah-mcp-youtube/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"kirbah-youtube": {
"type": "http",
"url": "https://server.smithery.ai/@kirbah/mcp-youtube/mcp"
}
}
}README
YouTube Data MCP Server (@kirbah/mcp-youtube)
[CI Status] [Code Coverage] [NPM Version] [NPM Downloads] [Node.js Version Support]
[图片]A production-grade YouTube Data MCP server engineered specifically for AI agents.
Unlike standard API wrappers that flood your LLM with redundant data, this server strips away YouTube's heavy payload bloat. It is designed to save you massive amounts of context window tokens, protect your daily API quotas via caching, and run reliably without breaking your workflows.
Why Choose This Server?
Most MCP servers are weekend projects. @kirbah/mcp-youtube is built for reliable, daily, cost-effective agentic workflows.
🎯 Want feedback on your own channel, not just raw data? Check out CreatorLens - a companion Claude Skill built on this MCP that diagnoses common growth problems (weak hooks, bad thumbnails, flatlined videos) using a real strategist's framework, not just numbers.
📉 1. Save Up to 87% on Tokens (and Context Window)
The raw YouTube API returns massive JSON payloads filled with nested eTags, redundant thumbnails, and localization data that LLMs don't need. This server structures the data to give your LLM exactly what it needs to reason, and nothing else.
(Curious? You can compare the raw API responses vs optimized outputs in the examples folder).
🛡️ 2. Protect Your API Quotas (Smart Caching)
The YouTube Data API has strict daily limits (10,000 quota units). If your LLM gets stuck in a loop or re-asks a question, standard servers will drain your API limit in minutes. This server includes an optional MongoDB caching layer. If your agent requests a video details or searches the same trending videos twice, the server serves it from the cache - costing you 0 API quota points.
🏗️ 3. Production-Grade & Actively Maintained
Tired of MCP tools crashing your AI client? This server is built to be a rock-solid dependency:
- 97% Test Coverage: Comprehensively unit-tested (check the Codecov badge).
- Zero Lint Errors/Warnings: Enforces strict, clean code (
npm run lintpasses 100%). - Active Security: Automated Dependabot patching ensures underlying libraries are never left with known vulnerabilities.
- Strict Type Safety: Built using Zod validation and the robust MCP TypeScript Starter architecture.
Quick Start: Installation
🟢 Zero-Config Mode (No API Key Required)
Want to just fetch transcripts? You can use this server immediately without any configuration! Just install and go. Add a YouTube API key later to unlock deep search and analytics.
The easiest way to install this server is by clicking the "Add to Claude Desktop" button on the Glama server page.
If you are configuring manually (e.g., in Cursor), just add this bare-minimum setup:
✨ Tip: In Zero-Config mode, you can ask your AI to simply "Read the transcript for youtube://transcript/{videoId}"!
🟡 Manual Configuration (Unlock All Features)
If you prefer to configure your MCP client manually (e.g., Claude Desktop or Cursor), add the following to your configuration file:
- Get a YouTube Data API v3 Key (See Setup Instructions below).
- (Highly Recommended) Get a free MongoDB Connection String to enable quota-saving caching.
(Windows PowerShell Users: If npx fails, try using "command": "cmd" and "args": ["/k", "npx", "-y", "@kirbah/mcp-youtube"])
Next Step: Add a Skill
Once your server is connected, try CreatorLens - a Claude Skill built specifically for this MCP that turns raw YouTube data into growth diagnostics (weak hooks, packaging, niche doubt, format pivots).
Key Features
- Optimized Video Information: Search videos with advanced filters. Retrieve detailed metadata, statistics (views, likes, etc.), and content details, all structured for minimal token footprint.
- Efficient Transcript Management: Fetch video captions/subtitles with multi-language support, perfect for content analysis by LLMs.
- Insightful Channel Analysis: Get concise channel statistics (subscribers, views, video count) and discover a channel's top-performing videos without data bloat.
- Lean Trend Discovery: Find trending videos by region and category, and get lists of available video categories, optimized for quick AI processing.
- Structured for AI: All responses are designed to be easily parsable and immediately useful for language models.
- Efficient Comment Retrieval: Fetch video comments with fine-grained control over the number of results and replies, optimized for sentiment analysis and feedback extraction.
Available Tools
The server provides the following MCP tools, each designed to return token-optimized data:
For detailed input parameters and their descriptions, please refer to the inputSchema within each tool's configuration file in the src/tools/ directory (e.g., src/tools/video/getVideoDetails.ts).
Note on API Quota Costs: Most tools are highly efficient.
getVideoDetails,getChannelStatistics, andgetTrendingVideoscost only 1 unit per call. ThegetTranscriptstool has 0 API cost. The newgetVideoCommentstool has a variable cost: the base call is 1 unit, but if you request replies (by settingmaxReplies > 0), it costs an additional 1 unit for each top-level comment it fetches replies for. The search-based tools are the most expensive:searchVideoscosts 100 units andgetChannelTopVideoscosts 101 units.
Advanced Usage & Local Development
If you wish to contribute, modify the server, or run it locally outside of an MCP client's managed environment:
Prerequisites
- Node.js (version specified in
package.jsonengines field - currently>=22.0.0) - npm (usually comes with Node.js)
- A YouTube Data API v3 Key (see YouTube API Setup)
Local Setup
-
Clone the repository:
-
Install dependencies:
-
Configure Environment: Create a
.envfile in the root by copying.env.example:Then, edit
.envto add yourYOUTUBE_API_KEY:
Development Scripts
Local Development with an MCP Client
To have an MCP client run your local development version (instead of the published NPM package):
-
Ensure you have a script in
package.jsonfor a non-watching start, e.g.: -
Configure your MCP client to spawn this local script:
Note on the env block above: Setting YOUTUBE_API_KEY directly in the env block for the client configuration is one way to provide the API key. Alternatively, if your server correctly loads its .env file based on the working_directory, you might not need to specify it in the client's env block, as long as your local .env file in the project root contains the YOUTUBE_API_KEY. The working_directory path must be absolute and correct for the server to find its .env file.
YouTube API Setup
- Go to the Google Cloud Console.
- Create a new project or select an existing one.
- In the navigation menu, go to "APIs & Services" > "Library".
- Search for "YouTube Data API v3" and Enable it for your project.
- Go to "APIs & Services" > "Credentials".
- Click "+ CREATE CREDENTIALS" and choose "API key".
- Copy the generated API key. This is your
YOUTUBE_API_KEY. - Important Security Step: Restrict your API key to prevent unauthorized use. Click on the API key name, and under "API restrictions," select "Restrict key" and choose "YouTube Data API v3." You can also add "Application restrictions" (e.g., IP addresses) if applicable.
System Requirements
- Node.js:
>=22.0.0(as specified inpackage.json) - npm (for managing dependencies and running scripts)
Deep Dive: findConsistentOutlierChannels Tool
The findConsistentOutlierChannels tool is designed to identify emerging or established YouTube channels that consistently outperform their size within a specific niche. This tool is particularly useful for content creators, marketers, and analysts looking for high-potential channels.
Important Note: This tool requires a MongoDB connection to store and analyze channel data. Without MDB_MCP_CONNECTION_STRING configured, this tool will not be available.
Internal Logic Overview
The tool operates through a multi-phase analysis process, leveraging both YouTube Data API and a MongoDB database:
-
Candidate Search (Phase 1):
- Uses the provided
queryto search for relevant videos and channels on YouTube. - Filters initial results based on
videoCategoryIdandregionCodeif specified. - Collects a broad set of potential channels for deeper analysis.
- Uses the provided
-
Channel Filtering (Phase 2):
- Retrieves detailed statistics for candidate channels (subscribers, total views, video count).
- Filters channels based on
channelAge(e.g., 'NEW' for channels under 6 months, 'ESTABLISHED' for 6-24 months). - Ensures channels meet a minimum video count to be considered for consistency.
-
Deep Analysis (Phase 3):
- For each filtered channel, fetches their recent top-performing videos.
- Calculates a "viral factor" for each video (e.g., views relative to subscriber count).
- Assesses the
consistencyLevel(e.g., 'MODERATE' for ~30% of videos showing outlier performance, 'HIGH' for ~50%). - Determines
outlierMagnitude(e.g., 'STANDARD' for views > subscribers, 'STRONG' for views > 3x subscribers).
-
Ranking & Formatting (Phase 4):
- Ranks channels based on their consistency, outlier magnitude, and overall performance within the niche.
- Formats the results into a token-optimized structure suitable for LLMs, including key channel metrics and examples of outlier videos.
Key Parameters Controlling the Flow
The behavior of this tool is primarily controlled by the following parameters:
query(string, required): The central topic or niche to analyze (e.g., "DIY home repair", "quantum computing explained").channelAge(enum: "NEW", "ESTABLISHED", default: "NEW"): Focuses the search on emerging or more mature channels.consistencyLevel(enum: "MODERATE", "HIGH", default: "MODERATE"): Sets the threshold for how consistently a channel's videos must perform as outliers.outlierMagnitude(enum: "STANDARD", "STRONG", default: "STANDARD"): Defines how significantly a video's performance must exceed typical expectations (e.g., views vs. subscribers) to be considered an "outlier."videoCategoryId(string, optional): Narrows the search to a specific YouTube category ID.regionCode(string, optional): Targets channels relevant to a particular geographical region.maxResults(number, default: 10): Limits the number of top outlier channels returned.
Security Considerations
- API Key Security: Your
YOUTUBE_API_KEYis sensitive. Never commit it directly to your repository. Use environment variables (e.g., via a.envfile which should be listed in.gitignore). - API Quotas: The YouTube Data API has a daily usage quota (default is 10,000 units). All tool calls deduct from this quota. Monitor your usage in the Google Cloud Console and be mindful of the cost of each tool. For a detailed breakdown of costs per API method, see the official documentation.
- Input Validation: The server uses Zod for robust input validation for all tool parameters, enhancing security and reliability.
License
This project is licensed under the MIT License. See the LICENSE file for details.
来源:README.md,提交 ba2b18b
工具
0版本历史
1- v0.2.6最新Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具必需15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Smithery 集成

222wcnm Bilistalkermcp
ai.smithery官方发布者
Bilibili 创作者分析服务器,让助手查询指定用户的资料、视频、动态、专栏、字幕、关注列表和评论。

Zwldarren Akshare One Mcp
ai.smithery官方发布者
远程 MCP 服务器,让助手以只读方式获取中国股市数据:历史与实时行情、新闻和财务报表。

Zhaoganghao Hellomcp
ai.smithery官方发布者
一个小型远程 MCP 服务器,让助手按名字向人问候,并介绍“Hello, World”的由来。

Zeta Chain Cli
ai.smithery官方发布者
一个远程 MCP 服务器,让助手为任意姓名或受众生成友好、可定制的问候语。

Yuna0x0 Hackmd Mcp
ai.smithery官方发布者
一个连接 HackMD API 的 MCP 服务器,让助手读取、创建、更新和删除 HackMD 笔记并管理团队。