npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

syia-youtube-mcp-server

v1.0.0

Published

YouTube MCP server with search and transcript generation capabilities

Readme

YouTube MCP Server

A Model Context Protocol (MCP) server that provides YouTube search and transcript generation capabilities.

Features

  • YouTube Search: Search for videos with filters for duration, sorting, and publication date
  • Transcript Generation: Extract transcripts/captions from YouTube videos using RapidAPI with timestamped segments

Installation

  1. Clone this repository
  2. Install dependencies:
    npm install
  3. Build the project:
    npm run build

Usage

Starting the Server

You must provide a YouTube API key to use this server. You can obtain one from the Google Cloud Console.

For transcript extraction, you also need a RapidAPI key for the YouTube Transcript Extractor API. You can obtain one from RapidAPI.

# Using command line arguments
node dist/index.js --youtube-api-key YOUR_YOUTUBE_API_KEY --rapidapi-key YOUR_RAPIDAPI_KEY

# Using environment variables
export YOUTUBE_API_KEY=YOUR_YOUTUBE_API_KEY
export RAPIDAPI_KEY=YOUR_RAPIDAPI_KEY
node dist/index.js

# Optional: specify custom RapidAPI host (default: youtube-transcript-extractor1.p.rapidapi.com)
export RAPIDAPI_HOST=custom-host.p.rapidapi.com

Available Tools

1. youtube_search

Search for YouTube videos based on a query.

Parameters:

  • query (required): The search query
  • max_results: Maximum number of results (1-50, default: 10)
  • order: Sort order - "relevance", "date", "rating", "viewCount", "title" (default: "relevance")
  • video_duration: Filter by duration - "any", "short", "medium", "long" (default: "any")
  • published_after: Filter videos published after this date (ISO 8601 format)

Example Response:

{
  "query": "machine learning tutorial",
  "total_results": 10,
  "results": [
    {
      "position": 1,
      "videoId": "dQw4w9WgXcQ",
      "title": "Introduction to Machine Learning",
      "description": "Learn the basics of machine learning...",
      "channelTitle": "Tech Channel",
      "videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
      "viewCount": "1234567",
      "duration": "10m 30s"
    }
  ]
}

2. youtube_transcript

Get the transcript/captions for a YouTube video using RapidAPI.

Note: Requires RapidAPI key to be configured.

Parameters:

  • video_id (required): YouTube video ID or URL
  • language: Preferred language code (currently not used by RapidAPI endpoint)

Example Response:

{
  "videoId": "dQw4w9WgXcQ",
  "title": "Video Title",
  "channel": "Channel Name",
  "language": "en",
  "segments": [
    {
      "text": "Hello and welcome...",
      "timestamp": "00:00",
      "start": 0.0
    }
  ],
  "fullText": "Hello and welcome...",
  "hasTimestamps": true
}

Development

# Run in development mode
npm run dev

# Build the project
npm run build

# Test with MCP inspector
npm test

License

MIT