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

gemini-video-understanding-mcp

v0.0.10

Published

MCP server for video understanding using Google's Gemini models with URL support

Readme

Gemini Video Understanding MCP Server

A Model Context Protocol (MCP) server that provides video understanding capabilities using Google's Gemini models. This server supports video URL analysis for public video URLs (like YouTube).

Features

  • Video URL Analysis: Analyze videos from public URLs (YouTube, etc.) directly

Environment Variables

| Variable | Description | Required | |----------|-------------|----------| | GEMINI_API_KEY | Your Google AI Studio API key | Yes | | GEMINI_BASE_URL | Your Custom Gemini Base URL (default: https://generativelanguage.googleapis.com) | No | | GEMINI_MODEL | Your Gemini model (default: gemini-2.5-flash) | No |

Installation

1. Using with Claude Desktop

Add the server config to your Claude Desktop configuration file:

Add the following configuration to the mcpServers object in your Claude configuration file:

For Local Installation (on Windows)

"gemini-video-understanding-mcp": {
  "command": "cmd",
  "args": [
    "/k",
    "npx",
    "-y",
    "gemini-video-understanding-mcp"
  ],
  "env": {
    "GEMINI_API_KEY": "<YOUR_GEMINI_API_KEY>"
  }
}

For Local installation (on Linux/MacOS)

"gemini-video-understanding-mcp": {
  "command": "npx",
  "args": [
    "-y",
    "gemini-video-understanding-mcp"
  ],
  "env": {
    "GEMINI_API_KEY": "<YOUR_GEMINI_API_KEY>"
  }
}

For Development (on Windows / Linux / MacOS)

cd /path/to/gemini-video-understanding-mcp
npm run build
"gemini-video-understanding-mcp": {
  "command": "node",
  "args": [
    "/path/to/gemini-video-understanding-mcp/dist/index.js"
  ],
  "env": {
    "GEMINI_API_KEY": "<YOUR_GEMINI_API_KEY>"
  }
}

Location of the configuration file:

  • Windows: %APPDATA%/Claude/claude_desktop_config.json
  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json

2. Alternative Installation Methods

You can also run this server directly using npx:

npx gemini-video-understanding-mcp

Or set your API key as an environment variable:

export GEMINI_API_KEY="YOUR_GEMINI_API_KEY"
npx gemini-video-understanding-mcp

Available Tools

process_video_url

Analyzes video content from a public URL using Google's Gemini model.

Uses standard generateContent; keep prompts concise (≤15 words).

Parameters:

  • video_url (string, required): The public URL of the video (e.g., YouTube link)
  • prompt (string, required): The instruction for the Gemini model
  • mime_type (string, optional): The MIME type of the video (default: "video/mp4")

Model selection is configured via environment only:

  • GEMINI_MODEL (optional, default: gemini-2.5-flash)
  • GEMINI_MAX_OUTPUT_TOKENS (optional, default 8192)
  • GEMINI_BASE_URL (optional, default: https://generativelanguage.googleapis.com)

Example:

{
  "video_url": "https://www.youtube.com/watch?v=9hE5-98ZeCg",
  "prompt": "Please summarize this video in 3 sentences."
}

Error Handling

The server provides detailed error messages for common issues:

  • Missing API key
  • Invalid video URLs
  • File not found errors
  • API rate limits
  • Network connectivity issues
  • Unsupported file formats

Troubleshooting

Common Issues

  1. "GEMINI_API_KEY environment variable is required"

    • Make sure you've set the API key environment variable
    • Verify the API key is valid
  2. "File not found" errors

    • Ensure the file path is absolute
    • Check file permissions
    • Verify the file exists
  3. "File does not appear to be a video" errors

    • Check the file format is supported
    • Verify the file isn't corrupted
  4. API quota exceeded

    • Check your Google AI Studio usage limits
    • Wait for quota reset or upgrade your plan

Getting Help

License

MIT License - see LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.