youtube-mcp

youtube-mcp

3.2

If you are the rightful owner of youtube-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A FastAPI-based MCP server that provides YouTube video metadata and transcripts as a tool for Cursor and other MCP clients.

The YouTube MCP Server is a FastAPI-based application designed to provide metadata and transcripts for YouTube videos. It serves as a tool for Cursor and other MCP clients, allowing them to fetch detailed information about YouTube videos through a single endpoint. The server is capable of retrieving video titles, descriptions, authors, publish dates, view counts, tags, and thumbnails. Additionally, it can fetch transcripts in English, with a fallback to Arabic if English is unavailable. The server is built with robust error handling to ensure reliable metadata and transcript retrieval. It requires Python 3.10+ and several dependencies, including FastAPI, yt-dlp, and youtube-transcript-api. The server can be easily integrated with MCP clients by configuring the client's tool list to point to the server's endpoint.

Features

  • Fetches video title, description, author, publish date, view count, tags, and best thumbnail.
  • Retrieves transcript in English or falls back to Arabic if English is not available.
  • Exposes a single `/youtube-info` endpoint as an MCP tool.
  • Robust error handling for both metadata and transcript retrieval.

Tools

  1. /youtube-info

    Endpoint to fetch YouTube video metadata and transcripts.