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

agnes-video-mcp

v0.1.0

Published

Production-grade MCP Server for AI video generation — Agnes, Runway, Pika, Luma, Kling, Veo, Wan

Readme

Agnes Video MCP Server

Production-grade Model Context Protocol server for AI video generation — supporting Agnes, Runway, Pika, Luma, Kling, Veo, and Wan.

License: MIT Node.js TypeScript npm

Overview

agnes-video-mcp is a production-grade MCP (Model Context Protocol) server that enables AI assistants (like Claude) to generate videos using multiple AI providers through a unified interface.

Key Features

  • 8 Production Tools — text-to-video, image-to-video, multi-image, keyframes, status, wait, cancel, smart dispatcher
  • Smart Dispatcher — Claude calls generate_video once; the server auto-detects mode and routes to the right provider
  • Auto-Validation — frame counts auto-corrected to 8n+1 formula; durations auto-converted to frames
  • Multi-Provider — Agnes (fully implemented), with stubs for Runway, Pika, Luma, Kling, Veo, Wan
  • Resilient — automatic retry with exponential backoff, rate-limit handling, configurable timeouts
  • Docker Ready — multi-stage build, slim Alpine image, tini init
  • CI/CD — automated lint, typecheck, build, test, and npm publish on release

Quick Start

Prerequisites

Install

npm install agnes-video-mcp

Configure

export AGNES_API_KEY=sk-UDICorllDOuf8Xmk3IB0gTx9yUDncf8IKcYAvqCnWvapTcZv

Run

# Direct
npx agnes-video-mcp

# Docker
docker run -e AGNES_API_KEY=sk-UDICorllDOuf8Xmk3IB0gTx9yUDncf8IKcYAvqCnWvapTcZv ghcr.io/xiooLoo/agnes-video-mcp:latest

Claude Desktop Config

{
  "mcpServers": {
    "agnes-video": {
      "command": "npx",
      "args": ["agnes-video-mcp"],
      "env": {
        "AGNES_API_KEY": "sk-UDICorllDOuf8Xmk3IB0gTx9yUDncf8IKcYAvqCnWvapTcZv"
      }
    }
  }
}

Available Tools

| Tool | Description | |------|-------------| | text_to_video | Generate video from text prompt | | image_to_video | Generate video from a single image | | multi_image_to_video | Generate video from 2-10 images (transition/sequence/collage) | | keyframes_video | Animated keyframe transitions | | video_status | Query task status | | wait_video | Poll until task completes | | cancel | Cancel a running task | | list_models | List available models | | generate_video | Smart dispatcher — auto-detects mode and provider |

Smart Dispatcher (generate_video)

The generate_video tool is the recommended entry point. It automatically:

  1. Detects the mode — text-to-video, image-to-video, multi-image, or keyframes based on input
  2. Selects the provider — defaults to Agnes, configurable via provider parameter
  3. Validates and corrects — frame counts normalized to 8n+1, durations auto-calculated
  4. Polls and waits — returns the final video URL directly
Claude: "Make a panda ride a bicycle"
MCP:    → text_to_video (auto-detected)
        → polls until complete
        → returns download URL
Claude: "Animate this image" + [image URL]
MCP:    → image_to_video (auto-detected)
        → polls until complete
        → returns download URL

Configuration

| Variable | Default | Description | |----------|---------|-------------| | AGNES_API_KEY | (required) | Agnes API key | | AGNES_BASE_URL | https://api.agnes.ai/v1 | Agnes API base URL | | RUNWAY_API_KEY | | Runway API key | | PIKA_API_KEY | | Pika API key | | LUMA_API_KEY | | Luma API key | | KLING_API_KEY | | Kling API key | | VEO_API_KEY | | Veo API key | | WAN_API_KEY | | Wan API key | | MAX_CONCURRENT_TASKS | 5 | Max concurrent video tasks | | POLL_INTERVAL_MS | 3000 | Polling interval in ms | | TASK_TIMEOUT_MINUTES | 30 | Task timeout | | RETRY_MAX_ATTEMPTS | 3 | Max retry attempts | | RETRY_BASE_DELAY_MS | 1000 | Base delay for exponential backoff | | DEFAULT_PROVIDER | agnes | Default provider | | LOG_LEVEL | info | Logging level: silent/info/debug/verbose |

Development

# Clone and install
git clone https://github.com/xiooLoo/agnes-video-mcp.git
cd agnes-video-mcp
npm install

# Development mode (auto-reload)
npm run dev

# Build
npm run build

# Lint & typecheck
npm run lint
npm run typecheck

# Test
npm test
npm run test:coverage

Project Structure

agnes-video-mcp/
├── src/
│   ├── api/              # AgnesClient, RetryClient
│   ├── tools/            # MCP tool implementations
│   ├── providers/        # Multi-provider abstraction
│   ├── types/            # TypeScript types & errors
│   ├── logger/           # Structured logger
│   ├── config/           # Environment config loader
│   ├── mcp/              # MCP server setup & tool registration
│   ├── index.ts          # Public exports
│   ├── server.ts         # Entry point
│   └── cli.ts            # CLI binary
├── tests/
│   ├── unit/             # Unit tests
│   └── integration/      # Integration tests
├── docs/                 # Extended documentation
├── examples/             # Usage examples
├── Dockerfile
├── .github/workflows/    # CI/CD pipelines
└── package.json

License

MIT