
Youtube Organic Mcp
io.github.lanternrow由 GitHub 帳號 lanternrow 發布v1.0.0更新於 Oct 24, 2026
YouTube organic analytics — channel stats, video performance, watch time & audience insights.
概覽
一個本機 MCP 伺服器,透過 YouTube Data 與 Analytics API 讓助理以唯讀方式存取你自己頻道的自然流量分析資料。
- 可以做什麼
- 列出已設定的頻道與預設帳號,支援多帳號,所有工具都可帶選用的 account 參數。取得頻道簡介與累計數據,例如訂閱數、總觀看次數、影片數與上傳播放清單。分頁瀏覽上傳影片及每支影片的觀看、按讚、留言與長度,並依影片 ID 批次取得詳細資料。依日期範圍取得頻道分析:觀看次數、觀看時間、平均觀看時間與百分比、訂閱增減、按讚、留言與分享,可選擇按日拆分。依日期範圍取得單一影片的同類指標。
- 適用情境
- 適合讓助理檢視自己頻道的表現、比較不同影片,或追蹤觀看次數、觀看時間與訂閱變化的逐日趨勢,不必手動匯出報表。適用於頻道擁有者,以及已在用 Google OAuth 工具的代理商。
- 執行需求
- 以 Node.js 本機程序執行(Node 18 以上),從 npm 套件啟動。需要一個已啟用 YouTube Data API v3 與 YouTube Analytics API 的 Google Cloud 專案、一個桌面應用程式類型的 OAuth 用戶端,以及頻道擁有者的更新權杖。憑證透過環境變數 YOUTUBE_CLIENT_ID、YOUTUBE_CLIENT_SECRET 與 YOUTUBE_REFRESH_TOKEN 提供,多頻道時使用 YOUTUBE_ACCOUNTS。取得權杖的輔助指令碼需要 Python 與 google-auth-oauthlib。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Youtube Organic Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
youtube-organic-mcp
MCP server for YouTube organic analytics — channel stats, video performance, watch time, and audience engagement via the YouTube Data API v3 and YouTube Analytics API v2.
Built for Claude Code and any MCP-compatible AI tool. Gives your AI assistant direct, read-only access to your own channel's organic data — subscribers, views, watch time, per-video engagement, and day-by-day trends.
Part of The SEO Engine toolkit by Rex Jones — AI-powered SEO and social media tooling for agencies and businesses.
Why this exists
- No good open-source YouTube organic MCP existed. Plenty of ad MCPs; organic channel analytics, nobody.
- YouTube has the richest organic API of the major platforms. Watch time, average view duration, subscribers gained/lost, traffic sources — none of it gated behind a multi-week review.
- Reuses your existing Google OAuth. If you already run the GA4 / GSC / Google Ads MCPs, the same OAuth client works here.
Tools
All tools accept an optional account parameter for multi-account setups.
Getting connected
Step 1: Enable the APIs
In Google Cloud Console (any project — you can reuse an existing one), enable YouTube Data API v3 and YouTube Analytics API.
Step 2: Get a refresh token
Create an OAuth client of type Desktop app and download its client_secret JSON. Then run the helper (needs pip install google-auth-oauthlib):
Authorize with the Google account that owns the channel (pick the Brand Account if prompted). It prints the three YOUTUBE_* values to drop into your config and writes them to .youtube_account.json (gitignored).
Step 3: Configure
Add to your Claude Code MCP settings:
Or set YOUTUBE_ACCOUNTS to a JSON array for multiple channels (see .env.example).
Architecture
- Zero external HTTP dependencies — native
fetch(Node 18+) - Auto-refreshing auth — access tokens minted from the refresh token, cached per process
- Multi-account support — monitor multiple channels from one server
License
MIT
來源:README.md,提交 d3447fa
工具
0版本歷史
1- v1.0.0最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。