Skip to main content

Vidu MCP

A tool that allows you to access Vidu latest video generation models via applications that support the Model Context Protocol (MCP), such as Claude or Cursor.

中文文档

Overview

Vidu MCP is a tool that allows you to access Vidu latest video generation models via applications that support the Model Context Protocol (MCP), such as Claude or Cursor. This integration enables you to generate high-quality videos anytime, anywhere — including text-to-video, image-to-video, and more.

Key Features

  • Text-to-Video Generation: Generate creative videos using text prompts
  • Image-to-Video Generation: Generate creative videos using text and image prompts
  • Reference-to-Video Generation: Generate creative videos using text and image prompts
  • StartEnd-to-Video Generation: Generate creative videos using text and image prompts

System Components

The system consists of two main components:

  1. UVX MCP Server
    • Python-based cloud server
    • Communicates directly with the Vidu API
    • Provides full video generation capabilities

Installation & Configuration

Prerequisites

  1. Python 3.10 or higher
  2. UV/UVX
  3. Vidu API Key: Obtain from Vidu Platform (This feature requires API Credits, which must be purchased separately on Vidu Platform

Get Dependencies

  1. Python:

    • Download and install from the official Python website
    • Ensure Python is added to your system path
  2. UV/UVX:

    • Install uv and set up our Python project and environment:

Mac/Linux

curl -LsSf https://astral.sh/uv/install.sh | sh

Windows

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

How to Use MCP Server

1. Get Vidu API Key

  • Visit the Vidu Platform
  • Register or log into your account
  • Create and copy your API key from the account settings

2. Download Required Dependencies

  • Python: Install Python 3.10 or above
  • UV/UVX: Install the latest stable version of UV & UVX

3. Configure MCP Client

  • Open your MCP client (e.g., Claude for Desktop or Cursor)
  • Locate the client settings
  • Open mcp_config.json (or relevant config file)
  • Add the configuration based on the method you use:
{
  "mcpServers": {
    "Vidu": {
      "command": "uvx",
      "args": [
        "vidu-mcp"
      ],
      "env": {
        "VIDU_API_KEY": "api-key-here", 
        "VIDU_API_HOST": "api-host-here"
      }
    }
  }
}
  • Save the config file

4. Restart MCP Client or Refresh MCP Server

  • Fully close and reopen your MCP client
  • Or use the "Refresh MCP Server" option if supported

Client-specific Configuration

Claude for Desktop

  1. Open the Claude application
  2. Navigate to Claude > Settings > Developer > Edit Config
  3. Open the claude_desktop_config.json file
    • Windows
    • Mac : ~/Library/Application\ Support/Claude/claude_desktop_config.json
  4. Add the configuration above and save
  5. Restart Claude
    • If connected successfully: the homepage will not show any error and the MCP status will be green
    • If connection fails: an error message will be shown on the homepage

Cursor

  1. Open the Cursor application
  2. Go to Settings > Model Context Protocol
  3. Add a new server
  4. Fill in the server details as in the JSON config above
  5. Save and restart or refresh the MCP server

Usage Examples

Text-to-Video

Use natural language prompts via Claude or Cursor to generate videos.

Basic Example:

In an ultra-realistic fashion photography style featuring light blue and pale amber tones, an astronaut in a spacesuit walks through the fog. The background consists of enchanting white and golden lights, creating a minimalist still life and an impressive panoramic scene.

Advanced Example with Parameters:

Generate a night cityscape video with the following parameters:
Prompt: Skyscraper lights twinkling under the night sky, with car lights forming streaks on the road
Model: viduq1
Style: general
Duration: 5 seconds
Aspect Ratio: 16:9
Resolution: 1080p
Movement Amplitude: middle

FAQ

How do I get a Vidu API key?

  • Register at the Vidu Platform and generate it under "API-KEY" in your account.

What should I do if the server doesn't respond?

  1. Check whether your API key is valid
  2. View error logs (typically in the log folders of Claude or Cursor)

How to obtain credits?

  • If you haven't topped up on the API platform yet, please do so first. Vidu Platform

Where can I find the generated video?

  • You will receive a URL link to view, download, or share the video.

How long does video generation take?

  • Typically 30 seconds to 5 minutes depending on complexity, server load, and network conditions.

What to do if you encounter a spawn uvx ENOENT error?

  • This error is typically caused by incorrect UV/UVX installation paths. You can resolve it as follows:

For Mac/Linux:

sudo cp ./uvx /usr/local/bin

For Windows:

  1. Identify the installation path of UV/UVX by running the following command in the terminal:
where uvx
  1. Open File Explorer and locate the uvx/uv files.
  2. Move the files to one of the following directories:
    • C:\Program Files (x86) or C:\Program Files

Support

Technical Support

Metadata

Release files for vidu-mcp 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vidu-mcp 0.1.2
File Size Uploaded Provenance
vidu_mcp-0.1.2.tar.gz 25.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for vidu-mcp 0.1.2
File Interpreter ABI Platform
vidu_mcp-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 35.5 kB

Release files / vidu_mcp-0.1.2.tar.gz

Download URL vidu_mcp-0.1.2.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bf705b349f277739be8c6fe686842cff92e79acbaae740638d6af503eb2ab6bf
BLAKE2b-256 checksum
How to use checksums
26e0d1b886c5127f2fa94aa7bcad8f56de140760796f9495ada4dba31c0f0367
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.12

Release files / vidu_mcp-0.1.2-py3-none-any.whl

Download URL vidu_mcp-0.1.2-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5742b20b1db4fab30bac7e7cdc24ea6117828c8c006b46bbb9140f19d28e3ec5
BLAKE2b-256 checksum
How to use checksums
6484c0c5244677fa7e6da1fa126ac261eb540543a65d9ed06e125b82f0481de6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.12

Security for vidu-mcp 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page