Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Youtube Search

БесплатноНе проверен

Enables searching YouTube videos via SerpAPI, returning video details such as title, link, channel, views, duration, and publish date.

GitHubEmbed

Описание

Enables searching YouTube videos via SerpAPI, returning video details such as title, link, channel, views, duration, and publish date.

README

A Python package for searching YouTube videos via SerpAPI, with an MCP server implementation.

Installation

Install from PyPI:

pip install mcp-youtube-search

Requirements

  • Python 3.11+
  • SerpAPI API key (get one at serpapi.com)

Usage

Set your API key

You can set your SerpAPI API key in one of two ways:

  1. Set it as an environment variable:

    export SERP_API_KEY="your_api_key_here"
    
  2. Or create a .env file with the following content:

    SERP_API_KEY=your_api_key_here
    

As a Python library

from mcp_youtube_search.search import YouTubeSearch

# Initialize with API key
search = YouTubeSearch(api_key="your_api_key_here")  # or omit to use env var

# Search for videos
results = search.search("python tutorial", max_results=5)

# Process results
for video in results["results"]:
    print(f"Title: {video['title']}")
    print(f"Link: {video['link']}")
    print(f"Channel: {video['channel']}")
    print(f"Views: {video['views']}")
    print(f"Duration: {video['duration']}")
    print(f"Published: {video['published_date']}")
    print("---")

As a command-line tool

Search for videos:

mcp-youtube-search search "python tutorial" --max-results 5

Run as an MCP server:

mcp-youtube-search server

MCP Server Integration

The package can be used as an MCP server for integration with AI assistants:

from mcp_youtube_search.mcp_server import run_server

# Run the server with an optional API key (or use env var)
run_server(api_key="your_api_key_here")

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

from github.com/arjunprabhulal/mcp-youtube-search

Установка Youtube Search

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/arjunprabhulal/mcp-youtube-search

FAQ

Youtube Search MCP бесплатный?

Да, Youtube Search MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Youtube Search?

Нет, Youtube Search работает без API-ключей и переменных окружения.

Youtube Search — hosted или self-hosted?

Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.

Как установить Youtube Search в Claude Desktop, Claude Code или Cursor?

Открой Youtube Search на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Youtube Search with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории media