Sponsored by Deepsite.site

MCP Server: Youtube Subtitles Extractor

Created By
aliencube8 months ago
This is an MCP server that extracts subtitles from a given YouTube link
Content

MCP Server: Youtube Subtitles Extractor

👉👉👉 MOVED TO https://github.com/microsoft/mcp-dotnet-samples 👈👈👈

This is an MCP server that extracts subtitles from a given YouTube link.

Prerequisites

Getting Started

Run Azure Functions MCP server locally

  1. Get the repository root

    # bash/zsh
    REPOSITORY_ROOT=$(git rev-parse --show-toplevel)
    
    # PowerShell
    $REPOSITORY_ROOT = git rev-parse --show-toplevel
    
  2. Run the function app

    cd $REPOSITORY_ROOT/src/McpYouTubeSubtitlesExtractor.FunctionApp
    func start
    

Run Azure Functions MCP server remotely

  1. Login to Azure

    # Login with Azure CLI
    az login
    
    # Login with Azure Developer CLI
    azd auth login
    
  2. Deploy the Function app to Azure

    azd up
    

    While provisioning and deploying, you'll be asked to provide subscription ID, location, environment name and vNet

  3. After the deployment is complete, get the information by running the following commands:

    • function app name:

      azd env get-value AZURE_FUNCTION_NAME
      
    • MCP server access key:

      # bash/zsh
      az functionapp keys list \
          -g rg-$(azd env get-value AZURE_ENV_NAME) \
          -n $(azd env get-value AZURE_FUNCTION_NAME) \
          --query "systemKeys.mcp_extension" -o tsv
      
      # PowerShell
      az functionapp keys list `
          -g rg-$(azd env get-value AZURE_ENV_NAME) `
          -n $(azd env get-value AZURE_FUNCTION_NAME) `
          --query "systemKeys.mcp_extension" -o tsv
      

Connect MCP server to an MCP host/client

VS Code + Agent Mode + Local MCP server

  1. Open Command Palette by typing F1 or Ctrl+Shift+P on Windows or Cmd+Shift+P on Mac OS, and search MCP: List Servers.

  2. Choose mcp-youtube-subtitles-extractor-function-local then click Start Server.

  3. Enter prompt like:

    Summarise this YouTube video link in 5 bullet points: https://youtu.be/XwnEtZxaokg?si=V39ta45iMni_Uc_m
    
  4. It will ask you to run get_available_languages followed by get_subtitle. You might be asked to choose language for the subtitle.

  5. Confirm the summary of the video.

MCP Inspector + Local MCP server

  1. Run MCP Inspector

    npx @modelcontextprotocol/inspector node build/index.js
    
  2. Open a web browser and navigate to the MCP Inspector web app from the URL displayed by the app (e.g. http://0.0.0.0:5173)

  3. Set the transport type to SSE

  4. Set the URL to your running Function app's SSE endpoint and Connect:

    http://0.0.0.0:7071/runtime/webhooks/mcp/sse
    
  5. Click List Tools.

  6. Click on a tool and Run Tool with a YouTube link and language code like en or ko.

VS Code + Agent Mode + Remote MCP server

  1. Open Command Palette by typing F1 or Ctrl+Shift+P on Windows or Cmd+Shift+P on Mac OS, and search MCP: List Servers.

  2. Choose mcp-youtube-subtitles-extractor-function-remote then click Start Server.

  3. Enter the function app name.

  4. Enter the MCP server access key.

  5. Enter prompt like:

    Summarise this YouTube video link in 5 bullet points: https://youtu.be/XwnEtZxaokg?si=V39ta45iMni_Uc_m
    
  6. It will ask you to run get_available_languages followed by get_subtitle. You might be asked to choose language for the subtitle.

  7. Confirm the summary of the video.

MCP Inspector + Remote MCP server

  1. Run MCP Inspector

    npx @modelcontextprotocol/inspector node build/index.js
    
  2. Open a web browser and navigate to the MCP Inspector web app from the URL displayed by the app (e.g. http://0.0.0.0:5173)

  3. Set the transport type to SSE

  4. Set the URL to your running Function app's SSE endpoint and Connect:

    https://<functionapp-name>.azurewebsites.net/runtime/webhooks/mcp/sse?code=<functions-mcp-extension-system-key>
    
  5. Click List Tools.

  6. Click on a tool and Run Tool with a YouTube link and language code like en or ko.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
CursorThe AI Code Editor
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
ChatWiseThe second fastest AI chatbot™
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
DeepChatYour AI Partner on Desktop
Tavily Mcp
Playwright McpPlaywright MCP server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Amap Maps高德地图官方 MCP Server
WindsurfThe new purpose-built IDE to harness magic
Serper MCP ServerA Serper MCP Server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.