This n8n demonstrates how to build a simple YouTube MCP server to look up videos on YouTube and download their transcripts for research purposes.

YouTube videos are a great source of new and updated information on a variety of cutting-edge developments, but they’re not always simple to understand, and lengthy videos may take too much time. Using this MCP server, you can extract and feed their transcripts for your AI agents, which then allows it to break down the content into manageable learnings and insights.

How it works

A MCP server trigger is used and connected to three custom workflow tools: YouTube Search, YouTube Transcripts, and Usage Reports. Both YouTube tools use an external scraping service called APIFY.com. This is my preference as it’s a much simpler interface and there are no rate limits.

The YouTube Search fetches 10 results based on the user’s query.

The YouTube Transcripts downloads the subtitles from one or more given URLs.

The usage reports pull in your monthly APIFY.com spending and limits as a way to check your account.

How to use

This Apify YouTube MCP server allows any compatible MCP client to research YouTube videos for any desired topic. An Apify account is required, however, to connect and use the service.

Connect your MCP client by following the n8n guidelines.

Alternatively, connect any n8n AI agent with the MCP client tool.

Try the following queries in your MCP client:

– “What is MCP?”
– “How can I use MCP in n8n?”
– “How can I use Apify’s official MCP server?”

Requirements

– APIFY.com for YouTube Scraping. This is a paid service, but there is a $5 free tier which is ample for this template.
– MCP Client or Agent for usage such as Claude Desktop.

Customizing this workflow

Add as many APIFY.com actors as required for your use case or users. Consider using Apify’s official MCP server for 4000+ available tools.

Remember to set the MCP server to require credentials before going to production and sharing this MCP server with others!