Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp-youtube

MCP.Pizza Chef: sparfenyuk

The mcp-youtube server acts as a bridge between the YouTube API and AI assistants, enabling seamless integration of YouTube video data into AI workflows. Built on the Model Context Protocol (MCP), it provides structured, real-time access to YouTube content, allowing AI models to fetch, analyze, and interact with video metadata and content dynamically. This server facilitates enhanced AI capabilities such as video content summarization, metadata extraction, and interactive video-based assistance across platforms supporting MCP.

Use This MCP server To

Fetch YouTube video metadata for AI analysis Enable AI-driven video content summarization Integrate YouTube data into AI chatbots Provide real-time video search and recommendations Extract structured data from YouTube videos Support interactive AI workflows with YouTube content

README

Youtube MCP server

About

The server is a bridge between the Youtube API and the AI assistants and is based on the Model Context Protocol.

Youtube Server MCP server

What is MCP?

The Model Context Protocol (MCP) is a system that lets AI apps, like Claude Desktop, connect to external tools and data sources. It gives a clear and safe way for AI assistants to work with local services and APIs while keeping the user in control.

What does this server do?

  • Download closed captions for the given video

Practical use cases

  • Create a summary of the video

Prerequisites

Installation

uv tool install git+https://github.com/sparfenyuk/mcp-youtube

Note

If you have already installed the server, you can update it using uv tool upgrade --reinstall command.

Note

If you want to delete the server, use the uv tool uninstall mcp-youtube command.

Configuration

Claude Desktop Configuration

Configure Claude Desktop to recognize the Youtube MCP server.

  1. Open the Claude Desktop configuration file:

    • in MacOS, the configuration file is located at ~/Library/Application Support/Claude/claude_desktop_config.json
    • in Windows, the configuration file is located at %APPDATA%\Claude\claude_desktop_config.json

    Note: You can also find claude_desktop_config.json inside the settings of Claude Desktop app

  2. Add the server configuration

    {
      "mcpServers": {
        "mcp-youtube": {
            "command": "mcp-youtube",
          }
        }
      }
    }

Development

Getting started

  1. Clone the repository

  2. Install the dependencies

    uv sync
  3. Run the server

    uv run mcp-youtube --help

Tools can be added to the src/mcp_youtube/tools.py file.

How to add a new tool:

  1. Create a new class that inherits from ToolArgs

    class NewTool(ToolArgs):
        """Description of the new tool."""
        pass

    Attributes of the class will be used as arguments for the tool. The class docstring will be used as the tool description.

  2. Implement the tool_runner function for the new class

    @tool_runner.register
    async def new_tool(args: NewTool) -> t.Sequence[TextContent | ImageContent | EmbeddedResource]:
        pass

    The function should return a sequence of TextContent, ImageContent or EmbeddedResource. The function should be async and accept a single argument of the new class.

  3. Done! Restart the client and the new tool should be available.

Validation can accomplished either through Claude Desktop or by running the tool directly.

Debugging the server in the Inspector

The MCP inspector is a tool that helps to debug the server using fancy UI. To run it, use the following command:

npx @modelcontextprotocol/inspector uv run mcp-youtube

Troubleshooting

Message 'Could not connect to MCP server mcp-youtube'

If you see the message 'Could not connect to MCP server mcp-youtube' in Claude Desktop, it means that the server configuration is incorrect.

Try the following:

  • Use the full path to the mcp-youtube binary in the configuration file

mcp-youtube FAQ

How do I install the mcp-youtube server?
Follow the installation instructions in the GitHub README, including prerequisites and configuration steps.
What prerequisites are needed for mcp-youtube?
You need access to the YouTube API and a compatible MCP host environment.
How do I configure mcp-youtube for Claude Desktop?
The README provides specific configuration details for integrating with Claude Desktop.
Can mcp-youtube handle real-time YouTube data?
Yes, it provides real-time access to YouTube video metadata and content via the MCP protocol.
How do I debug issues with mcp-youtube?
Use the debugging instructions in the README, including inspecting server logs and using the MCP Inspector tool.
What should I do if the server cannot connect?
Check network settings, API keys, and ensure the server is running as per troubleshooting guidelines.
Is mcp-youtube compatible with multiple AI providers?
Yes, it supports integration with AI models from OpenAI, Claude, Gemini, and others via MCP.
How does mcp-youtube enhance AI assistant capabilities?
By providing structured YouTube data, it enables AI to perform video summarization, metadata extraction, and interactive content analysis.