MCP YouTube Search
An MCP server that searches YouTube through SerpApi, for Claude, Cursor and other MCP clients: titles, links, channels, views, publish dates, durations and descriptions.
Requirements
- Python 3.10 or later (or uv)
- A SerpApi key in
SERP_API_KEY(serpapi.com has a free tier)
Use it from an MCP client
{
"mcpServers": {
"youtube-search": {
"command": "uvx",
"args": ["mcp-youtube-search", "server"],
"env": { "SERP_API_KEY": "your-serpapi-key" }
}
}
}
Or pip install mcp-youtube-search and use "command": "mcp-youtube-search", "args": ["server"].
Command line
export SERP_API_KEY="your-serpapi-key"
mcp-youtube-search search "model context protocol" --max-results 5
mcp-youtube-search server # MCP over stdio
mcp-youtube-search server --connection_type http --port 3002 # Streamable HTTP at http://127.0.0.1:3002/mcp
LOG_LEVEL=DEBUG shows more detail on stderr. The API key is never logged.
Tool
| Tool | What it does |
|---|---|
search_youtube |
Videos for a query. query; optional max_results (1-50, default 10), language (default en), country (default us). Returns structured results: title, link, channel, views, publish date, duration, thumbnail, description. |
Development
uv sync
uv run pytest
uv run ruff check .
License
MIT
Metadata
Release files for mcp-youtube-search 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_youtube_search-0.2.0.tar.gz | 91.4 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_youtube_search-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 97.7 kB
Release files / mcp_youtube_search-0.2.0.tar.gz
| Download URL | mcp_youtube_search-0.2.0.tar.gz |
|---|---|
| Size | 91.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d3634e120f88f003744d33403db2cc9baf281b9e154912d1158f05c1cf35c6b5
|
|
BLAKE2b-256 checksum How to use checksums |
fecc34ba85d43992ba557032ba2767e366d89d96c1b56c0f174e800b7e982187
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.
Transparency logRelease files / mcp_youtube_search-0.2.0-py3-none-any.whl
| Download URL | mcp_youtube_search-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
617279f4cfbfe03a3314d4865efdf93814568bf9d2d1bec82bedd6526017b2bc
|
|
BLAKE2b-256 checksum How to use checksums |
7c4528fe83f3c04283bb602986c00631a28e67b15356b7af229309a6b613eb5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.
Transparency logSecurity for mcp-youtube-search 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for mcp_youtube_search-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.