Vidu Video Generation
STDIOMCP server for generating videos from images using Vidu's AI models.
MCP server for generating videos from images using Vidu's AI models.
A Model Context Protocol (MCP) server for interacting with the Vidu video generation API. This server provides tools for generating videos from images using Vidu's powerful AI models.
To install Vidu Video Generation Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @el-el-san/vidu-mcp-server --client claude
git clone https://github.com/el-el-san/vidu-mcp-server.git cd vidu-mcp-server
npm install
.env
file based on the .env.template
and add your Vidu API key:VIDU_API_KEY=your_api_key_here
npm run build
npm start
The MCP server will start and be ready to accept connections from MCP clients.
Converts a static image to a video with customizable parameters.
Parameters:
image_url
(required): URL of the image to convert to videoprompt
(optional): Text prompt for video generation (max 1500 chars)duration
(optional): Duration of the output video in seconds (4 or 8, default 4)model
(optional): Model name for generation ("vidu1.0", "vidu1.5", "vidu2.0", default "vidu2.0")resolution
(optional): Resolution of the output video ("360p", "720p", "1080p", default "720p")movement_amplitude
(optional): Movement amplitude of objects in the frame ("auto", "small", "medium", "large", default "auto")seed
(optional): Random seed for reproducibilityExample request:
{ "image_url": "https://example.com/image.jpg", "prompt": "A serene lake with mountains in the background", "duration": 8, "model": "vidu2.0", "resolution": "720p", "movement_amplitude": "medium", "seed": 12345 }
Checks the status of a running video generation task.
Parameters:
task_id
(required): Task ID returned by the image-to-video toolExample request:
{ "task_id": "12345abcde" }
Uploads an image to use with the Vidu API.
Parameters:
image_path
(required): Local path to the image fileimage_type
(required): Image file type ("png", "webp", "jpeg", "jpg")Example request:
{ "image_path": "/path/to/your/image.jpg", "image_type": "jpg" }
The server uses the Model Context Protocol (MCP) to provide a standardized interface for AI tools. When you start the server, it listens for commands through standard input/output channels and responds with results in a structured format.
The server handles all the complexity of interacting with the Vidu API, including:
.env
fileContributions are welcome! Please feel free to submit a Pull Request.