Youtube Search
FreeNot checkedEnables searching YouTube videos via SerpAPI, returning video details such as title, link, channel, views, duration, and publish date.
About
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:
Set it as an environment variable:
export SERP_API_KEY="your_api_key_here"Or create a
.envfile 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.
Installing Youtube Search
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/arjunprabhulal/mcp-youtube-searchFAQ
Is Youtube Search MCP free?
Yes, Youtube Search MCP is free — one-click install via Unyly at no cost.
Does Youtube Search need an API key?
No, Youtube Search runs without API keys or environment variables.
Is Youtube Search hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Youtube Search in Claude Desktop, Claude Code or Cursor?
Open Youtube Search on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Omni Video
An MCP server that transforms LLM-enabled IDEs into professional video editors by pre-processing footage into text proxies, generating motion graphics via HTML/
by buildwithtazaARA
Generate images, video and audio from any AI agent — one connector.
by ARAYouTube
Transcripts, channel stats, search
by YouTubeEverArt
AI image generation using various models.
by modelcontextprotocolCompare Youtube Search with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All media MCPs
