Skip to main content
Glama
README.md
# Wanyra MCP Server (`@star1age/wanyra-mcp`)

Zero-dependency [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server for **[Wanyra API](https://api.star1age.cn/en)** by [Star1Age](https://star1age.cn).

Give Claude Code, Cursor, Codex, Windsurf, Cline, or any MCP client direct access to **81 live GA multimodal AI models**—including 23 video generation models (`MiniMax H3`, `Seedance 2.0/2.5`, `Kling 3.0 Omni`, `Wan 3.0/2.7`, `Vidu Q3/Q2 Pro`, `Hailuo H3`, `HappyHorse 1.1`), 22 LLMs (`Claude`, `GPT`, `Gemini`, `DeepSeek`, `Qwen`, `Grok`), 23 image models, and 7 audio models—behind a single OpenAI-compatible pay-as-you-go gateway.

## Tools Included

| Tool | API Key Required? | Description |
| --- | --- | --- |
| `wanyra_list_models` | **No** | Query the live GA model catalog and exact real-time pricing (`1,000 points = CN¥1`). Filter by modality (`text`, `video`, `image`, `audio`, `embedding`, `realtime`, `web`) or keyword. |
| `wanyra_estimate_cost` | **No** | Calculate exact CNY cost estimates for video duration/resolution or text token counts against live catalog rates. |
| `wanyra_chat` | Yes (`WANYRA_API_KEY`) | Run chat completions against any of the 22 Wanyra text/reasoning models. |
| `wanyra_generate_image` | Yes (`WANYRA_API_KEY`) | Generate images via `/v1/images/generations` with automatic `Idempotency-Key`. |
| `wanyra_generate_video` | Yes (`WANYRA_API_KEY`) | Submit multipart async video jobs via `/v1/videos` with optional polling until completion. |

## Quick Start (Zero Dependencies, Node.js 18+)

Run directly from GitHub via `npx`:

```json
{
  "mcpServers": {
    "wanyra": {
      "command": "npx",
      "args": ["-y", "github:a5768549/wanyra-mcp"],
      "env": {
        "WANYRA_API_KEY": "sk-your-key-from-api.star1age.cn"
      }
    }
  }
}
```

> `wanyra_list_models` and `wanyra_estimate_cost` work immediately **without** setting `WANYRA_API_KEY`.

## Local Development & Verification

```bash
git clone https://github.com/a5768549/wanyra-mcp.git
cd wanyra-mcp
npm test
```

## Related Links

- **Wanyra API Portal & Live Pricing**: https://api.star1age.cn/en
- **API Docs**: https://api.star1age.cn/en/docs
- **Public No-Auth Live Catalog JSON**: https://api.star1age.cn/api/portal/public-api/catalog
- **Starter Examples (Node.js & Python)**: https://github.com/a5768549/wanyra-api-examples
- **Star1Age Ecosystem**: [Davro AI Agent](https://davro.app) · [Toonra AI Comic Canvas](https://canvas.star1age.cn) · [Zuolo AI Video Workflow](https://workflow.star1age.cn) · [Guides](https://star1age.cn/guides)

## License

MIT

TDQS

A3.7/5.0

Scored across 5 tools

Disambiguation5/5

Each tool targets a clearly distinct operation: catalog listing, cost math, text chat, image generation, and video generation. The only mild adjacency is between wanyra_list_models and wanyra_estimate_cost, but one enumerates the catalog while the other computes price for a named model, so an agent can easily choose between them.

Naming Consistency4/5

All tools share a consistent wanyra_ prefix and snake_case verb_noun pattern (list_models, estimate_cost, generate_image, generate_video). The single deviation is wanyra_chat, which is a bare verb with no object noun, but it is still readable and unambiguous.

Tool Count5/5

Five tools is well-scoped for a thin API wrapper covering discovery, pricing, and the three generation modalities. Each tool earns its place with no redundant surface.

Completeness4/5

The surface covers catalog discovery, cost preview, chat, image, and video generation, which are the core operations. The main gap is that video is async yet there is no standalone job-status/retrieve tool for polling a submission whose initial poll timed out, forcing a resubmit or external call.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues