Skip to main content
Glama
README.md
# UniRoute MCP Server

A lightweight, zero-dependency [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server for calling [UniRoute](https://uniroute.app) unified image, video, and music generation APIs (Seedance, Kling, Veo, Wan, Seedream, Qwen Image Edit, Suno, and more) from Claude Desktop, Claude Code, Cursor, or any MCP-compatible client.

## Features

- **Exact pre-flight quoting**: call `uniroute_quote_media` before creating tasks so agents never spend unexpectedly.
- **Explicit cost ceiling & idempotency**: `uniroute_create_media_task` sends `max_cost_usd` and an `Idempotency-Key` header.
- **Zero third-party dependencies**: pure Node.js 20+ stdio MCP server.
- **Bring your own API key**: reads `UNIROUTE_API_KEY` from the local environment. Get a key at [uniroute.app/console/api-keys](https://uniroute.app/console/api-keys).

## Tools

| Tool | Description |
| --- | --- |
| `uniroute_list_media_models` | List available image, video, and music models and option presets |
| `uniroute_quote_media` | Request an exact USD quote for a model + option pair |
| `uniroute_create_media_task` | Submit an async image/video/music generation task with `max_cost_usd` |
| `uniroute_get_media_task` | Poll task status, billing state, and output URLs |

## Quickstart (Claude Desktop / Cursor / Claude Code)

```json
{
  "mcpServers": {
    "uniroute": {
      "command": "node",
      "args": ["/path/to/uniroute-mcp-server/src/index.js"],
      "env": {
        "UNIROUTE_API_KEY": "YOUR_UNIROUTE_API_KEY"
      }
    }
  }
}
```

## Development

```bash
npm run check
npm test
```

## Links

- Website: [uniroute.app](https://uniroute.app)
- Model catalog & Playground: [uniroute.app/models](https://uniroute.app/models)
- Media API Quickstart: [uniroute.app/docs/media-quickstart](https://uniroute.app/docs/media-quickstart)

TDQS

A3.7/5.0

Scored across 4 tools

Disambiguation5/5

Each tool maps to a distinct action in a linear workflow: enumerate models, price a job, submit a job, poll a job. There is no overlap in purpose, and the descriptions make the ordering relationship explicit (quote before create, create then get).

Naming Consistency5/5

All four tools use the same uniroute_ prefix followed by a consistent verb_noun snake_case pattern (list_media_models, quote_media, create_media_task, get_media_task). The resource noun 'media' is used uniformly across tools.

Tool Count4/5

Four tools is lean but each covers a necessary step of an async generation workflow, with no redundancy. It is on the thin side, though the narrow scope (submit-and-poll media jobs) justifies a small surface.

Completeness4/5

The core lifecycle—discover models, quote cost, create task, poll result—is fully covered, including cost-safety and idempotency. Gaps are minor but real: there is no tool to cancel or delete a task and no way to enumerate existing tasks without a known ID.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues