> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Connect AI agents to the Runware MCP server

The Runware MCP connector routes your AI agent's tool calls to Runware's own MCP server through Scalekit. Each user signs in to Runware once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 12 tools.

**Authentication:** OAuth2.1/DCR
**Categories:** AI, Media
**Tools:** 12: 9 read, 2 write, 1 destructive
**Users sign in with:** OAuth
**OAuth app:** Scalekit's or your own
**Built by:** Vendor MCP
**Try it:** [Playground in the Scalekit dashboard](https://app.scalekit.com/ws/signup?sk_intent=playground&provider=RUNWAREMCP)

## Setup

1. ### Install the SDK

   **Node.js**

   ```bash
   npm install @scalekit-sdk/node dotenv
   ```

   **Python**

   ```bash
   pip install scalekit-sdk-python python-dotenv
   ```

2. ### Set your credentials

   Add your Scalekit credentials to your `.env` file. Find values in **[app.scalekit.com](https://app.scalekit.com)** > **Developers** > **API Credentials**.

   ```sh title=".env"
   SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
   SCALEKIT_CLIENT_ID=<your-client-id>
   SCALEKIT_CLIENT_SECRET=<your-client-secret>
   ```

3. ### Create the Runware MCP connection

   In **AgentKit > Connections**, create a Runware MCP connection. The name you give it is the `connection_name` your code passes. See [Configure connections](/agentkit/connections/).

   Scalekit credentials are available for Runware MCP server, so you don't need to register an OAuth app.

4. ### Authorize a user and make your first call

   **Node.js** (`quickstart.mts`)

   ```typescript
   import { ScalekitClient } from '@scalekit-sdk/node'
   import 'dotenv/config'
   import { createInterface } from 'node:readline/promises'

   const scalekit = new ScalekitClient(
     process.env.SCALEKIT_ENVIRONMENT_URL,
     process.env.SCALEKIT_CLIENT_ID,
     process.env.SCALEKIT_CLIENT_SECRET,
   )
   const actions = scalekit.actions

   const connector = 'runwaremcp'
   const identifier = 'user_123'

   // Generate an authorization link for the user
   const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
   console.log('Authorize Runware MCP:', link)
   const rl = createInterface({ input: process.stdin, output: process.stdout })
   await rl.question('Press Enter after authorizing...')
   rl.close()

   // Make your first call
   const result = await actions.executeTool({
     connector,
     identifier,
     toolName: 'runwaremcp_list_capabilities',
     toolInput: {},
   })
   console.log(result)
   ```

   ```bash
   npx tsx quickstart.mts
   ```

   **Python** (`quickstart.py`)

   ```python
   import os
   from scalekit import ScalekitClient
   from dotenv import load_dotenv
   load_dotenv()

   scalekit_client = ScalekitClient(
       env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),
       client_id=os.getenv("SCALEKIT_CLIENT_ID"),
       client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),
   )
   actions = scalekit_client.actions

   connection_name = "runwaremcp"
   identifier = "user_123"

   # Generate an authorization link for the user
   link_response = actions.get_authorization_link(
       connection_name=connection_name,
       identifier=identifier,
   )
   print("Authorize Runware MCP:", link_response.link)
   input("Press Enter after authorizing...")

   # Make your first call
   result = actions.execute_tool(
       tool_input={},
       tool_name="runwaremcp_list_capabilities",
       connection_name=connection_name,
       identifier=identifier,
   )
   print(result)
   ```

   ```bash
   python quickstart.py
   ```

   Each user signs in once. See [Authorize a user](/agentkit/tools/authorize/) for the full flow and statuses.

## Tools

Pass the exact name to `execute_tool`, with an input like each tool's example. To ask for a tool that's missing, use the [request form](https://scalekitsupport.portal.usepylon.com/forms/request-a-connector-tool).

**Node.js**

```typescript
const result = await actions.executeTool({
  toolName: 'runwaremcp_account',
  toolInput: {
    operation: 'getDetails',
  },
  connector: 'runwaremcp',
  identifier: 'user_123',
})
```

**Python**

```python
result = actions.execute_tool(
    tool_name="runwaremcp_account",
    tool_input={
        "operation": "getDetails",
    },
    connection_name="runwaremcp",
    identifier="user_123",
)
```

`result.data` is the app's response as JSON, and `result.execution_id` (`executionId` in Node.js) is the ID of the call.

### `runwaremcp_account`

Account · Read-only

Retrieve Runware account information including balance and usage.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `operation` (`string`, required): Which account operation to perform. Currently only "getDetails" is supported. One of: `getDetails`.
- `includeCost` (`boolean`, optional): Include cost information

Example input: `{"operation":"getDetails"}`

### `runwaremcp_get_task_details`

GetTaskDetails · Read-only

Retrieve the original request and response for a previously executed task. Useful for recovering results or auditing past generations.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `taskUUID` (`string`, required): UUID of the task to retrieve

Example input: `{"taskUUID":"<taskUUID>"}`

### `runwaremcp_list_capabilities`

List Capabilities · Read-only

List every model capability Runware supports, with their human-readable labels. Use this to discover the taxonomy (e.g. "io:text-to-image", "op:upscale") before filtering list_models by capability, or to answer "what can Runware do?".

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `runwaremcp_list_models`

List Models · Read-only

List Runware's official, curated model integrations. Returns each model's name, AIR identifier, headline, capabilities, and pricing. Call this FIRST whenever the user names or asks about a model that could be first-party (e.g. "FLUX 2 dev", "SDXL", "Veo 3", "Gemma", "Wan 2.5", "Z-Image"), and also for open-ended "what models are available?" questions. Match the user's named model against the returned names. Only fall through to model_search if no curated entry matches.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `capability` (`string`, optional): Optional capability filter (e.g. "io:text-to-image", "op:upscale"). Use list_capabilities first to discover valid ids.
- `category` (`string`, optional): Optional output-modality filter. One of: `image`, `video`, `audio`, `text`, `3d`.
- `creator` (`string`, optional): Optional creator id filter (e.g. "google", "alibaba")
- `search` (`string`, optional): Optional free-text search across name, AIR, creator, capabilities

Example input: `{}`

### `runwaremcp_model_details`

Get Model Details · Read-only

Get the full curated metadata for a single Runware model by AIR identifier — name, headline, description, capabilities, pricing, and creator. Use this when the user wants more depth on a model already surfaced by list_models, or to confirm an AIR matches what the user named.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `air` (`string`, required): Model AIR identifier (e.g. "runware:400@1")

Example input: `{"air":"runware:400@1"}`

### `runwaremcp_model_examples`

Get Model Examples · Read-only

Get sample input/output examples for a curated Runware model. Useful when the user wants to see what a model produces, or to crib a working request shape before constructing a run() call.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `air` (`string`, required): Model AIR identifier
- `capability` (`string`, optional): Optional capability filter (e.g. "io:text-to-image")

Example input: `{"air":"runware:400@1"}`

### `runwaremcp_model_pricing`

Get Model Pricing · Read-only

Get pricing details for a curated Runware model — overview text plus example configurations with prices (e.g. "1024×1024 = $0.0032"). Use this when the user asks how much a specific model will cost.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `air` (`string`, required): Model AIR identifier

Example input: `{"air":"runware:400@1"}`

### `runwaremcp_model_schema`

Get Model Schema · Read-only

Get the parameter schema for a specific model. Returns the JSON Schema describing all accepted parameters, their types, defaults, and constraints. ALWAYS call this before calling run() with a model you haven't used before, so you know what parameters to pass.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `model` (`string`, required): Model AIR identifier (e.g., "runware:400@1", "google:3@3", "google:gemma@4-31b")

Example input: `{"model":"runware:400@1"}`

### `runwaremcp_model_search`

ModelSearch · Read-only

Search Runware's Civitai mirror and community-uploaded models — third-party fine-tunes, user uploads, style LoRAs, custom checkpoints. ONLY use this AFTER list_models has been checked and the user's named model is not in the curated catalog, OR when the user explicitly asks for a Civitai or community model. Do NOT use this for first-party models like FLUX, SDXL, Veo, Imagen, Gemma, Wan, Z-Image — those live in list_models.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `search` (`string`, required): Search query (name, description, or AIR ID)
- `architecture` (`string`, optional): Filter by architecture (e.g. "flux-1-dev", "sdxl")
- `category` (`string`, optional): Filter by model category. One of: `checkpoint`, `lora`, `lycoris`, `vae`, `embeddings`.
- `tags` (`array`, optional): Filter by tags
- `type` (`string`, optional): Filter checkpoints by type (only when category=checkpoint). One of: `base`, `inpainting`, `refiner`.

Example input: `{"search":"<search>"}`

### `runwaremcp_model_upload`

ModelUpload · Write

Upload a custom AI model to Runware (checkpoint, LoRA, VAE, embeddings, etc.). Returns the AIR identifier once the upload completes.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `architecture` (`string`, required): Model architecture (e.g. "flux-1-dev", "sdxl")
- `category` (`string`, required): Model category. One of: `checkpoint`, `lora`, `lycoris`, `vae`, `embeddings`.
- `downloadURL` (`string`, required): URL where the model weights can be downloaded from
- `format` (`string`, required): Weight file format. One of: `safetensors`.
- `name` (`string`, required): Display name for the model
- `version` (`string`, required): Model version
- `air` (`string`, optional): Optional AIR identifier (format: provider:model@version)

Example input: `{"architecture":"flux-1-dev","category":"checkpoint","downloadURL":"<downloadURL>","format":"safetensors","name":"<name>","version":"<version>"}`

### `runwaremcp_run`

Run · Write

Run an AI inference task on Runware. Supports image generation, video generation, audio generation, 3D generation, upscaling, background removal, captioning, and more. Pass a model AIR identifier and task-specific parameters. Example: { "model": "runware:400@1", "positivePrompt": "a cat", "width": 1024, "height": 1024 }

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `model` (`string`, required): Model AIR identifier (e.g., "runware:400@1" for image, "google:3@3" for video, "google:gemma@4-31b" for LLM)

Example input: `{"model":"runware:400@1"}`

### `runwaremcp_media_storage`

Media storage · Destructive

Store or delete media (images, video, audio, 3D models) in your Runware account. Upload returns a media UUID you can reuse as input (seedImage, referenceImages, etc.); delete removes previously stored media by its media UUID.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `media` (`string`, required): For upload: URL, data URI, or base64 of the media. For delete: the media UUID to remove
- `operation` (`string`, required): Whether to upload new media or delete stored media. One of: `upload`, `delete`.

Example input: `{"media":"<media>","operation":"upload"}`

## Related

Other AI connectors ([all 156](/agentkit/connectors/?category=ai)):

- [Chorus](/agentkit/connectors/chorus/): Scalekit connector, Username and password, 9 tools
- [Gong](/agentkit/connectors/gong/): Scalekit connector, OAuth, 69 tools
- [Jiminny](/agentkit/connectors/jiminny/): Scalekit connector, Access token, 27 tools


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
