Vidu MCP Streamable Http
Installation & Configuration
Prerequisites
Vidu API Key: Obtain from Vidu Platform (This feature requires API Credits, which must be purchased separately on Vidu Platform)
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. Configure MCP Client
Launch Inspector Tool
-
Launch Inspectornpx @modelcontextprotocol/inspector
-
Configure Connection Parameters
- Select Transport Type as Streamable HTTP
- Configure in the Authorization section:
- Header Name: x-md-Authorization
- Bearer Token: Token {your_api_key} (Replace {your_api_key} with your actual API key)
-
Establish Connection
- Click the Connect button to establish
Configure for Cursor / Claude for Desktop
- 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":{"url": "https://api.vidu.com/mcp/v1","headers": {"Authorization": "Token {your_api_key}"}}}}
- Save the config file
3. 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
- Open the Claude application
- Navigate to Claude > Settings > Developer > Edit Config
- Open the claude_desktop_config.json file
- Windows
- Mac : ~/Library/Application\ Support/Claude/claude_desktop_config.json
- Add the configuration above and save
- 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
- Open the Cursor application
- Go to Settings > Model Context Protocol
- Add a new server
- Fill in the server details as in the JSON config above
- 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 roadModel: viduq1Style: generalDuration: 5 secondsAspect Ratio: 16:9Resolution: 1080pMovement Amplitude: middle
Reference Video Generation
Basic Example:
Image 1: https://image1.pngImage 2: https://image2.pngImage 3: https://image3.pngGenerate a video where the black cat from Image 2 and Pikachu from Image 3 are playing and fighting on the seaside path from Image 1. Pikachu hits the black cat on the head, and the black cat pounces on Pikachu. The actions are fast, the scene is intense, and the image quality is realistic.
Advanced Example with Parameters:
Generate a video with the following parameters:Prompt: The black cat from Image 2 and Pikachu from Image 3 are playing and fighting on the seaside path from Image 1. Pikachu hits the black cat on the head, and the black cat pounces on Pikachu. The actions are fast, the scene is intense, and the image quality is realistic.Image 1: https://image1.pngImage 2: https://image2.pngImage 3: https://image3.pngModel: viduq1 (Reference)Style: generalDuration: 5 secondsAspect Ratio: 16:9Resolution: 1080p