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

@kk17/agnes-mcp-server

v1.1.0

Published

MCP server for Agnes Image 2.1 Flash (text-to-image) and Agnes Video V2.0 (text-to-video, image-to-video, multi-image, keyframe animation) via OpenAI-compatible API

Downloads

112

Readme

Agnes MCP Server

MCP server for Agnes Image 2.1 Flash (text-to-image) and Agnes Video V2.0 (text-to-video, image-to-video, multi-image, keyframe animation), connected via OpenAI-compatible API.

Features

Image

  • Generate images from text prompts
  • Supports aspect ratios (1:1, 16:9, 9:16, 4:3, 3:4, etc.)
  • Custom resolution (1K~4K)
  • Multi-image generation
  • Returns clickable image URLs

Video

  • Text-to-Video: generate videos from a text prompt
  • Image-to-Video: animate a static image
  • Multi-Image Video: guide generation with multiple reference images
  • Keyframe Animation: smooth transitions between keyframes
  • Asynchronous task-based API (create task → poll for result)
  • Configurable resolution, frame count, frame rate, seed, negative prompt
  • Returns the final video URL when the task completes

Requirements

Install

cd agnes-mcp-server
npm install
npm start

Environment Variables

| Variable | Required | Default | Description | |---|---|---|---| | AGNES_API_KEY | ✅ | — | Your Agnes AI API key | | AGNES_IMAGE_MODEL | | agnes-image-2.1-flash | Image model name | | AGNES_VIDEO_MODEL | | agnes-video-v2.0 | Video model name | | AGNES_BASE_URL | | https://apihub.agnes-ai.com/v1 | API base URL |

CC-Switch / Claude Code Config

{
  "mcpServers": {
    "agnes": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@kk17/agnes-mcp-server"],
      "env": {
        "AGNES_API_KEY": "your-agnes-api-key"
      }
    }
  }
}

Tool: agnes_image_generate

| Parameter | Type | Required | Description | |---|---|---|---| | prompt | string | ✅ | Text description (Chinese/English) | | size | string | | Resolution (1024x1024, 1024x768, 768x1024) | | ratio | string | | Aspect ratio (1:1, 16:9, 9:16, 4:3, 3:4, etc.) | | n | number | | Number of images (default 1) |

Tool: agnes_video_generate

Creates an asynchronous video generation task. Returns video_id and task_id — use agnes_video_get_task to retrieve the final video URL.

| Parameter | Type | Required | Description | |---|---|---|---| | prompt | string | ✅ | Text description. Recommended: [Subject] + [Action] + [Scene] + [Camera] + [Lighting] + [Style] | | image | string | | Single image URL for image-to-video | | images | string[] | | Image URL array for multi-image video or keyframe animation | | mode | string | | ti2vid or keyframes | | width | integer | | Video width (default 1152; standardized to 480p/720p/1080p) | | height | integer | | Video height (default 768; standardized to 480p/720p/1080p) | | num_frames | integer | | Frame count, ≤ 441, must follow 8n+1 (e.g. 81, 121, 161, 241, 441) | | frame_rate | integer | | FPS, 1–60 (default 24). seconds = num_frames / frame_rate | | num_inference_steps | integer | | Inference steps | | seed | integer | | Random seed for reproducibility | | negative_prompt | string | | Content to avoid |

Common durations

| Duration | num_frames | frame_rate | |---|---|---| | ~3s | 81 | 24 | | ~5s | 121 | 24 | | ~10s | 241 | 24 | | ~18s | 441 | 24 |

Tool: agnes_video_get_task

Retrieves the status and result of a video task. When status is completed, the response includes the final video URL in remixed_from_video_id.

| Parameter | Type | Required | Description | |---|---|---|---| | video_id | string | ✅* | Video ID from the create-task response (recommended) | | task_id | string | ✅* | Task ID for the legacy retrieval endpoint | | use_legacy | boolean | | Use the legacy /v1/videos/{task_id} endpoint (default false) | | model_name | string | | Explicit model name when retrieving by video_id |

* Provide video_id (recommended) or task_id.

Task statuses

| Status | Description | |---|---| | queued | Waiting in queue | | in_progress | Generating | | completed | Done — video URL available | | failed | Generation failed |

License

MIT