Cover image
Try Now
2025-03-20

Servidor MCP Para Interactuar con la api de youtube desde claude y otros assistentes de ia

3 years

Works with Finder

1

Github Watches

1

Github Forks

1

Github Stars

YouTube MCP Server

YouTube API Version MCP Claude Compatible License

This is an MCP (Model Context Protocol) server that allows Claude and other AI assistants to interact with the YouTube API. The server provides tools to search for videos, get details about specific videos, search for channels, and obtain detailed information about channels.

What is MCP?

Model Context Protocol (MCP) is an open standard developed by Anthropic (creators of Claude) to connect AI assistants with external data sources and tools. It allows models like Claude to access up-to-date information and perform actions in external systems in a standardized way.

MCP functions as a "universal bridge" for AI, providing a standardized way for models to access various content repositories, business services, or applications.

Requirements

  • Node.js v16 or higher
  • A YouTube API key (obtained from the Google Developer Console)

Installation

  1. Clone this repository:
git clone https://github.com/Nocodeboy/youtube-mcp-server.git
cd youtube-mcp-server
  1. Install dependencies:
npm install
  1. Create a .env file in the project root and add your YouTube API key:
YOUTUBE_API_KEY=your_api_key_here

Execution

To start the server, run:

npm start

Integration with Claude Desktop

To use this MCP server with Claude Desktop, add the following configuration to your claude_desktop_config.json file (usually located in %APPDATA%\Claude\ on Windows or ~/Library/Application Support/Claude/ on macOS):

{
  "mcpServers": {
    "youtube": {
      "command": "node",
      "args": ["path/to/youtube-mcp-server/index.js"],
      "env": {
        "YOUTUBE_API_KEY": "your_api_key_here"
      }
    }
  }
}

Replace "path/to/youtube-mcp-server/index.js" with the absolute path to the index.js file, and "your_api_key_here" with your YouTube API key.

Available Tools

1. Search Videos

Search for videos on YouTube based on a query.

search_videos

Parameters:

  • query (string, required): Search terms
  • maxResults (number, optional): Maximum number of results (between 1 and 50)
  • pageToken (string, optional): Token to get the next page of results

2. Get Video Details

Get detailed information about a specific video.

get_video_details

Parameters:

  • videoId (string, required): YouTube video ID

3. Get Channel Details

Get detailed information about a specific channel.

get_channel_details

Parameters:

  • channelId (string, required): YouTube channel ID

4. Search Channels

Search for channels on YouTube based on a query.

search_channels

Parameters:

  • query (string, required): Search terms
  • maxResults (number, optional): Maximum number of results (between 1 and 50)
  • pageToken (string, optional): Token to get the next page of results

Available Resources

  • youtube://popular/videos: List of currently popular videos on YouTube

Usage Examples

With Claude Desktop, you can ask questions like:

  • "Search for Python programming videos"
  • "Show me details of video with ID dQw4w9WgXcQ"
  • "Search for cooking-related channels"
  • "Give me information about the GoogleDevelopers channel"
  • "What are the most popular videos right now?"

Getting a YouTube API Key

To get a YouTube API key:

  1. Go to the Google Developer Console
  2. Create a new project (or select an existing one)
  3. In the sidebar, select "API Library"
  4. Search for "YouTube Data API v3" and enable it
  5. In the sidebar, select "Credentials"
  6. Click on "Create credentials" and select "API key"
  7. Copy the generated key and use it in your .env file or in the Claude Desktop configuration

Troubleshooting

If you encounter errors, check:

  1. That you have installed all dependencies with npm install
  2. That your YouTube API key is valid
  3. That you have the YouTube Data API v3 enabled in your Google project
  4. That you are using Node.js version 16 or higher
  5. If you use Claude Desktop, check the logs in %APPDATA%\Claude\logs\ (Windows) or ~/Library/Logs/Claude/ (macOS)

Contributions

Contributions are welcome. You can collaborate in several ways:

  1. Reporting bugs or issues
  2. Suggesting new features
  3. Sending pull requests with improvements or fixes
  4. Improving documentation

Connect & Support

  • Follow me on X (Twitter): @Nocodeboy
  • If you find this project useful and want to show your support:

Buy Me A Coffee

License

This project is licensed under the MIT License. See the LICENSE file for more details.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • apappascs
  • Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.

  • huahuayu
  • Ein einheitliches API-Gateway zur Integration mehrerer Ethercan-ähnlicher Blockchain-Explorer-APIs mit Modellkontextprotokoll (MCP) für AI-Assistenten.

  • deemkeen
  • Steuern Sie Ihren MBOT2 mit einer Power Combo: MQTT+MCP+LLM

  • jae-jae
  • MCP -Server für den Fetch -Webseiteninhalt mit dem Headless -Browser von Dramatikern.

    Reviews

    1 (1)
    Avatar
    user_20cB1ZAs
    2025-04-16

    The iOS Simulator by InditexTech is a fantastic tool for development purposes. It offers a seamless and realistic simulation of the iOS experience, making testing and development much easier. The user-friendly interface and reliable performance ensure efficient workflow. Highly recommend for anyone looking to streamline their iOS app development process. Check it out here: https://mcp.so/server/ios-simulator/InditexTech