This MCP server allows you to leverage Vidu's powerful AI models to generate videos from images. It provides a convenient interface to Vidu's video generation API with customizable settings for different models and output requirements.
Install the Vidu Video Generation Server for Claude Desktop automatically using 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 .env.template
and add your Vidu API key:VIDU_API_KEY=your_api_key_here
npm run build
To use with Gemini CLI, add the server configuration to ~/.gemini/settings.json
:
{
"mcpServers": {
"vidu": {
"command": "node",
"args": [
"your_path/vidu-mcp-server/build/index.js"
],
"env": {
"VIDU_API_KEY": "your_api_key_here"
}
}
}
}
Note: Replace your_path
with your actual installation directory path and your_api_key_here
with your Vidu API key.
Convert static images to videos with customizable parameters:
Required Parameters:
image_url
: URL of the image to convert to videoOptional Parameters:
prompt
: Text prompt for video generation (max 1500 characters)duration
: Output video duration in seconds (model-specific)
model
: Generation model name ("viduq1", "vidu1.5", "vidu2.0", default: "vidu2.0")resolution
: Output video resolution (model/duration-specific)
movement_amplitude
: Amplitude of object movement in frames ("auto", "small", "medium", "large", default: "auto")seed
: Random seed for reproducibilitybgm
: Add background music to the video (boolean, default: false, 4-second videos only)callback_url
: URL for asynchronous notifications when generation status changesExample 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,
"bgm": false
}
Monitor the status of running video generation tasks:
Required Parameters:
task_id
: Task ID returned by the image-to-video conversion toolExample Request:
{
"task_id": "12345abcde"
}
Upload images for use with the Vidu API:
Required Parameters:
image_path
: Local path to the image fileimage_type
: Image file type ("png", "webp", "jpeg", "jpg")Example Request:
{
"image_path": "/path/to/your/image.jpg",
"image_type": "jpg"
}
.env
file (for manual setup) or in the Gemini CLI configurationnpm run build
) before configuring in Gemini CLIbuild/index.js
file"disabled": false
in your server configurationTo add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "vidu-mcp-server" '{"command":"npx","args":["-y","@el-el-san/vidu-mcp-server"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"vidu-mcp-server": {
"command": "npx",
"args": [
"-y",
"@el-el-san/vidu-mcp-server"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"vidu-mcp-server": {
"command": "npx",
"args": [
"-y",
"@el-el-san/vidu-mcp-server"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect