mcp

v0.2.25
@wevi/mcp Checked 3 days ago Published 1 month ago

Official Model Context Protocol (MCP) server for Wevi — AI Video Generation Platform

The official Model Context Protocol (MCP) server for Wevi — the AI Video Generation Platform. Connect Claude Desktop, Claude Code, Cursor, or Windsurf directly to your Wevi account to create, customize, and render professional videos using natural language. 1. wevi_list_templates — browse *published* templates. Pick every template for the video from one aspect ratio (16:9 or 16:12). 2. wevi_get_template_schema — read the editable layer keys (text, colors, sliders, toggles, dropdowns) for each template. 3.

Summary extracted from the README.

Wevi MCP Server (@wevi/mcp)

The official Model Context Protocol (MCP) server for Wevi — the AI Video Generation Platform.

Connect Claude Desktop, Claude Code, Cursor, or Windsurf directly to your Wevi account to create, customize, and render professional videos using natural language.


How a video gets made

  1. wevi_list_templates — browse published templates. Pick every template for the video from one aspect ratio (16:9 or 16:12).
  2. wevi_get_template_schema — read the editable layer keys (text, colors, sliders, toggles, dropdowns) for each template.
  3. wevi_create_project — create one project with all scenes (scenes: [{ templateId, parameters, voiceoverText }]). The aspect ratio is taken from the templates automatically. Pass brand: { websiteUrl } so logo and color layers are filled from the product's site.
  4. wevi_update_scene — change one scene's parameters, narration or title; only changed scenes re-render on the next publish.
  5. wevi_add_scene, wevi_remove_scene, wevi_reorder_scenes, wevi_swap_template — revise a project without rebuilding it; text layers left unset are filled from the scene copy.
  6. wevi_list_music, wevi_list_voices, wevi_list_brands, wevi_get_scene_previews — pick sound and a brand, and check single rendered scenes.
  7. wevi_capture_from_image — use a shared screenshot as a whole-page background.
  8. wevi_open_page, wevi_go_to, wevi_click, wevi_type, wevi_scroll, wevi_hover, wevi_wait, wevi_press_key, wevi_go_back, wevi_close_page — open a live browser on a page, read its outline and screenshot, move around one step at a time, then capture from the session with wevi_capture_scene (auto framing, clean backgrounds, numbered candidate screenshots).
  9. wevi_trigger_render — renders every scene and exports them as one concatenated MP4 with music, voiceover and, if asked, Wevi's sound design. Returns the video URL when ready, or the current phase.
  10. wevi_get_render_status — poll by projectId until phase is completed, then use videoUrl.

Helpers:

  • wevi_get_capabilities — what Wevi can and cannot make, what to ask the user first, limits and costs. Also sent as server instructions on connect.
  • wevi_get_credits — credit balance (plan, rolled-over, purchased and set-aside credits, paid access, the key's own monthly cap) and per-action costs. See Credits.
  • wevi_generate_storyboard — plan a storyboard against the published templates (template per scene, narration within budget, on-screen text, capture scenes flagged) and get a ready createPayload for wevi_create_project.
  • wevi_capture_scene — capture a live product page into a scene whose template needs real UI (auto-selects components; steer with keywords or CSS selectors). wevi_select_capture re-picks from the candidates.
  • wevi_capture_web_ui — standalone screenshot of a URL for plain image slots.
  • wevi_get_project — inspect a project's scenes and status.
  • wevi_wait_for_login — after sending the user loginUrl, wait until they have signed in to their product in Wevi's browser.
  • wevi_get_sound_design, wevi_set_sound_effects, wevi_change_sound, wevi_add_sound, wevi_remove_sounds, wevi_restore_sounds — read the video's sound effects sound by sound, set their level and style, and change, add, take out or put back single sounds.

Templates with requiresUiCapture: true need a page capture: create the project, then call wevi_capture_scene for each scene listed under scenesNeedingCapture, then render.


Credits

One credit balance pays for the Wevi studio, the studio's agent, and API keys / MCP. Scene renders and exports cost credits, and so do storyboard drafts, page captures and long browser sessions; creating a project, re-picking captured components and sound changes are free. A re-render charges only the scenes that changed.

Prices and plan allowances are set in the Wevi app and can change, so they are not listed here: wevi_get_credits returns the balance and costs, what each action costs now.

  • Free accounts get a one-time credit grant. Free videos run up to the free length and export at 720p with a watermark.
  • Paid access. Once an account has bought credits or has a paid plan (paidAccess: true from wevi_get_credits), it has no watermark, 1080p and 4K exports, longer videos, and its own choice of music and voice. Paid plans add a monthly allowance; unused monthly credits roll over for a month and are spent first.
  • Purchased credits never expire. Plan credits are spent first, then purchased credits. Credits are bought in the Wevi app, under Profile → Billing.
  • Sandbox keys (wevi_test_…) never spend credits.

When an action cannot go ahead:

  • 402 with code: "INSUFFICIENT_CREDITS": not enough credits. The tools pass on the credits needed, available and set aside (for an agent video in progress).
  • 402 with code: "KEY_MONTHLY_CAP": the API key has reached its own monthly cap, set on the API Keys & MCP page.
  • 403 with code: "FREE_VIDEO_TOO_LONG": a free account's video runs past the free length. Remove a scene to bring it within that.
  • 403 with code: "EXPORT_QUALITY_LOCKED" or "FEATURE_NOT_AVAILABLE": 1080p, 4K, or a chosen track or voice needs paid access.

Setup & Quickstart

1. Get your Wevi API Key

  1. Log in to app.wevi.ai.
  2. Go to Profile → API Keys & MCP (or visit app.wevi.ai/app/profile?id=api-keys).
  3. Click "Create New API Key" and copy your secret key.
Key Behaviour
wevi_live_… Production renders. Spends credits from the account's one balance (see Credits). Free accounts export at 720p with a watermark, and their videos run up to the free length. A 402 tells you how many credits the action needs and how many are available.
wevi_test_… Sandbox. Every render is watermarked and capped at 720p, and nothing counts against your credits. Hard daily caps per key: 20 scene renders, 5 exports, max 4 scenes per project (reset 00:00 UTC). Ideal for trying prompts and CI.

2. Configure Your AI Client

A. Claude Desktop

Add this to your Claude Desktop configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "wevi": {
      "command": "npx",
      "args": ["-y", "@wevi/mcp@latest"],
      "env": {
        "WEVI_API_KEY": "wevi_live_YOUR_SECRET_KEY_HERE"
      }
    }
  }
}

B. Claude Code CLI

claude mcp add wevi -e WEVI_API_KEY="wevi_live_YOUR_SECRET_KEY_HERE" -- npx -y @wevi/mcp@latest

C. Cursor & Windsurf

Add to .cursor/mcp.json in your workspace:

{
  "mcpServers": {
    "wevi": {
      "command": "npx",
      "args": ["-y", "@wevi/mcp@latest"],
      "env": {
        "WEVI_API_KEY": "wevi_live_YOUR_SECRET_KEY_HERE"
      }
    }
  }
}

Optional: set WEVI_API_URL to point at a self-hosted or staging API (defaults to https://api-v2.wevi.ai/api/v2).


Example Prompts to Try in Claude

  • "List published Wevi templates for a SaaS product launch."
  • "Build a 3-scene launch video for 'FocusFlow': hook, feature, CTA. Use one project, then render it and give me the MP4."
  • "Draft a storyboard for a 30-second promo about automated scheduling, then map it onto Wevi templates."
  • "Check whether my Wevi project 4f2c… has finished rendering."

Remote server (Claude connectors, the ChatGPT plugin)

The same tools are also served over HTTPS at https://mcp.wevi.ai/mcp, so you can add Wevi as a custom connector in Claude without installing anything. In ChatGPT, Wevi is in the plugin directory: open Wevi in ChatGPT and click Try in chat. Both sign you in with your Wevi account; no API key needed. See docs.wevi.ai/docs/connectors.

To self-host the remote server:

npm install -g @wevi/mcp
MCP_PUBLIC_URL=https://mcp.example.com WEVI_API_URL=https://api-v2.wevi.ai/api/v2 wevi-mcp-http

It exposes /mcp, /health and /.well-known/oauth-protected-resource, and accepts Authorization: Bearer <Wevi OAuth token or API key>.

Development

cd v2/mcp
npm install
npm run build
WEVI_API_KEY=wevi_test_... npm start

Inspect the tools locally with npx @modelcontextprotocol/inspector node dist/index.js.

License

MIT © Wevi AI