Logo vun Runway API

Runway API

Organisatioun
runwayml

Generate images and videos using the Runway API.

Editeurrunwayml
Repositoryrunway-api-mcp-server
SproochTypeScript
Forks
13
Stären
22
Disponibel Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    Runway API stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    22 Stären an 13 Forks aus dem verlinkte Repository.

Demo

Video sped up for demo purposes

Runway API MCP Server

This repository holds the code for a MCP server that calls the Runway API.

Tools

The following tools are available in this MCP:

Tool NameDescriptionParameters
runway_listModelsLists available models per capability and the recommended default for each(none)
runway_generateVideoGenerates a video from an image and a text prompt- promptImage - promptText (optional) - ratio - duration - model (optional)
runway_generateImageGenerates an image from a text prompt, and reference images- promptText - referenceImages (note that uploaded images won't work as references, only previously generated ones, or URLs to images will work.) - ratio - model (optional)
runway_upscaleVideoUpscale a video to a higher resolution- videoUri - model (optional)
runway_editVideoEdits a video, optionally provide reference images.- videoUri, referenceImages, promptText - model (optional)
runway_generateAudioGenerates spoken audio (text-to-speech) from text- promptText - voice (optional) - model (optional)
runway_getTaskGets the details of a task- taskId
runway_cancelTaskCancels or deletes a task- taskId
runway_getOrgGet organization information

Generation tools accept an optional model parameter to override the recommended default. Recommended models: Nano Banana Pro (gemini_image3_pro) for images, Seedance (seedance2) for video, and Aleph (aleph2) for video editing. Valid ratio, duration, and other parameter values are model-specific, so runway_listModels returns the exact valid values and required parameters for every model — call it before choosing a ratio/duration.

Before any generation request is sent to the Runway API, the server validates the payload against OpenAPI-derived per-model constraints (allowed enums, numeric ranges, string lengths, required fields). Invalid payloads fail locally with a readable error and never hit the network.

Prerequisites

Before starting, you'll need to have setup your Developer account on the Runway API, setup Billing, and also created an API Key.

You'll also need Node.js setup.

Setup

  1. Clone this repository and save it to a folder on your computer. Remember where you saved this folder because you'll need it in a later step.

  2. Run npm install in the folder, then npm run build. You should now see a new folder called build with a index.js file inside. If you later modify any source files, run npm run build again to pick up the changes.

Using the MCP as a Claude Desktop extension (recommended)

This installs the server as an unpacked Claude Desktop extension, so you don't have to edit any config files by hand.

  1. Launch Claude Desktop and open Settings.

  2. Go to Extensions, then Advanced Settings.

  3. Click Install Unpacked Extension and select the folder you cloned in step 1 (for example /Users/edwin/runway-api-mcp-server). Click Install on the prompt.

  4. Get your API key from https://dev.runwayml.com, paste it into the installed extension's settings, then Enable the extension.

  5. Now, try asking Claude to generate an image!

Using the MCP with Claude Desktop (config file)

Alternatively, register the server manually through Claude's config file.

  1. Follow the MCP quickstart instructions to setup a config file for Claude. If you already have it, open it by running:

MacOS

bashrc
open ~/Library/Application\ Support/Claude/claude_desktop_config.json

Windows

powershell
notepad %APPDATA%\Claude\claude_desktop_config.json
  1. Add the runway-api-mcp-server to the config, make sure to replace the file path and Runway API key.
json
{
  "mcpServers": {
    "runway-api-mcp-server": {
      "command": "node",
      "args": [
        "<ABSOLUTE_PATH_TO_YOUR_CLONED_REPO_FROM_STEP_1>/build/index.js"
      ],
      "env": {
        "RUNWAYML_API_SECRET": "<YOUR_RUNWAY_API_KEY_HERE>",
        "MCP_TOOL_TIMEOUT": "1000000"
      }
    }
  }
}
  1. Now restart Claude Desktop, and you should see the runway-api-mcp-server in Claude's tools:

Runway MCP Server Screenshot

  1. Now, try asking Claude to generate images or videos!

[!NOTE]
Images generated by the Runway API lives only for 24 hours at the generated link. There is no way to recover them after this link expires. Make sure to download the images before they expire.

Deploy as a remote MCP server

The same code can run as an HTTP MCP server, which lets clients like claude.ai web, Cursor, Zed, and Windsurf connect to a single hosted URL instead of installing the extension locally.

Local HTTP development

bash
RUNWAYML_API_SECRET=key_xxx npm run start:http
# server listens on http://0.0.0.0:3000/mcp
curl http://127.0.0.1:3000/healthz   # → {"ok":true}

To test from web clients (claude.ai) without deploying, use a tunnel that returns HTTPS. Cloudflared works; ngrok is currently blocked by Anthropic's connector backend:

bash
cloudflared tunnel --url http://127.0.0.1:3000

Use the printed https://<random>.trycloudflare.com/mcp as the connector URL.

Deploying to Railway

Railway deploys the HTTP server with zero config.

bash
npm i -g @railway/cli           # one-time
railway login
railway init                    # create a new project, link this folder
railway up                      # builds & deploys
railway domain                  # provisions https://<your-app>.up.railway.app

Set environment variables in the Railway dashboard (or railway variables):

VariableRequiredPurpose
RUNWAYML_API_SECREToptionalServer-side API key. Used as fallback when REQUIRE_AUTH=false. Do not set for public deployments.
REQUIRE_AUTHyesSet to true for any public/multi-tenant deployment. Forces clients to send their key as Authorization: Bearer <key>.
PORTautoInjected by Railway. The server reads process.env.PORT.

Connect from claude.ai web:

  1. Settings → Connectors → Add custom connector
  2. URL: https://<your-app>.up.railway.app/mcp
  3. Leave OAuth fields blank (Bearer-key flow)

Public deployment auth model

For public, multi-tenant hosting, every user supplies their own Runway API key:

bash
curl -X POST https://<your-app>.up.railway.app/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Authorization: Bearer <user_runway_key>" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

When REQUIRE_AUTH=true, requests without a Bearer header receive a 401. Bearer keys take priority over RUNWAYML_API_SECRET even when both are set.

Runway API MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Runway API verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Runway API als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Runway API an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "runway-api-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Runway API. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Runway API.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Runway API?
Runway API
Jo. Ech hunn et gelies.
Dat hunn ech mat Runway API fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Runway API benotzt?

Runway API ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Runway API MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Runway API mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Runway API MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Runway API verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Runway API MCP mat TypingMind?

Runway API leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Runway API MCP an TypingMind zur Verfügung?

Runway API stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Runway API MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Runway API eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇