JianYing MCP is a powerful video production automation tool based on the Model Context Protocol (MCP). It enables AI assistants to create professional video content through natural language, automating various aspects of video creation within the JianYing video editor.
For Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
For macOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
git clone https://github.com/your-username/jianying-mcp.git
cd jianying-mcp
uv sync
For example, with Augment Code, add the following server configuration:
{
"mcpServers": {
"jianying-mcp": {
"command": "uv",
"args": [
"--directory",
"/your-path/jianying-mcp/jianyingdraft",
"run",
"server.py"
],
"env": {
"SAVE_PATH": "/your-path/draft",
"OUTPUT_PATH": "/your-path/output"
}
}
}
}
Important environment variables:
SAVE_PATH
: Path for storing draft operation dataOUTPUT_PATH
: Location where generated JianYing draft files will be savedThe server provides several functions for managing video drafts:
rules
: Define video production specificationscreate_draft
: Create a new video draft projectexport_draft
: Export as a JianYing project filecreate_track
: Create video/audio/text tracksadd_video_segment
: Add video clips (from local files or URLs)add_video_animation
: Add entrance/exit animationsadd_video_transition
: Add transition effectsadd_video_filter
: Apply filter effectsadd_video_mask
: Add mask effectsadd_video_background_filling
: Background fillingadd_video_keyframe
: Keyframe animationsadd_audio_segment
: Add audio clips (from local files or URLs)add_audio_effect
: Audio effects (electronic, reverb, etc.)add_audio_fade
: Fade in/out effectsadd_audio_keyframe
: Audio keyframesadd_text_segment
: Add text segmentsadd_text_animation
: Text animation effectsadd_text_bubble
: Text bubble effectsadd_text_effect
: Text special effectsparse_media_info
: Parse media file informationfind_effects_by_type
: Find available effect resourcesFor a complete demonstration of the JianYing MCP capabilities, you can watch the demo video at Bilibili.
To run the server in debug mode using MCP Inspector:
uv run mcp dev jianyingdraft/server.py
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "jianying-mcp" '{"command":"uv","args":["--directory","/your-path/jianying-mcp/jianyingdraft","run","server.py"],"env":{"SAVE_PATH":"/your-path/draft","OUTPUT_PATH":"/your-path/output"}}'
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": {
"jianying-mcp": {
"command": "uv",
"args": [
"--directory",
"/your-path/jianying-mcp/jianyingdraft",
"run",
"server.py"
],
"env": {
"SAVE_PATH": "/your-path/draft",
"OUTPUT_PATH": "/your-path/output"
}
}
}
}
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": {
"jianying-mcp": {
"command": "uv",
"args": [
"--directory",
"/your-path/jianying-mcp/jianyingdraft",
"run",
"server.py"
],
"env": {
"SAVE_PATH": "/your-path/draft",
"OUTPUT_PATH": "/your-path/output"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect