youtube-mcp-server
Exposes a user's personal YouTube channel data as tools: retrieve channel stats (subscribers, total views, video count), list recently published videos, get per-video analytics (views, likes, watch time) over a specified period, and search within the user's own videos. Authentication is done via a one-time Google OAuth flow that yields a refresh token stored as an environment variable.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@youtube-mcp-servershow my YouTube channel subscriber count and total views"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
youtube-mcp-server
Serveur MCP (Model Context Protocol) exposant tes données YouTube personnelles (chaîne, vidéos, analytics) comme outils utilisables depuis ChatGPT, Claude, ou tout autre client compatible MCP.
Outils exposés
get_channel_stats— abonnés, vues totales, nombre de vidéoslist_my_videos— dernières vidéos publiéesget_video_analytics— vues, likes, durée de visionnage sur une périodesearch_my_videos— recherche dans tes propres vidéos
Related MCP server: youtube-studio-mcp
Installation
npm installConfiguration
Les 4 premières variables d'environnement (
GOOGLE_CLIENT_ID,GOOGLE_CLIENT_SECRET,GOOGLE_REDIRECT_URI,MCP_AUTH_TOKEN) doivent déjà être configurées dans Vercel (Settings > Environment Variables).Obtenir le refresh token (une seule fois) :
Déploie ce projet sur Vercel
Visite
https://<ton-domaine>.vercel.app/api/oauth/startConnecte-toi avec ton compte Google (celui lié à ta chaîne YouTube)
Accepte les permissions demandées
Copie le
refresh_tokenaffiché sur la page de callbackAjoute-le comme variable d'environnement
YOUTUBE_REFRESH_TOKENdans Vercel, puis redéploie le projet
Connexion depuis ChatGPT / Claude
Ajoute un connecteur MCP personnalisé avec :
URL :
https://<ton-domaine>.vercel.app/api/mcpHeader d'authentification :
Authorization: Bearer <ton MCP_AUTH_TOKEN>
Sécurité
Ne commite jamais de fichier
.envcontenant de vraies valeurs (voir.env.examplepour la liste des variables nécessaires)Le
MCP_AUTH_TOKENprotège l'accès à/api/mcp— ne le partage avec personneLe
refresh_tokenn'est affiché qu'une seule fois lors du premier flow OAuth
This server cannot be deployed
Maintenance
Related MCP Connectors
YouTube transcripts, search, channel browsing, and playlists for AI agents via MCP.
YouTube transcripts, search, channel/playlist listings and upload tracking for AI agents.
Hosted MCP for YouTube Studio: uploads, metadata, playlists, comments, analytics, captions.
YouTube transcripts, search, channels, playlists and bulk transcript jobs for AI agents. 14 tools.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables AI models to interact with YouTube content through 18 MCP tools for videos, transcripts, channels, and playlists.17 npm-
- AlicenseAqualityCmaintenanceEnables AI assistants to retrieve YouTube channel overviews, Studio analytics, video performance, traffic source breakdowns, and comments for sentiment analysis using natural language prompts.81MIT
- AlicenseNot gradedqualityBmaintenanceEnables ChatGPT to retrieve current YouTube metadata, channel uploads, search results, and transcripts via read-only MCP tools.Apache 2.0
- AlicenseAqualityCmaintenanceEnables Claude to control a YouTube channel through MCP, including uploading and editing videos, scheduling releases, and reading channel and video analytics via official APIs.8MIT