YouTube MCP Server
Overview
YouTube MCP Server is an implementation of a Model Context Protocol (MCP) server that utilizes the YouTube Data API, allowing AI language models to interact with YouTube content through a standardized interface.
To use the YouTube MCP Server, you can install it automatically via Smithery or manually by cloning the repository and setting up the environment variables required for the YouTube Data API.
- Retrieve detailed video information (title, description, length, etc.) - Manage subtitles with multi-language support - Access channel statistics and popular videos - Analyze trends and engagement metrics for videos
- Managing and retrieving video details for applications.
- Analyzing video trends and performance metrics.
- Integrating YouTube content into AI-driven applications.
Add to your AI client
Use these steps to connect YouTube MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"youtube-data-mcp-server-icraft2170": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-youtube-data-mcp-server-icraft2170"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"youtube-data-mcp-server-icraft2170": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-youtube-data-mcp-server-icraft2170"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"youtube-data-mcp-server-icraft2170": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-youtube-data-mcp-server-icraft2170"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"youtube-data-mcp-server-icraft2170": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-youtube-data-mcp-server-icraft2170"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"youtube-data-mcp-server-icraft2170": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-youtube-data-mcp-server-icraft2170"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"youtube-data-mcp-server-icraft2170": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-youtube-data-mcp-server-icraft2170"
]
}
}
}FAQ
What is required to run the YouTube MCP Server?
You need a valid YouTube Data API key and to set up the environment variables accordingly.
Can I use this server for any YouTube channel?
Yes, as long as you have the necessary API access and permissions.
Is there a license for this project?
Yes, this project is licensed under the MIT License.