Cover image
Try Now
2025-03-21

MCP服务器有助于成绩单YouTube视频

3 years

Works with Finder

1

Github Watches

1

Github Forks

0

Github Stars

YouTube Transcript API

A Python service that provides APIs to fetch and transcribe YouTube video content. It supports both REST API (Flask) and MCP server implementations.

Features

  • Fetch YouTube video transcripts in multiple languages (English and Vietnamese)
  • Auto-detect and use available transcripts
  • Fallback to audio transcription using Whisper when transcripts are unavailable
  • Support for both REST API and MCP server interfaces
  • Automatic language detection
  • Temporary file cleanup
  • Progress reporting for long-running operations

Installation

pip install -r requirements.txt

Usage

REST API (Flask)

Start the Flask server:

python apps/flask_server.py

Available endpoints:

  • GET /transcript?video_id=<video_id>&language=<lang> - Get video transcript
  • GET /video/info?video_id=<video_id> - Get video information
  • GET /health - Health check endpoint

MCP Server

Start the MCP server:

python apps/mcp_server.py

Available tools:

  • get_transcript(video_id, language) - Get video transcript
  • extract_transcript(video_id, language) - Extract transcript from audio
  • search_youtube_video(query) - Search for YouTube videos

Language Support

  • English (en)
  • Vietnamese (vi)
  • Auto-detection for other languages

Dependencies

  • youtube-transcript-api
  • pytube
  • whisper
  • torch
  • langdetect
  • flask (for REST API)
  • mcp (for MCP server)

Development

The project structure:

apps/
├── __init__.py
├── flask_server.py  # REST API implementation
├── mcp_server.py    # MCP server implementation
└── utils.py         # Shared utilities

License

MIT License

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

    Reviews

    3 (1)
    Avatar
    user_b0DQi2Ow
    2025-04-15

    As a dedicated MCP application user, I am thoroughly impressed with Chargebee. This product seamlessly streamlines subscription management and billing processes. The interface is user-friendly and integrates effortlessly with various platforms. The support from the main author is commendable, ensuring smooth operations. Highly recommended for anyone looking to efficiently manage their billing systems!