Skip to main content
Glama
kdr

yt-mcp-server

by kdr

yt-mcp-server

MCP server with various utility functions for dealing with YouTube data. This server provides tools for working with YouTube URLs, video IDs, and thumbnails.

📖 Resources

Related MCP server: YouTube MCP Server

Prerequisites

  • Python 3.12 or higher

  • UV package manager

Setup

1. Install UV

If you haven't installed UV yet, you can install it using:

brew install uv
# alternatively curl -LsSf https://astral.sh/uv/install.sh | sh

2. Installation Methods

This is the simplest way to install and run the server:

uvx --from git+https://github.com/kdr/yt-mcp-server.git server

Method 2: Local Development Setup

If you want to modify the code locally:

git clone https://github.com/kdr/yt-mcp-server.git
cd yt-mcp-server
uv venv
source .venv/bin/activate  # On Unix/macOS
# or
.venv\Scripts\activate  # On Windows
uv pip install -e .

3. Configure MCP Client

Add the following configuration to your MCP client settings:

{
    "mcpServers": {
        "yt-mcp-server": {
            "command": "uvx",
            "args": [
                "--from",
                "git+https://github.com/kdr/yt-mcp-server.git",
                "server"
            ]
        }
    }
}

For local development (Method 2), use this configuration instead:

{
    "mcpServers": {
        "yt-mcp-server": {
            "command": "uv",
            "args": [
                "--directory",
                "/ABSOLUTE/PATH/TO/PARENT/FOLDER/yt-mcp-server/yt_mcp_server",
                "run",
                "main.py"
            ]
        }
    }
}

Available Tools

The following tools are available to the LLM:

  • get_watch_url: Returns the YouTube watch URL for a given video ID, optionally starting at a specific time

    • Parameters:

      • video_id: The YouTube video ID

      • start_time: (Optional) The start time in seconds

  • get_thumbnail_url: Returns the thumbnail URL for a given YouTube video ID

    • Parameters:

      • video_id: The YouTube video ID

  • get_normalized_url: Normalizes various YouTube URL formats to the canonical watch URL and extracts the video ID

    • Parameters:

      • url: The YouTube URL to normalize

Available Tools

3 tools
get_normalized_urlA

Returns the normalized YouTube URL for a given URL.

Args:
    url: The YouTube URL to normalize.
ParametersJSON Schema
NameRequiredDescriptionDefault
urlYes

TDQS

A3.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It only states the action ('returns normalized URL') without disclosing edge cases, error handling, side effects, or the meaning of 'normalized.' For a simple tool this is minimally transparent, but significant behavioral context is missing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very concise: one sentence plus an Args block. It is front-loaded with the main purpose and contains no redundant or irrelevant information. Every element earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter, no-annotation, no-output-schema tool, the description covers the basic function and parameter meaning. However, it does not explain what 'normalized' entails, the exact return format, or how this differs from sibling tools. This leaves some contextual gaps for an agent deciding between tools.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema provides no description for the 'url' parameter (0% coverage), but the description's Args section explains it as 'The YouTube URL to normalize.' This adds meaningful semantics beyond the raw string type, adequately compensating for the lack of schema documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: 'Returns the normalized YouTube URL for a given URL.' This uses a specific verb (returns) and resource (normalized YouTube URL), and the purpose is distinct from sibling tools like get_watch_url and get_thumbnail_url, which return different URL forms.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage: when given a YouTube URL, this tool normalizes it. However, it does not explicitly state when to use this tool over the sibling tools, nor does it mention any exclusions or alternatives. The usage context is clear but not elaborated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_thumbnail_urlB

Returns the thumbnail URL for a given YouTube video ID.

Args:
    video_id: The YouTube video ID.
ParametersJSON Schema
NameRequiredDescriptionDefault
video_idYes

TDQS

B3.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden of behavioral disclosure. It does not mention whether the URL is always valid, whether any network request occurs, or what happens for invalid video IDs. This lack of detail leaves the agent uncertain about edge cases.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise, with a single declarative sentence and an Args block that adds semantic context. It is well-structured, though the Args block partially duplicates the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter utility, the description covers the basic purpose and parameter meaning. However, it omits any details about the return value's format or possible failure modes, which is significant given the absence of an output schema and annotations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description explicitly labels video_id as 'The YouTube video ID', which adds semantic meaning beyond the schema's plain string type. This clarifies the expected input, though it lacks format constraints like typical ID length.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: it returns the thumbnail URL for a YouTube video ID. This is a specific verb+resource and distinguishes it from sibling tools like get_watch_url and get_normalized_url.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus the sibling URL utilities. It simply states the operation without context or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_watch_urlA

Returns the YouTube watch URL for a given video ID, optionally starting at a specific time.

Args:
    video_id: The YouTube video ID.
    start_time: The start time in seconds 
ParametersJSON Schema
NameRequiredDescriptionDefault
video_idYes
start_timeNo

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the burden of disclosing behavior. It states it returns a URL and optionally includes a start time, but it does not clarify the exact URL format, whether video_id is validated, or how start_time is encoded. No contradictory claims are present.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded with a clear one-sentence purpose followed by an Args list. Every line provides necessary information, with no filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple utility with two parameters and no output schema, the description covers the primary purpose and both parameters adequately. It does not detail the return type or URL structure, but this is not critical given the tool's simplicity. The lack of sibling differentiation is a minor completeness gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate. It does so by explaining video_id as 'The YouTube video ID' and start_time as 'The start time in seconds', adding units and meaning beyond the bare parameter names. However, it does not specify constraints like non-negative start_time or how the time appears in the URL.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Returns') and resource ('YouTube watch URL'), clearly distinguishing it from sibling tools like get_thumbnail_url and get_normalized_url. It also mentions the optional start_time parameter, making the tool's purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when a watch URL is needed and mentions the optional start time, but it does not explicitly state when to use this tool versus alternatives or provide any exclusion criteria. The presence of sibling tools (thumbnail/normalized) makes the lack of comparison a minor gap.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 3 tool updatesv0.1.0
    • First observedget_normalized_url
    • First observedget_thumbnail_url
    • First observedget_watch_url

TDQS

A4/5.0

Scored across 3 tools

Disambiguation5/5

Each tool targets a distinct output: watch URL, thumbnail URL, and normalized URL. Inputs differ (video ID vs. URL), so there is no overlap or ambiguity.

Naming Consistency5/5

All tools follow a consistent get_ verb_noun pattern, clearly indicating the returned resource. The naming convention is uniform and predictable.

Tool Count5/5

The server is narrowly scoped to YouTube URL helpers, and 3 tools is an appropriate size for this purpose. Each tool earns its place without redundancy.

Completeness5/5

The server covers the core operations for URL generation, thumbnails, and normalization. The get_normalized_url tool effectively handles URL parsing and standardization, leaving no obvious missing functionality.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that enables interaction with the YouTube Data API, allowing users to search videos, get video and channel details, analyze trends, and fetch video transcripts.
    -
  • A
    license
    A
    quality
    C
    maintenance
    An MCP server that enables the extraction of transcripts and detailed metadata from YouTube videos. It allows users to retrieve video information like titles and descriptions, as well as transcripts with optional timestamps and language selection.
    2
    MIT