Get the FREE Ultimate OpenClaw Setup Guide →

go_mcp_server_youtube_search

A simple MCP (Model Context Protocol) server that provides tools for searching and retrieving information from YouTube videos. This server can be used with AI assistants that support the MCP protocol.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio hightemp-go_mcp_server_youtube_search go_mcp_server_youtube_search -t sse -h 0.0.0.0 -p 8889

How to use

This MCP server provides three tools for interacting with YouTube data via the MCP protocol: youtube_search to search for videos by query, youtube_get_video_info to fetch detailed metadata for a specific video by its ID, and youtube_get_subtitles to retrieve subtitles in English or Russian for a given video. The server defaults to Server-Sent Events (sse) mode and can be accessed at the provided URL: http://localhost:8889/sse. You can also run it in stdio mode for local development and testing by switching the mode with the -t flag (e.g., -t stdio). Once running, you can invoke these tools through an MCP-compatible client to perform queries, retrieve video details, and fetch subtitles as part of your AI workflows.

How to install

Prerequisites:

  • Go installed on your system (go1.x+)
  • Git (optional, for cloning the repository)

Installation steps:

  1. Clone or download the repository: git clone https://github.com/your-org/go_mcp_server_youtube_search.git cd go_mcp_server_youtube_search
  2. Build the executable: go build -o go_mcp_server_youtube_search
  3. Run the server (default sse mode): ./go_mcp_server_youtube_search -t sse -h 0.0.0.0 -p 8889
  4. Verify it's running by visiting or curling the endpoint: curl http://localhost:8889/sse

Tips:

  • If you prefer stdio mode for local testing, run: ./go_mcp_server_youtube_search -t stdio
  • Ensure the port 8889 is open on your machine or adjust with -p flag as needed.

Additional notes

Notes and tips:

  • The server exposes three tools: youtube_search, youtube_get_video_info, and youtube_get_subtitles (English/Russian).
  • In sse mode, you can stream responses to MCP clients that support Server-Sent Events.
  • If subtitles are unavailable for a video, the tool may return an empty result or an appropriate error message.
  • You can adjust host/port with -h and -p flags to fit your deployment environment.
  • Ensure your environment allows outgoing requests to YouTube services as the server fetches data from YouTube APIs.

Related MCP Servers

Sponsor this space

Reach thousands of developers