Jimeng MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Jimeng MCP Servergenerate an image of a futuristic city at sunset"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Jimeng MCP Server
Model Context Protocol (MCP) server for Jimeng AI - providing powerful image and video generation capabilities through Claude and other LLM applications
Project Introduction
Jimeng MCP Server is a professional AI image and video generation MCP server, built on the open-source project jimeng-free-api-all, providing powerful AI creation capabilities through MCP clients such as Claude Desktop, Cherry Studio, and Claude Code.
Core Dependencies
This project is built on the open-source project jimeng-free-api-all, which provides the reverse-engineered API implementation for Jimeng AI, supporting various AI generation capabilities such as text-to-image and image-to-video.
Core Features
Text-to-Image: Generate high-quality images from text descriptions using Jimeng 4.5
Image Composition: Intelligently blend multiple images based on text instructions
Text-to-Video: Generate short video clips from text descriptions using Jimeng Video 3.0
Image-to-Video: Add animation effects to static images
MCP Protocol Support: Standard MCP protocol, supporting multiple communication modes
Multi-Client Compatibility: Supports Claude Desktop, Cherry Studio, Claude Code, etc.
Related MCP server: Jimeng MCP Server
Changelog
v0.2.0 (2024-12-14) - Parameter Format Synchronization Update
Sync with upstream v4.7 update: Adapted to the latest API parameter format of jimeng-free-api-all
Image API parameter changes:
Removed
widthandheightparametersAdded
ratioparameter: supports1:1,4:3,3:4,16:9,9:16,3:2,2:3,21:9Added
resolutionparameter: supports1k,2k(default),4k
Video API parameter changes:
Removed
widthandheightparametersAdded
ratioparameter: supports1:1(default),4:3,3:4,16:9,9:16resolutionparameter: supports480p,720p(default),1080pAdded
durationparameter: video length, supports 5 or 10 seconds
Default model upgrade: Default image model upgraded from
jimeng-4.0tojimeng-4.5
Feature List
Feature Name | Description | Tech Stack | Status |
Text-to-Image | Create high-quality images from detailed text prompts | jimeng-4.5 | ✅ Stable |
Image Composition | Compose 1-10 images, style transfer and blending | jimeng-4.5 | ✅ Stable |
Text-to-Video | Create animated videos from text | jimeng-video-3.0 | ✅ Stable |
Image-to-Video | Bring static images to life | jimeng-video-3.0 | ✅ Stable |
stdio Mode | Standard input/output communication | MCP Protocol | ✅ Stable |
SSE Mode | Server-Sent Events event stream | Starlette | ✅ Stable |
HTTP Mode | RESTful API interface | FastAPI | ✅ Stable |
Multi-Image Generation | jimeng-4.x supports intelligent multi-image generation | Jimeng AI | ✅ Stable |
Technical Architecture
Technology | Version | Purpose |
Python | 3.10+ | Primary development language |
MCP | 1.0+ | Model Context Protocol |
httpx | 0.27+ | HTTP client |
Starlette | 0.37+ | ASGI framework |
Uvicorn | 0.27+ | ASGI server |
sse-starlette | 1.6+ | SSE support |
Architecture Description
┌─────────────────────────────────────────────────┐
│ Claude Desktop / MCP Client │
└────────────────────┬────────────────────────────┘
│ MCP Protocol
↓
┌─────────────────────────────────────────────────┐
│ jimengmcp (本 MCP 服务器) │
│ ┌──────────────────────────────────────┐ │
│ │ MCP Protocol Handler (stdio/sse) │ │
│ └───────────────┬──────────────────────┘ │
│ ↓ │
│ ┌──────────────────────────────────────┐ │
│ │ Tool Implementations │ │
│ │ - text_to_image │ │
│ │ - image_composition │ │
│ │ - text_to_video │ │
│ │ - image_to_video │ │
│ └───────────────┬──────────────────────┘ │
└────────────────────┼────────────────────────────┘
│ HTTP API Calls
↓
┌─────────────────────────────────────────────────┐
│ jimeng-free-api-all 逆向接口服务 │
│ (https://github.com/wwwzhouhui/ │
│ jimeng-free-api-all) │
│ ┌──────────────────────────────────────┐ │
│ │ OpenAI Compatible API Endpoints │ │
│ │ - POST /v1/images/generations │ │
│ │ - POST /v1/images/compositions │ │
│ │ - POST /v1/videos/generations │ │
│ └───────────────┬──────────────────────┘ │
└────────────────────┼────────────────────────────┘
│ 逆向调用
↓
┌─────────────────────────────────────────────────┐
│ 即梦 AI 官方服务 │
│ (https://jimeng.duckcloud.fun) │
└─────────────────────────────────────────────────┘Installation Instructions
Environment Requirements
Python 3.10+
Deploy the jimeng-free-api-all service
Obtain the Jimeng API SessionID from duckcloud.fun
Step 1: Deploy the jimeng-free-api-all Service
This MCP server requires the underlying API service to be deployed first.
Method 1: Docker Deployment (Recommended)
# 拉取镜像
docker pull wwwzhouhui569/jimeng-free-api-all:latest
# 运行容器
docker run -it -d --init --name jimeng-free-api-all \
-p 8001:8000 \
-e TZ=Asia/Shanghai \
wwwzhouhui569/jimeng-free-api-all:latestMethod 2: Source Code Deployment
# 克隆 jimeng-free-api-all 项目
git clone https://github.com/wwwzhouhui/jimeng-free-api-all.git
cd jimeng-free-api-all
# 使用 Docker Compose 启动
docker-compose up -dObtaining the SessionID:
Visit the Jimeng official website and log in
Press
F12to open the browser developer toolsGo to
Application>CookiesFind and copy the value of
sessionidUse it in subsequent configuration:
Authorization: Bearer [your_sessionid]
Verifying the Deployment:
# 测试 API 是否正常运行
curl http://localhost:8001/v1/modelsStep 2: Install the jimengmcp MCP Server
# 克隆此仓库
git clone https://github.com/wwwzhouhui/jimeng-mcp-server
cd jimeng-mcp-serverBasic Installation (stdio Mode)
pip install -e .SSE Mode
pip install -e ".[sse]"HTTP Mode
pip install -e ".[http]"Full Installation (All Modes)
pip install -e ".[all]"Configure Environment Variables
cp .env.example .envEdit the .env file:
# 必需: 您的即梦 SessionID (从浏览器 Cookie 中获取)
JIMENG_API_KEY=your_sessionid_here
# 必需: jimeng-free-api-all 服务地址
JIMENG_API_URL=http://localhost:8001
# 可选: 默认使用的模型
JIMENG_MODEL=jimeng-4.5Usage Instructions
Claude Code Configuration
Configure using cc-switch:


After configuration is complete, click Save.

Use mcp list to view:

Using in Claude Code
Text-to-Image Example:
请使用jimeng-mcp-server 生成一张图像:小猪和小狗踢球
Image Composition Example:
请使用jimeng-mcp-server 将这两张图像合成在一起:
- 图像1: https://p3-dreamina-sign.byteimg.com/tos-cn-i-tb4s082cfz/bab623359bd9410da0c1f07897b16fec~tplv-tb4s082cfz-resize:0:0.image
- 图像2: https://p3-dreamina-sign.byteimg.com/tos-cn-i-tb4s082cfz/6acf16d07c47413898aea2bdd1ad339e~tplv-tb4s082cfz-resize:0:0.image
创建一个艺术风格的无缝融合
Text-to-Video Example:
请使用jimeng-mcp-server 创建一个视频:小马过河Running Modes
This MCP server supports three communication modes:
1. stdio Mode (Default)
stdio mode communicates via standard input/output, suitable for integration with MCP clients such as Claude Desktop.
python -m jimeng_mcp.server
# 或
python -m jimeng_mcp.server --mode stdio2. SSE Mode (Server-Sent Events)
SSE mode provides HTTP-based event streaming, suitable for web application integration.
python -m jimeng_mcp.server --mode sse --host 0.0.0.0 --port 8000Connection endpoint: http://localhost:8000/sse

3. HTTP REST API Mode
HTTP mode provides a standard RESTful API interface, suitable for calls from various programming languages.
python -m jimeng_mcp.server --mode http --host 0.0.0.0 --port 8000Available Endpoints:
GET /health- Health checkGET /tools- Get the list of available toolsPOST /text-to-image- Text-to-image generationPOST /image-composition- Image compositionPOST /text-to-video- Text-to-video generationPOST /image-to-video- Image-to-video generation
Configuration Instructions
Environment Variable Configuration
Variable Name | Description | Default Value |
| Jimeng API SessionID (required) | None |
| jimeng-free-api-all service address |
|
| Default model for image generation |
|
Cherry Studio Configuration
Add this server to the Cherry Studio configuration file:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"jimeng": {
"command": "python",
"args": ["-m", "jimeng_mcp.server"],
"env": {
"JIMENG_API_KEY": "您的API密钥"
}
}
}
}SSE configuration:


API Tool Parameters
text_to_image (Text-to-Image)
Parameter | Type | Required | Default Value | Description |
prompt | string | Yes | - | Detailed description of the image, jimeng-4.x supports multi-image generation |
negative_prompt | string | No | "" | Content to avoid in the image |
ratio | string | No | 1:1 | Aspect ratio (1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9) |
resolution | string | No | 2k | Resolution (1k, 2k, 4k) |
sample_strength | float | No | 0.5 | Fine-tuning level (0.0-1.0) |
model | string | No | jimeng-4.5 | Model to use |
image_composition (Image Composition)
Parameter | Type | Required | Default Value | Description |
prompt | string | Yes | - | How to compose the images |
images | array | Yes | - | Array of image URLs (1-10 images) |
ratio | string | No | 1:1 | Output aspect ratio |
resolution | string | No | 2k | Output resolution (1k, 2k, 4k) |
sample_strength | float | No | 0.5 | Fine-tuning level (0.0-1.0) |
model | string | No | jimeng-4.5 | Model to use |
text_to_video (Text-to-Video)
Parameter | Type | Required | Default Value | Description |
prompt | string | Yes | - | Video description |
ratio | string | No | 1:1 | Aspect ratio (1:1, 4:3, 3:4, 16:9, 9:16) |
resolution | string | No | 720p | Resolution (480p, 720p, 1080p) |
duration | integer | No | 5 | Video length (5 or 10 seconds) |
model | string | No | jimeng-video-3.0 | Model to use |
image_to_video (Image-to-Video)
Parameter | Type | Required | Default Value | Description |
prompt | string | Yes | - | Animation description |
file_paths | array | Yes | - | Array of first-frame/last-frame image URLs |
ratio | string | No | 1:1 | Aspect ratio (1:1, 4:3, 3:4, 16:9, 9:16) |
resolution | string | No | 720p | Resolution (480p, 720p, 1080p) |
duration | integer | No | 5 | Video length (5 or 10 seconds) |
model | string | No | jimeng-video-3.0 | Model to use |
Development Guide
Running Tests
pytestRunning the Server Directly
python -m jimeng_mcp.serverFrequently Asked Questions
A: Make sure JIMENG_API_KEY in the .env file is set correctly, and verify that your API key is valid and has sufficient quota.
A: Check your network connection, verify that the API base URL is accessible, and check for firewall restrictions.
A: Video generation may take a few minutes. The server automatically sets a longer timeout (10 minutes) for video operations. Consider generating shorter videos or using lower resolutions.
A: Make sure Docker is installed and running, check whether port 8001 is occupied, and inspect the container logs to troubleshoot the issue.
A: Make sure the .env file is configured correctly, use the mcp list command to check the MCP server status, and confirm that the environment variables are loaded properly.
Technical Community Group
Welcome to join the technical community group to share your usage experience and feedback:

Author Contact
WeChat: laohaibao2025
Email: 75271002@qq.com

Donations
If this project has been helpful to you, feel free to buy me a coffee ☕
WeChat Pay

Star History
If you like this project, feel free to give it a Star ⭐
License
MIT License
Disclaimer
This project is for learning and research purposes only, built on the jimeng-free-api-all project.
Important Notes:
⚠️ This project uses reverse-engineered APIs, for personal learning and research only
⚠️ Commercial use or providing this as a service to others is prohibited
⚠️ Reverse-engineered APIs may become invalid with official updates, please follow project updates
⚠️ Please comply with the official terms of service and usage restrictions of Jimeng AI
⚠️ It is recommended to use the official API for production deployment
Related Projects
This project depends on and thanks the following open-source projects:
Core Dependencies
jimeng-free-api-all - Jimeng AI reverse-engineered API implementation
Provides complete image and video generation APIs
OpenAI-compatible interface design
Supports one-click Docker deployment
Open-source license: GPL-3.0
Technical Frameworks
Model Context Protocol (MCP) - Unified AI tool protocol standard
Python MCP SDK - Python implementation of MCP
Jimeng AI - Underlying AI generation service
Special Thanks
wwwzhouhui - Author of the jimeng-free-api-all project, providing a stable and reliable Jimeng AI reverse-engineered API
Anthropic - Developed the powerful Claude AI and MCP protocol
Jimeng AI Team - Providing excellent image and video generation capabilities
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityDmaintenanceA Model Context Protocol server that enables generating AI images using Volcengine's Jimeng service, supporting features like prompt enhancement, super-resolution, and watermarking.1451MIT
- AlicenseDqualityDmaintenanceIntegrates Jimeng AI image and video generation services through MCP protocol, enabling users to generate high-quality images and videos from text prompts with support for image mixing, reference images, and multiple AI models.34553MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server providing multi-modal generation tools based on Volcengine's Jimeng AI, supporting high-quality 4K image creation, intelligent image editing, and video generation. It enables users to perform complex visual tasks directly within clients like Cursor and Claude Desktop.12MIT
- AlicenseAqualityBmaintenanceMCP server for AI-powered image, audio, and video generation, enabling media creation directly from Claude, Cursor, and other MCP clients.1164MIT
Related MCP Connectors
MCP server for Wan AI video generation
MCP server for Hailuo (MiniMax) AI video generation
MCP server for Google Veo AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/wwwzhouhui/jimeng-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server