Xiaozhi YouTube MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HOST | No | HTTP bind host | 0.0.0.0 |
| PORT | No | HTTP port | 3000 |
| MCP_PATH | No | MCP HTTP route | /mcp |
| MCP_TRANSPORT | No | Transport mode: stdio or http | stdio |
| YOUTUBE_API_KEY | Yes | Google API key for YouTube Data API v3 (required) | |
| YOUTUBE_REGION_CODE | No | ISO two-letter region code | VN |
| YOUTUBE_SAFE_SEARCH | No | SafeSearch setting: none, moderate, or strict | moderate |
| YOUTUBE_CACHE_TTL_SECONDS | No | Cache TTL in seconds for API responses | 300 |
| YOUTUBE_RELEVANCE_LANGUAGE | No | Search relevance language | vi |
| YOUTUBE_DEFAULT_MAX_RESULTS | No | Default number of search results (max 10) | 5 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tuyennn/xiaozhi-youtube-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server