Skip to main content

A YouTube information retrieval server implementation for Model Context Protocol (MCP)

Project description

MCP YouTube Info Server

This project is a server implementation that retrieves YouTube video information using the Model Context Protocol (MCP). It utilizes the FastMCP framework to provide functionality for fetching YouTube video data.

Available Tools

youtube_metainfo

Retrieves metadata for a YouTube video.

  • video_id (string, required): YouTube video ID

    • Returns: JSON containing metadata such as title, description, view count, publication date, etc.

youtube_thumbnail_url

Retrieves the URL of a YouTube video's thumbnail image.

  • video_id (string, required): YouTube video ID

    • Returns: URL of the thumbnail image

youtube_thumbnail_image

Retrieves the image data from a YouTube video.

  • video_id (string, required): YouTube video ID

    • Returns: Thumbnail image

Installation

Using uv (recommended)

No special installation is needed when using uv. You can run mcp-server-youtube-info directly with uvx.

Using PIP

Alternatively, you can install mcp-server-youtube-info using pip:

pip install mcp-server-youtube-info

After installation, you can run it as a script like this:

mcp-server-youtube-info

Command-Line Options

You can specify the following options when running the server:

  • --sse: Enable SSE transport

    • Choices: on, off
    • Default: off
    • Description: Enables SSE transport when set to "on"
  • --host: Host to bind the server to

    • Default: localhost
    • Description: Specifies the host address the server will bind to
  • --port: Port to bind the server to

    • Type: Integer
    • Default: 8000
    • Description: Specifies the port number the server will bind to
  • --log-level: Set the log level

    • Choices: debug, info, warning, error

    • Default: info

    • Description:

      • debug: Detailed debug information
      • info: General runtime information (default)
      • warning: Potential issues that do not affect execution
      • error: Errors encountered during execution

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_youtube_info-0.1.4.tar.gz (33.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_youtube_info-0.1.4-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_youtube_info-0.1.4.tar.gz.

File metadata

File hashes

Hashes for mcp_server_youtube_info-0.1.4.tar.gz
Algorithm Hash digest
SHA256 03d699adb4813b20501c6214315e7f8a0ffef2a791d875450ec8147aa1290f67
MD5 76d4f1412be6dbf306bd917cc0322f4e
BLAKE2b-256 fc679155ebb1e8ef2d675768c51cb0307a65e67379e9cb5db2c68a2138175605

See more details on using hashes here.

File details

Details for the file mcp_server_youtube_info-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_youtube_info-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5d73adcb0c0fcdab110c7acf9f1e2c9dd1f64884b40d201a603b232f912de399
MD5 8eadbf302608edd113510f0b1cbd2be4
BLAKE2b-256 1e3cea8a96637eb9faad363538d6f9122bb900d4d15a2f74a1f0b49cc5d1bdf5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page