Wanapis MCP logo

Wanapis MCP

Generates images and videos through WanAPIs with async task polling, media uploads, cost estimates, and model discovery.

Install Wanapis MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "wanapis-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@wanapis/mcp"
      ],
      "env": {
        "WANAPIS_API_KEY": "YOUR_VALUE_HERE",
        "WANAPIS_BASE_URL": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env WANAPIS_API_KEY=YOUR_VALUE_HERE --env WANAPIS_BASE_URL=YOUR_VALUE_HERE --transport stdio wanapis-mcp -- npx -y @wanapis/mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 8 tools correctly ().

Overview

@wanapis/mcp connects MCP clients to WanAPIs for image generation, video generation, prompt optimization, and task management using one API key. It normalizes common options across model families while preserving native settings for models such as GPT Image 2.5, MiniMax H3, Seedance, Kling, Veo, and Midjourney. Use it when an agent needs to create or edit media, submit local reference files, track asynchronous jobs, or inspect pricing before generation. The server runs through npx over stdio and supports an optional self-hosted gateway URL.

Use cases

  • Generate images from prompts or reference images
  • Create videos with frames, reference media, or local files
  • Poll asynchronous media jobs and download completed results
  • Estimate generation budgets before submitting tasks

Key features

  • Image generation across multiple WanAPIs adapters
  • Video generation with H3 and Seedance media inputs
  • Automatic local media upload handling
  • Async task polling with billing and progress
  • H3 2K regeneration and prompt optimization
  • Live model catalog and cost estimation

Tools8

What Wanapis MCP lets your agent do. Expand a tool for its parameters.

Verified live~2.6k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

What it can do

From the 8 tools this server returned when we ran it.

Writes files · 1Makes network requests · 4Read-only tools · 7
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age87 days
Maintainers1

Observed 2026-11-23 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · @wanapis/mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads784Package downloads in the last 30 days.
Last commit9d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed8Callable tools this server registers over MCP.

How Wanapis MCP works

What @wanapis/mcp does

@wanapis/mcp exposes WanAPIs image and video models as MCP tools. It supports image generation, video task submission, H3 video regeneration, H3 prompt optimization, media uploads, task polling, cost estimation, and model catalog lookup.

Shared inputs such as quality, aspect ratio, and duration are translated for adapters that use different upstream parameters. Models with their own controls retain those native options. The catalog includes adapters for GPT Image 2.5, MiniMax H3, Seedance, Kling, Veo 3.1, and Midjourney.

How it works

Run the package with npx and provide a WanAPIs API key through the environment. Image and video requests may complete asynchronously. Fast image responses can return media URLs directly; otherwise the generation tool returns a job or task identifier for wanapis_check_task.

Video generation returns a task_id immediately. The polling tool reports status, progress, billing in CNY, and completed media URLs or optimized prompt text. A save_dir value can be used to download completed media locally.

Local H3 media is uploaded automatically and represented by an opaque asset ID. Seedance requires public URLs, so local inputs are sent through a temporary relay and replaced with signed URLs before submission. H3 accepts reference images, first and last frames, reference video, and reference audio. Seedance supports the same broad media categories, subject to its input-combination rules.

Setup and configuration

Obtain a WanAPIs key from wanapis.com or wanapi.ai, then register the server in an MCP client. A Claude Code command is:

Terminal
claude mcp add wanapis --env WANAPIS_API_KEY=sk-xxx -- npx -y @wanapis/mcp

For clients using JSON MCP configuration, set command to npx, pass -y and @wanapis/mcp as arguments, and place the key in the server's environment. WANAPIS_BASE_URL can point the server at a self-hosted gateway instead of the default service.

Tools and capabilities

  • wanapis_generate_image submits image requests. GPT Image 2.5 supports independent quality and resolution controls, reference-image editing, and image count; the MCP defaults are low quality, 1k resolution, and one image. Midjourney returns four images per call.
  • wanapis_generate_video starts video jobs for supported adapters. MiniMax H3 supports up to nine images, three reference videos, and three audio clips, with resolution, duration, ratio, priority, and context IR settings. Seedance supports 4–15 second output and quality mapped to 480p, 720p, or 1080p.
  • wanapis_upload_media uploads one local image, video, or audio file for H3 or Seedance without creating a generation task or charging an upload fee.
  • wanapis_regenerate_video creates a paid 2K H3 task from an eligible successful 768P task. Source mode uses the original task; content mode requires the original prompt and reference material.
  • wanapis_optimize_prompt creates a separately billed H3 text task. Poll its result with kind: "prompt".
  • wanapis_check_task retrieves progress, billing, output URLs, or optimized prompt text for image, video, and prompt jobs.
  • wanapis_estimate_cost calculates a budget from public catalog prices and supplied settings. wanapis_list_models returns catalog entries, verified adapters, native options, and prices.

Limitations and notes

Cost estimates are budgets rather than guaranteed final charges. H3 estimates use a reservation upper bound for reference media and can be refunded after verified usage settles. Image 2.5 estimates are tier precharges; reference images, dimensions, and prompt content can change the final amount. Completed task billing and account usage logs are the source for actual charges.

H3 durations range from 4 to 30 seconds, but 2K output is limited to 15 seconds. H3 and Seedance impose limits on media counts and combinations. Seedance signed media URLs last about six hours, so files may need to be uploaded again for delayed submissions. H3 regeneration is a new paid request, and prompt optimization is billed separately. H3 asset IDs cannot be passed to Seedance.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Wanapis MCP

@wanapis/mcp is an MCP server that connects AI clients to WanAPIs for image and video generation. Its main tools submit image or video jobs, upload local media, poll task status, regenerate eligible H3 videos, optimize prompts, estimate costs, and list available models using one WanAPIs API key.

Install it by running `npx -y @wanapis/mcp` through your MCP client's server configuration and setting `WANAPIS_API_KEY`. Claude Code can add it with `claude mcp add`; JSON-based clients use `command`, `args`, and an `env` object.

Yes, @wanapis/mcp works with Cursor through its MCP configuration. Add an `npx` server entry with `-y @wanapis/mcp` as the arguments and provide `WANAPIS_API_KEY` in the environment.

Use `wanapis_check_task` with the returned job or task identifier and the appropriate kind: `image`, `video`, or `prompt`. The result includes status and progress, billing details, and completed media URLs or prompt text; `save_dir` can download media.

Yes, local files can be supplied for supported H3 and Seedance requests. H3 converts them to account-bound asset IDs, while Seedance uploads them to a temporary relay and submits signed public URLs. Seedance URLs last about six hours.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWanapis MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/wanapis-mcp?style=directory)](https://allmcps.com/mcp/wanapis-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/wanapis-mcp"><img src="https://allmcps.com/api/badge/wanapis-mcp?style=directory" alt="Wanapis MCP on AllMCPs" /></a>