# wan-mcp [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/runapi-ai/wan-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 657  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/wan-mcp

## Description
RunAPI MCP server for Wan: create tasks, poll status, and check pricing.

## Tools
Capabilities this server exposes over MCP:

- **login** — Authenticate RunAPI by opening a browser PKCE login flow and saving the API key to ~/.config/runapi/config.json.
- **animate** — Create a Wan task on RunAPI (animate). Returns a task id, status, and output URLs.
- **edit_video** — Create a Wan task on RunAPI (edit video). Returns a task id, status, and output URLs.
- **image_to_video** — Create a Wan task on RunAPI (image to video). Returns a task id, status, and output URLs.
- **speech_to_video** — Create a Wan task on RunAPI (speech to video). Returns a task id, status, and output URLs.
- **text_to_image** — Create a Wan task on RunAPI (text to image). Returns a task id, status, and output URLs.
- **text_to_video** — Create a Wan task on RunAPI (text to video). Returns a task id, status, and output URLs.
- **get_task** — Fetch the current status and latest result payload for a wan task.
- **check_pricing** — Look up RunAPI pricing for the wan model line.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "wan-mcp": {
    "command": "npx",
    "args": ["-y","@runapi.ai/wan-mcp"],
    "env": {
      "RUNAPI_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `RUNAPI_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What wan-mcp does

wan-mcp provides focused access to RunAPI's Wan model family through the Model Context Protocol. It covers six generation and transformation endpoints:

- Animation
- Video editing
- Image-to-video generation
- Speech-to-video generation
- Text-to-image generation
- Text-to-video generation

The package supports 18 listed Wan model variants across those endpoints. Agents can create tasks, optionally wait for completion, and receive the task ID, status, and resulting output URLs. Existing tasks can be inspected later with `get_task`, which returns the current status and latest payload.

Use `check_pricing` to inspect the price for a selected Wan model and endpoint before submitting work. Pricing lookup is available without authentication, making it suitable for checking costs before an agent starts a generation task.

## How it works

The server runs as an MCP process over stdio. An MCP host starts the package with `npx`, then makes the Wan operations available as agent tools. Generation requests are asynchronous: a create tool can return immediately with a task ID, or wait for a terminal status when the request includes the appropriate wait option.

For work submitted without waiting, the agent can call `get_task` later to retrieve updated status and output data. The available model choices depend on the endpoint. Model availability may change between package releases, so `check_pricing` or the Wan model page should be used as the current catalog reference.

## Setup and configuration

Install it in an MCP-compatible host with the stdio command below:

```json
{
  "mcpServers": {
    "wan": {
      "command": "npx",
      "args": ["-y", "@runapi.ai/wan-mcp"]
    }
  }
}
```

Claude Code can also register it directly with `claude mcp add`, using either user or project scope. The same stdio configuration works with Codex, Cursor, Windsurf, VS Code, Roo Code, and other MCP hosts.

Authentication is resolved in this order:

1. `RUNAPI_API_KEY`
2. `~/.config/runapi/config.json`
3. No credential, which still permits `check_pricing`

The MCP login flow opens a browser and stores credentials in the RunAPI configuration file. Headless or CI environments can set `RUNAPI_API_KEY` before starting the MCP host. A pre-provisioned configuration file can contain an `apiKey` field. API keys should not be committed to source control.

## Tools and capabilities

- `animate`: submit a Wan animation task and optionally wait for completion.
- `edit_video`: submit a video-editing task and optionally wait for completion.
- `image_to_video`: create video from an image and optionally wait.
- `speech_to_video`: create video from speech input and optionally wait.
- `text_to_image`: generate an image from text and optionally wait.
- `text_to_video`: generate video from text and optionally wait.
- `get_task`: retrieve the latest status and payload for an existing task.
- `check_pricing`: look up pricing for a Wan model and endpoint without authentication.

Creation tools return task identifiers, statuses, and output URLs. The endpoint-specific model catalog includes Wan 2.2, 2.5, 2.6, and 2.7 variants listed by the package.

_Full upstream README: https://allmcps.com/mcp/wan-mcp/readme_

