Skip to main content
Glama
tuyennn

Xiaozhi YouTube MCP

by tuyennn

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOSTNoHTTP bind host0.0.0.0
PORTNoHTTP port3000
MCP_PATHNoMCP HTTP route/mcp
MCP_TRANSPORTNoTransport mode: stdio or httpstdio
YOUTUBE_API_KEYYesGoogle API key for YouTube Data API v3 (required)
YOUTUBE_REGION_CODENoISO two-letter region codeVN
YOUTUBE_SAFE_SEARCHNoSafeSearch setting: none, moderate, or strictmoderate
YOUTUBE_CACHE_TTL_SECONDSNoCache TTL in seconds for API responses300
YOUTUBE_RELEVANCE_LANGUAGENoSearch relevance languagevi
YOUTUBE_DEFAULT_MAX_RESULTSNoDefault number of search results (max 10)5

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
youtube_search_songA

Search YouTube Music-category videos and return playable YouTube URLs. Use this when the user asks to find or play a song.

youtube_play_songB

Find the best matching song and return one playback-ready YouTube URL. Prefer this for direct voice commands such as 'play...'

youtube_get_videoB

Get title, channel, duration, views, thumbnail, and playback URL for a YouTube video ID.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 3 tools

Disambiguation4/5

Tools are distinct: search returns multiple URLs, play returns one best match, get provides metadata. However, search and play both handle song queries, causing slight overlap, but descriptions clarify their usage.

Naming Consistency5/5

All tools follow a consistent 'youtube_verb_noun' pattern (search_song, play_song, get_video), using underscores and clear action-object format.

Tool Count5/5

Three tools is appropriate for a focused YouTube music MCP server, covering search, playback, and metadata without unnecessary bloat.

Completeness4/5

Covers core music workflows: searching songs, playing, and getting video details. Minor gaps like playlist or recommendation support exist but are outside stated scope.

Maintenance

ActivityMaintained
ResponsivenessSyncing