Skip to main content
Glama
youtube-search-mcp

youtube-search-mcp

by iyer-surya98
README.md
# youtube-search-mcp

A local MCP server implementation that allows Claude Desktop to search for YouTube videos.

This project provides a simple MCP-compatible server that receives search queries and returns YouTube video results using the [youtube-search](https://github.com/joetats/youtube_search) library.

---

## Table of Contents

- [youtube-search-mcp](#youtube-search-mcp)
  - [Table of Contents](#table-of-contents)
  - [Features](#features)
  - [Requirements](#requirements)
  - [Installation](#installation)
    - [Using uv](#using-uv)
    - [Using pip](#using-pip)
  - [Configuration](#configuration)
  - [Usage](#usage)
  - [Links](#links)
  - [License](#license)

---

## Features

- Local MCP server for YouTube search
- Integrates with Claude Desktop
- Uses youtube-search-python library for video search (no API key required)
- Clean, streamlined JSON response format
- Searches YouTube directly without rate limits

## Requirements

- Python 3.13+
- [uv](https://docs.astral.sh/uv/) is optional but highly recommended for package management
- youtube-search-python package

## Installation

### Using uv
```sh
uv sync
```
### Using pip
Create a virtual environment, activate it, then run:
```sh
pip install -e .
```

## Configuration

No API key or additional configuration required! The server uses the youtube-search-python library which scrapes YouTube search results directly.

## Usage

Start the MCP server using `uv`:
```sh
uv run server.py
```
Or, if using pip:
```sh
.venv\Scripts\activate
python server.py
```

Then, configure Claude Desktop to use your local MCP server by adding the following to your Claude Desktop configuration file:

```json
{
  "mcpServers": {
    "youtube-search": {
      "command": "uv",
      "args": [
        "--directory",
        "path\\to\\youtube-search-mcp",
        "run",
        "server.py"
      ]
    }
  }
}
```

Or if using pip:
```json
{
  "mcpServers": {
    "youtube-search": {
      "command": "path\\to\\venv\\Scripts\\python.exe",
      "args": ["server.py"],
      "cwd": "path\\to\\youtube-search-mcp"
    }
  }
}
```

## Links
- [Model Context Protocol](https://modelcontextprotocol.io/)
- [Claude Desktop](https://claude.ai/download)
- [youtube-search-python](https://github.com/alexmercerind/youtube-search-python)
- [uv](https://docs.astral.sh/uv)

## License
MIT License. See LICENSE for details.

TDQS

D1.6/5.0

Scored across 1 tool

Disambiguation4/5

With a single tool there is no possibility of overlap or misselection between tools, so the set is inherently unambiguous. However, the tool has no description text at all, so an agent must infer its parameters and scope from the name alone.

Naming Consistency4/5

The lone tool follows a clear verb_noun pattern (search_for_youtube_videos) with snake_case, which is readable and self-descriptive. Consistency cannot really be demonstrated with only one name, and the 'for' connector is slightly verbose relative to canonical search_videos.

Tool Count2/5

A single tool is the bare minimum for a server advertised as YouTube search, leaving no room for supporting operations. The count is under-scoped for even a modest search workflow.

Completeness2/5

Only raw search exists; there is no way to fetch video details, channel info, transcripts, or paginate through results, so agents will hit dead ends after a search. The surface is severely thin for a YouTube search domain.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues