MCP server for Jimeng Visual Generation API
Project description
Jimeng Visual Generation MCP Server
An MCP server for Volcengine's (火山引擎) Jimeng Visual Generation API. Provides image and video generation capabilities through the Model Context Protocol.
Features
- Text-to-Image (T2I): Generate images from text prompts
- Image-to-Image (I2I): Transform images based on prompts and references
- Multi-Image Fusion: Combine multiple reference images
- Text-to-Video (T2V): Generate videos from text prompts
- Image-to-Video (I2V): Create videos from first frame or first+last frame images
- Automatic Local File Support: Pass local file paths - they are automatically converted to Base64
Installation
Option 1: Install via pip
pip install jimeng_visual_generation
Option 2: Run directly with uvx (Recommended)
No installation needed. uvx will automatically download and run the package:
uvx jimeng_visual_generation
Configuration for VS Code / Cursor / Claude Desktop
Add the following to your MCP configuration file:
- VS Code:
~/.vscode/mcp.jsonor workspace settings - Cursor: Settings -> MCP Servers
- Claude Desktop:
%APPDATA%\Claude\claude_desktop_config.json
Example Configuration (with env variables)
{
"mcpServers": {
"jimeng_visual_generation": {
"command": "uvx",
"args": ["jimeng_visual_generation"],
"env": {
"VOLC_API_KEY": "your_volcengine_api_key_here",
"VOLC_IMAGE_MODEL": "doubao-seedream-4.5",
"VOLC_VIDEO_MODEL": "doubao-seedance-1.5-pro-251215"
}
}
}
}
Environment Variables
| Variable | Required | Description |
|---|---|---|
VOLC_API_KEY |
✅ Yes | Your Volcengine API Key |
VOLC_IMAGE_MODEL |
Optional | Image model ID (default: doubao-seedream-4.5) |
VOLC_VIDEO_MODEL |
Optional | Video model ID (default: doubao-seedance-1.5-pro) |
Available Tools
generate_image
Generate images using text prompts and optional reference images.
Parameters:
prompt(required): Text description of the desired imageimage_urls(optional): List of reference images (URLs, Base64, or local file paths)model(optional): Model ID to usesize(optional): Image dimensions (e.g., "2048x2048", "2K", "4K")
generate_video
Create video generation tasks. Automatically detects mode based on input:
- No images → Text-to-Video
- 1 image → First Frame I2V
- 2 images → First & Last Frame I2V
Parameters:
prompt(optional): Text description for the videoimage_urls(optional): Input images (URLs, Base64, or local file paths)model(optional): Model ID to useratio(optional): Aspect ratio (e.g., "16:9", "9:16")duration(optional): Video length in seconds
get_video_task_result
Query the status and result of a video generation task.
Parameters:
task_id(required): Task ID returned bygenerate_video
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jimeng_visual_generation-0.1.0.tar.gz.
File metadata
- Download URL: jimeng_visual_generation-0.1.0.tar.gz
- Upload date:
- Size: 50.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0rc2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0e2b57d524d85d0f0765d2a33957b87a44f8a4b687439dae93ab50eb2b6701a
|
|
| MD5 |
613c1a8d57b5823647a9caca0cd49e2f
|
|
| BLAKE2b-256 |
0409d9ed19c44e1ada83ce6dacd35b3186188ef8e518c3ba275b3f1b1f98661a
|
File details
Details for the file jimeng_visual_generation-0.1.0-py3-none-any.whl.
File metadata
- Download URL: jimeng_visual_generation-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0rc2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea1bfc96f7b3b2b6c55f43a09a25a0123c3e07658ac32071a487ffe83f190ebe
|
|
| MD5 |
be64f07a858fcc738211e1afb5d0c9f6
|
|
| BLAKE2b-256 |
22b39884606d687d078b03eba980507ccb6337d8bc94cfcc8e8685ca48b11138
|