Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

YouTube Organic MCP

by lanternrowversion 1.0.0i★ 0iRuns on your computer
Registry nameio.github.lanternrow/youtube-organic-mcp

How to install

What it does

YouTube organic analytics — channel stats, video performance, watch time & audience insights.

  • Connects Runs on your computer
  • Account or key Needs YOUTUBE_CLIENT_SECRET, YOUTUBE_REFRESH_TOKEN · 1 setting to fill in (YOUTUBE_CLIENT_ID)
  • Category Marketing & social media

Install

Pick the AI app you use, then copy the settings.

Passed 2/3 checks · Runs on your computer · ✓ Commands checked Nov 13, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

You need a YouTube Organic MCP key (create it on the maker’s site) · 1 setting(s) to fill in (YOUTUBE_CLIENT_ID) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server YouTube Organic MCP for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "youtube-organic": { "command": "npx", "args": [ "-y", "youtube-organic-mcp" ], "env": { "YOUTUBE_CLIENT_ID": "your-value", "YOUTUBE_CLIENT_SECRET": "your-value", "YOUTUBE_REFRESH_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For YOUTUBE_CLIENT_SECRET, YOUTUBE_REFRESH_TOKEN, YOUTUBE_CLIENT_ID, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the YouTube Organic MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a YouTube Organic MCP key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    How to get a key is in the maker’s README below

  3. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • YOUTUBE_CLIENT_ID Google OAuth client ID for the YouTube Data + Analytics APIs

    Descriptions are as written by the maker.

  4. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  5. Paste these settings and save the file

    {
      "mcpServers": {
        "youtube-organic": {
          "command": "npx",
          "args": [
            "-y",
            "youtube-organic-mcp"
          ],
          "env": {
            "YOUTUBE_CLIENT_ID": "your-value",
            "YOUTUBE_CLIENT_SECRET": "your-value",
            "YOUTUBE_REFRESH_TOKEN": "your-value"
          }
        }
      }
    }

    Paste the key only into the app’s field, never into a chat or to anyone

  6. Quit Claude and open it again

  7. Try it

    Use YouTube Organic MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using YouTube Organic MCP or shows a YouTube Organic MCP tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect YouTube Organic MCP yet

YouTube Organic MCP runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect YouTube Organic MCP

  • You need a YouTube Organic MCP key (create it on the maker’s site) · 1 setting(s) to fill in (YOUTUBE_CLIENT_ID) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • You need a YouTube Organic MCP key (create it on the maker’s site) · 1 setting(s) to fill in (YOUTUBE_CLIENT_ID) · Install Node.js on your computer first (one time)
  • You need a YouTube Organic MCP key (create it on the maker’s site) · 1 setting(s) to fill in (YOUTUBE_CLIENT_ID) · Install Node.js on your computer first (one time)
  • You need a YouTube Organic MCP key (create it on the maker’s site) · 1 setting(s) to fill in (YOUTUBE_CLIENT_ID) · Install Node.js on your computer first (one time)

B · Others in Marketing & social media that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

You need a YouTube Organic MCP key (create it on the maker’s site) · 1 setting(s) to fill in (YOUTUBE_CLIENT_ID) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server YouTube Organic MCP for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user youtube-organic --env YOUTUBE_CLIENT_ID=your-value --env YOUTUBE_CLIENT_SECRET=your-value --env YOUTUBE_REFRESH_TOKEN=your-value -- npx -y youtube-organic-mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For YOUTUBE_CLIENT_SECRET, YOUTUBE_REFRESH_TOKEN, YOUTUBE_CLIENT_ID, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the YouTube Organic MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a YouTube Organic MCP key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    How to get a key is in the maker’s README below

  3. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • YOUTUBE_CLIENT_ID Google OAuth client ID for the YouTube Data + Analytics APIs

    Descriptions are as written by the maker.

  4. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  5. Paste this command and press Enter

    claude mcp add --scope user youtube-organic --env YOUTUBE_CLIENT_ID=your-value --env YOUTUBE_CLIENT_SECRET=your-value --env YOUTUBE_REFRESH_TOKEN=your-value -- npx -y youtube-organic-mcp

    Replace “your-value” with your key before pressing Enter

    Paste the key only into the app’s field, never into a chat or to anyone

  6. Type /mcp in Claude Code

    You should see YouTube Organic MCP listed as connected

  7. Try it

    Use YouTube Organic MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using YouTube Organic MCP or shows a YouTube Organic MCP tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

You need a YouTube Organic MCP key (create it on the maker’s site) · 1 setting(s) to fill in (YOUTUBE_CLIENT_ID) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server YouTube Organic MCP for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "youtube-organic": { "command": "npx", "args": [ "-y", "youtube-organic-mcp" ], "env": { "YOUTUBE_CLIENT_ID": "your-value", "YOUTUBE_CLIENT_SECRET": "your-value", "YOUTUBE_REFRESH_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For YOUTUBE_CLIENT_SECRET, YOUTUBE_REFRESH_TOKEN, YOUTUBE_CLIENT_ID, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the YouTube Organic MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a YouTube Organic MCP key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    How to get a key is in the maker’s README below

  3. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • YOUTUBE_CLIENT_ID Google OAuth client ID for the YouTube Data + Analytics APIs

    Descriptions are as written by the maker.

  4. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  5. Fill in your key

    In the YouTube Organic MCP settings, YOUTUBE_CLIENT_SECRET, YOUTUBE_REFRESH_TOKEN, YOUTUBE_CLIENT_ID is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  6. Open the AI chat in Cursor in Agent mode

  7. Try it

    Use YouTube Organic MCP and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using YouTube Organic MCP or shows a YouTube Organic MCP tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

You need a YouTube Organic MCP key (create it on the maker’s site) · 1 setting(s) to fill in (YOUTUBE_CLIENT_ID) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server YouTube Organic MCP for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "youtube-organic": { "type": "stdio", "command": "npx", "args": [ "-y", "youtube-organic-mcp" ], "env": { "YOUTUBE_CLIENT_ID": "your-value", "YOUTUBE_CLIENT_SECRET": "your-value", "YOUTUBE_REFRESH_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For YOUTUBE_CLIENT_SECRET, YOUTUBE_REFRESH_TOKEN, YOUTUBE_CLIENT_ID, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the YouTube Organic MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a YouTube Organic MCP key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    How to get a key is in the maker’s README below

  3. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • YOUTUBE_CLIENT_ID Google OAuth client ID for the YouTube Data + Analytics APIs

    Descriptions are as written by the maker.

  4. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  5. Fill in your key

    In the YouTube Organic MCP settings, YOUTUBE_CLIENT_SECRET, YOUTUBE_REFRESH_TOKEN, YOUTUBE_CLIENT_ID is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  6. Open the AI chat in VS Code in Agent mode

  7. Try it

    Use YouTube Organic MCP and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using YouTube Organic MCP or shows a YouTube Organic MCP tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use YouTube Organic MCP💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user youtube-organic --env YOUTUBE_CLIENT_ID=your-value --env YOUTUBE_CLIENT_SECRET=your-value --env YOUTUBE_REFRESH_TOKEN=your-value -- npx -y youtube-organic-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "youtube-organic": {
      "command": "npx",
      "args": [
        "-y",
        "youtube-organic-mcp"
      ],
      "env": {
        "YOUTUBE_CLIENT_ID": "your-value",
        "YOUTUBE_CLIENT_SECRET": "your-value",
        "YOUTUBE_REFRESH_TOKEN": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "youtube-organic": {
      "command": "npx",
      "args": [
        "-y",
        "youtube-organic-mcp"
      ],
      "env": {
        "YOUTUBE_CLIENT_ID": "your-value",
        "YOUTUBE_CLIENT_SECRET": "your-value",
        "YOUTUBE_REFRESH_TOKEN": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "youtube-organic": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "youtube-organic-mcp"
      ],
      "env": {
        "YOUTUBE_CLIENT_ID": "your-value",
        "YOUTUBE_CLIENT_SECRET": "your-value",
        "YOUTUBE_REFRESH_TOKEN": "your-value"
      }
    }
  }
}

Values you fill in

  • YOUTUBE_CLIENT_ID required env
    Google OAuth client ID for the YouTube Data + Analytics APIs
  • YOUTUBE_CLIENT_SECRET secret required env
    Google OAuth client secret
  • YOUTUBE_REFRESH_TOKEN secret required env
    Google OAuth refresh token (offline access) for the channel owner

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
34/wk
Licencei
No licence stated
Connection
Runs on your computer
Latest versioni
1.0.0
Published to registryi
Jun 29, 2026
Code last changedi
Nov 8, 2026
Maker
lanternrow
Packages
npm: youtube-organic-mcp
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 15, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account lanternrow, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 7 days ago

  • ✕ Fail

    Has a licence

    No licence file found in the repo

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for youtube-organic-mcp@1.0.0

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Marketing & social mediai

  • More stars than 0% of the other 3967 servers in this category
  • Published to the registry more recently than 12% of the other 3967 servers in this category
  • Basic checks equal to or better than 55% of the other 3967 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is YouTube Organic MCP safe?

It passed 2 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: YOUTUBE_CLIENT_SECRET, YOUTUBE_REFRESH_TOKEN

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 7 days ago, and the latest version (1.0.0) reached the registry 5 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Relaticle, ChatbotX, X (Twitter) MCP Server by Xquik, Betterlytics, BibiGPT YouTube Video Summarizer

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Relaticle

Open-source CRM your AI agents can write to: companies, people, opportunities, tasks and notes.

by relaticleGrowing★ 1.8KUpdated 2 days ago

Runs in the cloud✓ service owner · relaticle.com

ChatbotX

Omnichannel customer messaging, CRM contacts, flows, sequences, broadcasts, and AI automation.

by ChatbotXIOGrowing★ 1.1K Stars for the whole repoUpdated 9 days ago

Runs in the cloud✓ service owner · chatbotx.io

Betterlytics

Query your Betterlytics web analytics from AI agents: traffic, funnels, journeys, errors, uptime.

by betterlyticsGrowing★ 193Updated 3 months ago

Runs in the cloud✓ service owner · betterlytics.io

BibiGPT YouTube Video Summarizer

AI video summarizer: summarize and transcribe YouTube, Bilibili, TikTok and podcast videos.

by JimmyLvGrowing★ 141Updated 18 days ago

Runs in the cloud✓ service owner · bibigpt.co

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

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](https://lanternrow.com/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

ToolDescription
list_accountsList configured channels and the default
get_channel_infoChannel profile + lifetime stats (subscribers, total views, video count, uploads playlist)
get_videosPaginated uploads with per-video views, likes, comments, duration
get_video_detailsDetails for specific video IDs (batch up to 50)
get_channel_analyticsChannel analytics over a date range: views, watch time, avg view duration/%, subs gained/lost, likes, comments, shares — optionally by day
get_video_analyticsThe same metrics for a single video over a date range

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):

python3 scripts/get_youtube_token.py /path/to/client_secret.json my-channel

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:

{

"mcpServers": { "youtube-organic": { "command": "node", "args": ["/path/to/youtube-organic-mcp/dist/index.js"], "env": { "YOUTUBE_CLIENT_ID": "your_client_id.apps.googleusercontent.com", "YOUTUBE_CLIENT_SECRET": "your_client_secret", "YOUTUBE_REFRESH_TOKEN": "1//your_refresh_token" } } } }

Or set YOUTUBE_ACCOUNTS to a JSON array for multiple channels (see .env.example).

Architecture

src/

index.ts # MCP server entry point, tool registration accounts.ts # Multi-account resolution (client_id/secret/refresh_token) client.ts # OAuth token minting + Data/Analytics API HTTP client types.ts # TypeScript interfaces for API responses tools/ channel.ts # get_channel_info + uploads-playlist resolver videos.ts # get_videos, get_video_details analytics.ts # get_channel_analytics, get_video_analytics

  • 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