Cover image
Try Now
2025-03-15

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

YouTube MCP Server

A Flask server that interacts with the YouTube Data API to search for songs and retrieve video links.


Features

  • Search for songs using the YouTube Data API.
  • Retrieve video titles and URLs.
  • Free to use (no Premium subscription required).

Prerequisites

  1. Python 3.x: Install from python.org.
  2. YouTube Data API Key: Get it from the Google Cloud Console.

Setup

1. Clone the Repository

git clone https://github.com/your-username/mcp-server.git cd youtube-mcp-server

2. Set Up a Virtual Environment

Create and activate a virtual environment: python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate

3. Install Dependencies

Install the required Python packages

4. Set Up Environment Variables

Create a .env file in the project folder. Add your YouTube API key to the .env file: YOUTUBE_API_KEY=your_api_key_here

5. Run the Server

Start the Flask server:python app.py The server will run at http://localhost:5000.

Usage

Search for a Song Send a POST request to the /search endpoint with the following JSON body: { "song_name": "Shape of You" }

Example Response If the song is found, the server will return: { "status": "success", "message": "Found video: Shape of You - Ed Sheeran", "video_title": "Shape of You - Ed Sheeran", "video_url": "https://www.youtube.com/watch?v=JGwWNGJdvx8" } If no results are found, the server will return: { "status": "error", "message": "No videos found for 'Shape of You'" }

API Endpoints

GET /: Home page (returns "YouTube MCP Server is running!").

POST /search: Search for a song and retrieve video details.

Contributing

Contributions are welcome! Follow these steps to contribute: Fork the repository. Create a new branch (git checkout -b feature/your-feature). Commit your changes (git commit -m 'Add some feature'). Push to the branch (git push origin feature/your-feature). Open a pull request.

Contact

For questions or feedback, feel free to reach out: Your Name: rakeshjayanna19@gmail.com GitHub: rakeshjayanna


How to Use This README

  1. Copy the content above into a file named README.md in your project folder.
  2. Replace your-username in the clone URL with your GitHub username.
  3. Replace your_api_key_here with your actual YouTube Data API key.
  4. Customize the Contact section with your details.

Final Notes

  • The README file is the first thing people see when they visit your GitHub repository. Make sure it’s clear, concise, and easy to follow.
  • If you need further customization or have questions, let me know! 😊

相关推荐

  • 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.

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

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • 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.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

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

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

  • OffchainLabs
  • 进行以太坊的实施

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

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

    Reviews

    5 (1)
    Avatar
    user_7MNp6vit
    2025-04-16

    I've been using YouTube-MCP-Server by rakeshjayanna and it's truly a game-changer for managing YouTube content via MCP applications. The seamless integration and easy-to-follow instructions make it a top choice for developers looking to optimize their workflow. Highly recommended! For more details, check out the [GitHub page](https://github.com/rakeshjayanna/YouTube-MCP-Server).