MCP Hub
Back to servers

runware-mcp

Validation Failed

MCP server for Runware AI image and video generation

npm471/wk
Stars
2
Updated
Apr 9, 2026
Validated
Apr 18, 2026

Validation Error:

Process exited with code 1. stderr: npm warn EBADENGINE Unsupported engine { npm warn EBADENGINE package: 'runware-mcp@1.2.3', npm warn EBADENGINE required: { node: '>=22' }, npm warn EBADENGINE current: { node: 'v20.20.2', npm: '10.8.2' } npm warn EBADENGINE } file:///home/runner/.npm/_npx/e86ce2663568079f/node_modules/runware-mcp/dist/index.js:142 throw new Error(errorMessage); ^ Error: Configuration validation failed: - RUNWARE_API_KEY: Invalid input: expected string, received undefined Please check your

Quick Install

npx -y runware-mcp

Runware MCP Server

AI Media Generation for Any MCP Client

22 Tools 6 Resources 9 Providers 100% API Coverage

Turn any MCP-compatible AI assistant into a creative powerhouse.
Images. Videos. Audio. Vectors. All from natural language.


What Is This?

An MCP server that connects your AI coding assistant directly to Runware's AI media generation infrastructure. Works with any client that supports the Model Context Protocol.

flowchart TB
    subgraph Client["MCP Client"]
        direction LR
        C1["Claude Code"] ~~~ C2["Cursor"] ~~~ C3["Windsurf"] ~~~ C4["VS Code"] ~~~ C5["Any MCP Client"]
    end

    Client <-->|"MCP Protocol"| Server

    subgraph Server["Runware MCP Server"]
        direction LR
        Tools["22 Tools"] ~~~ Resources["6 Resources"] ~~~ RL["Rate Limiting"] ~~~ Cache["Caching"] ~~~ Batch["Batch Processing"]
    end

    Server -->|"REST API"| Cloud

    subgraph Cloud["Runware Cloud"]
        direction LR
        FLUX["FLUX"] ~~~ SDXL["SDXL"] ~~~ Kling["Kling"] ~~~ Veo["Veo"] ~~~ EL["ElevenLabs"] ~~~ More["+more"]
    end

    style Client fill:#0d9488,stroke:#2dd4bf,stroke-width:2px,color:#fff
    style C1 fill:#0f766e,stroke:#2dd4bf,color:#fff
    style C2 fill:#0f766e,stroke:#2dd4bf,color:#fff
    style C3 fill:#0f766e,stroke:#2dd4bf,color:#fff
    style C4 fill:#0f766e,stroke:#2dd4bf,color:#fff
    style C5 fill:#0f766e,stroke:#2dd4bf,color:#fff
    style Server fill:#1e3a5f,stroke:#3b82f6,stroke-width:2px,color:#fff
    style Tools fill:#2563eb,stroke:#60a5fa,color:#fff
    style Resources fill:#2563eb,stroke:#60a5fa,color:#fff
    style RL fill:#2563eb,stroke:#60a5fa,color:#fff
    style Cache fill:#2563eb,stroke:#60a5fa,color:#fff
    style Batch fill:#2563eb,stroke:#60a5fa,color:#fff
    style Cloud fill:#854d0e,stroke:#facc15,stroke-width:2px,color:#fff
    style FLUX fill:#a16207,stroke:#fde047,color:#fff
    style SDXL fill:#a16207,stroke:#fde047,color:#fff
    style Kling fill:#a16207,stroke:#fde047,color:#fff
    style Veo fill:#a16207,stroke:#fde047,color:#fff
    style EL fill:#a16207,stroke:#fde047,color:#fff
    style More fill:#a16207,stroke:#fde047,color:#fff

One config. Zero complexity. Infinite creativity.


Installation

Add the server to your MCP client config:

{
  "mcpServers": {
    "runware": {
      "command": "npx",
      "args": ["-y", "runware-mcp"],
      "env": {
        "RUNWARE_API_KEY": "your-api-key"
      }
    }
  }
}

Config locations by client

ClientConfig Location
**Claude Code**`~/.claude.json` or project `.mcp.json`
**Claude Desktop (macOS)**`~/Library/Application Support/Claude/claude_desktop_config.json`
**Claude Desktop (Linux)**`~/.config/claude/claude_desktop_config.json`
**Claude Desktop (Windows)**`%APPDATA%\Claude\claude_desktop_config.json`
**Cursor**`.cursor/mcp.json` in your project root
**Codex CLI**`~/.codex/config.toml` or project `.codex/config.toml`
**VS Code (Copilot)**`.vscode/mcp.json` in your project root

Note: Config format may vary slightly by client. Check your client's MCP documentation for exact syntax. Codex CLI uses TOML — see the Codex MCP docs for setup.

That's it. No pip install. No virtual environments. No Python version conflicts. Just paste, restart, create.


Capabilities at a Glance

flowchart LR
    R((Runware MCP)) --> IMG[Images]
    R --> VID[Video]
    R --> AUD[Audio]
    R --> BATCH[Batch Ops]
    R --> INT[Intelligence]

    IMG --> I1[Text to Image]
    IMG --> I2[Img to Img &middot; Inpaint &middot; Outpaint]
    IMG --> I3[Upscale &middot; BG Removal &middot; Caption]
    IMG --> I4[Masking &middot; Vectorize]

    VID --> V1[Text/Image to Video]
    VID --> V2[Lip Sync &middot; 9 Providers]

    AUD --> A1[Music &middot; SFX &middot; TTS]
    AUD --> A2[Transcription]

    BATCH --> B1[Folder Processing]
    BATCH --> B2[Batch Generate &middot; Watch]

    INT --> N1[Prompt Enhance &middot; ControlNet]
    INT --> N2[Model Search &middot; Cost Est.]

    style R fill:#0d9488,stroke:#2dd4bf,stroke-width:2px,color:#fff
    style IMG fill:#2563eb,stroke:#60a5fa,color:#fff
    style VID fill:#7c3aed,stroke:#a78bfa,color:#fff
    style AUD fill:#059669,stroke:#34d399,color:#fff
    style BATCH fill:#d97706,stroke:#fbbf24,color:#fff
    style INT fill:#dc2626,stroke:#f87171,color:#fff

    style I1 fill:#1e40af,stroke:#3b82f6,color:#fff
    style I2 fill:#1e40af,stroke:#3b82f6,color:#fff
    style I3 fill:#1e40af,stroke:#3b82f6,color:#fff
    style I4 fill:#1e40af,stroke:#3b82f6,color:#fff
    style V1 fill:#5b21b6,stroke:#8b5cf6,color:#fff
    style V2 fill:#5b21b6,stroke:#8b5cf6,color:#fff
    style A1 fill:#065f46,stroke:#10b981,color:#fff
    style A2 fill:#065f46,stroke:#10b981,color:#fff
    style B1 fill:#92400e,stroke:#f59e0b,color:#fff
    style B2 fill:#92400e,stroke:#f59e0b,color:#fff
    style N1 fill:#991b1b,stroke:#ef4444,color:#fff
    style N2 fill:#991b1b,stroke:#ef4444,color:#fff

The Complete Toolset

Image Generation & Manipulation

ToolWhat It DoesKey Features
`imageInference`Text/image to images60+ parameters, LoRA, ControlNet, IP-Adapters
`photoMaker`Preserve identity across generationsFace consistency, style transfer
`imageUpscale`Enhance resolution up to 4xMultiple algorithms, preserve details
`imageBackgroundRemoval`Remove backgrounds instantlyAlpha matting, custom colors
`imageCaption`Describe images in detailMultiple models, structured output
`imageMasking`Generate segmentation masksFace, body, hands detection
`imageUpload`Upload local imagesBase64, URL, data URI support
`vectorize`Convert raster to SVGPerfect for logos, icons

Video Generation

ToolWhat It DoesProviders
`videoInference`Create videos from text/imagesKling, Veo, MiniMax, PixVerse, Runway, Vidu, Wan, Sync
`listVideoModels`Browse available modelsAll providers with specs
`getVideoModelInfo`Get model detailsDimensions, duration, features

Audio Generation

ToolWhat It DoesFeatures
`audioInference`Generate music, SFX, speechElevenLabs, Mirelo, 14 voices
`transcription`Video to text transcriptionMultiple languages

Creative Tools

ToolWhat It DoesUse Cases
`promptEnhance`Supercharge your prompts1-5 variations, AI enrichment
`controlNetPreprocess`Prepare images for ControlNet12 preprocessors
`styleTransfer`Apply artistic stylesCombine with any model

Utilities

ToolWhat It DoesWhy It Matters
`modelSearch`Search 100,000+ modelsFind the perfect model
`costEstimate`Estimate before generatingBudget control
`getAccountBalance`Check your creditsNever run dry

Batch Operations

ToolWhat It DoesPower Features
`processFolder`Process entire foldersUpscale, remove BG, caption, vectorize
`batchImageInference`Generate from multiple promptsConcurrent processing
`watchFolder`Auto-process new filesPipelines, debouncing

Provider-Specific Features

This server exposes the full capabilities of each provider:

ProviderExclusive Features
**Alibaba (Wan)**Prompt extension, multi-shot videos, audio generation
**Black Forest Labs**Safety tolerance, raw mode, prompt upsampling
**Bria**Content moderation, medium selection, fast mode
**Ideogram**65+ style types, color palettes, magic prompt
**ByteDance**Sequential image narratives (1-15 images)
**KlingAI**Sound generation, camera fixed mode
**PixVerse**20 viral effects, 21 camera movements, multi-clip
**Google Veo**Prompt enhancement, audio generation (Veo 3)
**Sync.so**Lip sync, speaker detection, audio segments

MCP Resources

Access your generated content programmatically:

Resource URIDescription
`runware://images/{id}`Generated images with metadata
`runware://videos/{id}`Generated videos with metadata
`runware://audio/{id}`Generated audio with metadata
`runware://session/history`Full session generation history
`runware://analytics/{period}`Usage analytics (day/week/month/all)

Prompt Templates

Pre-built workflows for common tasks:

TemplatePerfect For
`product-photo`E-commerce, catalogs, marketing
`avatar-generator`Profile pictures, characters
`video-scene`Storyboarding, content creation
`style-transfer`Artistic transformations
`ui-mockup`Web/mobile design prototypes
`thumbnail`YouTube, articles, social media
`music-composition`Background music, jingles

Documentation

This MCP server includes comprehensive built-in documentation accessible as MCP resources. Any connected client can discover and read detailed API references, feature guides, and provider docs on demand.

42 documentation resources organized across 5 categories:

CategoryCountWhat's Covered
**Concepts**5AIR identifiers, task responses, output types, async delivery, connection
**Tools**13Full parameter reference for every tool
**Features**10ControlNet, LoRA, IP-Adapters, prompt weighting, acceleration, and more
**Providers**9Provider-specific settings and capabilities
**Guides**5Batch processing, cost optimization, quality tuning, combining features

Example URIs: runware://docs/tools/image-inference, runware://docs/features/controlnet-guide, runware://docs/providers/kling-ai, runware://docs/guides/cost-optimization

Ask your AI assistant to list or read any runware://docs/* resource for detailed reference information.


Architecture

flowchart LR
    Client["MCP Client"] <-->|"MCP"| Handler

    subgraph Server["Runware MCP Server"]
        Handler["Protocol Handler"]
        Handler --> Tools & Core
        Core --> Data

        subgraph Tools["Tools"]
            direction TB
            IMG["Image"] ~~~ VID["Video"]
            AUD["Audio"] ~~~ BATCH["Batch"]
        end

        subgraph Core["Services"]
            direction TB
            RL["Rate Limiter"] ~~~ Cache["Cache"]
            Val["Validation"]
        end

        subgraph Data["Data"]
            direction TB
            Session["Sessions"]
            Analytics["Analytics"]
        end
    end

    Tools -->|"HTTPS"| API["Runware Cloud API"]

    style Client fill:#0d9488,stroke:#2dd4bf,stroke-width:2px,color:#fff
    style Server fill:#1e293b,stroke:#3b82f6,stroke-width:2px,color:#fff
    style Handler fill:#2563eb,stroke:#60a5fa,color:#fff
    style Tools fill:#1e40af,stroke:#3b82f6,color:#fff
    style Core fill:#065f46,stroke:#10b981,color:#fff
    style Data fill:#854d0e,stroke:#facc15,color:#fff
    style IMG fill:#2563eb,stroke:#60a5fa,color:#fff
    style VID fill:#7c3aed,stroke:#a78bfa,color:#fff
    style AUD fill:#059669,stroke:#34d399,color:#fff
    style BATCH fill:#d97706,stroke:#fbbf24,color:#fff
    style RL fill:#065f46,stroke:#10b981,color:#fff
    style Cache fill:#065f46,stroke:#10b981,color:#fff
    style Val fill:#065f46,stroke:#10b981,color:#fff
    style Session fill:#92400e,stroke:#f59e0b,color:#fff
    style Analytics fill:#92400e,stroke:#f59e0b,color:#fff
    style API fill:#854d0e,stroke:#facc15,stroke-width:2px,color:#fff

What's Included

A ground-up TypeScript rewrite covering 100% of the Runware API.

FeatureDetails
**API Coverage**100% — every endpoint, every parameter
**Tools**22 tools across image, video, audio, and batch ops
**Providers**9 providers with full provider-specific settings
**Type Safety**Strict TypeScript + Zod validation on every input
**Security**SSRF protection, rate limiting, path traversal prevention
**Testing**80%+ coverage across 1300+ tests
**Install**`npx runware-mcp` — zero setup

Video Model Comparison

ProviderModelsMax ResolutionMax DurationSpecial Features
**KlingAI**101920x108010sSound, camera lock
**Google Veo**31920x10808sAudio gen (Veo 3)
**MiniMax**41920x10805sFast generation
**PixVerse**31280x7204sViral effects
**Vidu**41280x7204sReference videos
**Wan/Alibaba**21280x7205sMulti-shot
**Runway**21920x108010sProfessional
**Sync.so**11920x108060sLip sync

ControlNet Preprocessors

PreprocessorUse CaseBest For
`canny`Edge detectionArchitectural, product
`depth`Depth mappingScenes, landscapes
`mlsd`Line segmentsInterior design
`normalbae`Normal maps3D-like rendering
`openpose`Human poseCharacter art
`tile`Tile processingTextures, patterns
`seg`SegmentationComplex scenes
`lineart`Line extractionIllustrations
`lineart_anime`Anime linesAnime, manga
`shuffle`Content shuffleAbstract, creative
`scribble`Scribble styleConcept art
`softedge`Soft edgesSoft, dreamy

Configuration Reference

VariableDefaultDescription
`RUNWARE_API_KEY`**required**Your Runware API key
`NODE_ENV``production`Environment mode
`LOG_LEVEL``info`Logging verbosity
`MAX_FILE_SIZE_MB``50`Max upload size
`REQUEST_TIMEOUT_MS``60000`API timeout
`POLL_MAX_ATTEMPTS``150`Video poll attempts
`RATE_LIMIT_MAX_TOKENS``10`Rate limit burst
`RATE_LIMIT_REFILL_RATE``1`Tokens per second
`WATCH_FOLDERS`Auto-watch folders
`WATCH_DEBOUNCE_MS``500`Watch debounce

Security

ProtectionImplementation
**Input Validation**Zod schemas on every tool
**Path Traversal**Canonicalization + symlink resolution
**SSRF Protection**Private IP + metadata endpoint blocking
**Rate Limiting**Token bucket algorithm
**Error Sanitization**No stack traces or paths leaked

Example Workflows

Product Photography Pipeline

You: "Process all images in /photos/products - remove backgrounds,
      upscale 2x, and save as PNGs to /photos/processed"
Assistant uses processFolder with removeBackground and upscale pipeline

Video Storyboard

You: "Create a 3-part video story: sunrise over mountains,
      eagle soaring, landing on a branch. Use Kling, 5s each."

Assistant generates 3 coordinated videos with consistent style

Brand Asset Generation

You: "Generate 5 logo variations for 'TechFlow' - modern, minimal,
      tech-focused. Then vectorize the best one."

Assistant uses imageInference, selects best, then vectorize to SVG

Music + Video

You: "Create a 30-second promo video with matching background music"

Assistant uses videoInference + audioInference in parallel

Development

git clone https://github.com/runware/mcp-server
cd mcp-server
npm install
npm run build
npm test
CommandPurpose
`npm run build`Compile TypeScript
`npm run dev`Watch mode
`npm run typecheck`Type checking
`npm run lint`Lint with strict rules
`npm run test`Run tests
`npm run test:coverage`Coverage report

Contributing

See CONTRIBUTING.md for the full development guide including project structure, how to add new tools, testing patterns, and code style.

  1. Fork it
  2. Create a feature branch
  3. Make it pass: npm run build && npm run lint && npm test
  4. Submit PR

For version history and release notes, see CHANGELOG.md.


License

MIT


Built for creators who demand more from their AI tools.

22 tools. 9 providers. 100% API coverage. Zero complexity.

Reviews

No reviews yet

Sign in to write a review