diff --git a/README.md b/README.md
index 4980066..1f9a389 100644
--- a/README.md
+++ b/README.md
@@ -1,202 +1,78 @@
-# π¬ CapCutAPI - Open source CapCut API tool.
+# Connect AI generates via CapCutAPI [Try it online](https://www.capcutapi.top)
-
-## π― Project Overview
+**MCP, create your own editing Agent**
-**CapCutAPI** is a powerful enterprise-grade video editing automation platform built with Python, providing complete CapCut video editing capabilities. Through dual interfaces of HTTP API and MCP protocol, it enables seamless integration with AI assistants and automation tools.
+[](https://www.youtube.com/watch?v=fBqy6WFC78E)
-### π Core Advantages
+**Combine AI-generated images and videos using tools**
-
-
-|
+[](https://www.youtube.com/watch?v=1zmQWt13Dx0)
-**π¬ Professional Video Editing**
-- Complete CapCut functionality support
-- Multi-track timeline editing
-- Advanced effects and transitions
-- Keyframe animation system
+[](https://www.youtube.com/watch?v=IF1RDFGOtEU)
- |
-
+[](https://www.youtube.com/watch?v=rGNLE_slAJ8)
-**π€ AI Smart Integration**
-- Native MCP protocol support
-- Seamless AI assistant integration
-- Automated workflow processes
-- Batch processing capabilities
+\
- |
-
-
-|
+## Key Features
-**π Dual API Interfaces**
-- RESTful HTTP API
-- Model Context Protocol
-- Real-time processing response
-- Enterprise-grade stability
+| Feature Module | API | MCP Protocol | Description |
+|---------|----------|----------|------|
+| **Draft Management** | β
| β
| Create and save Jianying/CapCut draft files |
+| **Video Processing** | β
| β
| Import, clip, transition, and apply effects to multiple video formats |
+| **Audio Editing** | β
| β
| Audio tracks, volume control, sound effects processing |
+| **Image Processing** | β
| β
| Image import, animation, masks, filters |
+| **Text Editing** | β
| β
| Multi-style text, shadows, backgrounds, animations |
+| **Subtitle System** | β
| β
| SRT subtitle import, style settings, time synchronization |
+| **Effects Engine** | β
| β
| Visual effects, filters, transition animations |
+| **Sticker System** | β
| β
| Sticker assets, position control, animation effects |
+| **Keyframes** | β
| β
| Property animation, timeline control, easing functions |
+| **Media Analysis** | β
| β
| Get video duration, detect format |
- |
-
+## Quick Start
-**π Cross-platform Compatibility**
-- CapCut International support
-- JianYing China support
-- Windows/macOS compatible
-- Cloud deployment ready
+### 1\. System Requirements
- |
-
-
+ - Python 3.10+
+ - Jianying or CapCut International version
+ - FFmpeg
----
-
-## π₯ Product Showcase
-
-
-
-### π AI Generated Video Cases
-
-[](https://www.youtube.com/watch?v=IF1RDFGOtEU)
-
-### π΅ Music Video Production
-
-[](https://www.youtube.com/watch?v=rGNLE_slAJ8)
-
-*AI-driven video generation powered by CapCutAPI*
-
-
-
----
-
-## π Core Features
-
-### π Feature Matrix
-
-| Feature Module | HTTP API | MCP Protocol | Description |
-|---------------|----------|--------------|-------------|
-| π¬ **Draft Management** | β
| β
| Create, read, modify, save CapCut draft files |
-| π₯ **Video Processing** | β
| β
| Multi-format video import, editing, transitions, effects |
-| π **Audio Editing** | β
| β
| Audio tracks, volume control, audio effects |
-| πΌοΈ **Image Processing** | β
| β
| Image import, animations, masks, filters |
-| π **Text Editing** | β
| β
| Multi-style text, shadows, backgrounds, animations |
-| π **Subtitle System** | β
| β
| SRT subtitle import, styling, time sync |
-| β¨ **Effects Engine** | β
| β
| Visual effects, filters, transition animations |
-| π **Sticker System** | β
| β
| Sticker assets, position control, animation effects |
-| π― **Keyframes** | β
| β
| Property animations, timeline control, easing functions |
-| π **Media Analysis** | β
| β
| Video duration detection, format analysis |
-
-### π οΈ API Interface Overview
-
-
-π‘ HTTP API Endpoints (9 endpoints)
-
-π¬ Draft Management
-βββ POST /create_draft # Create new draft
-βββ POST /save_draft # Save draft file
-
-π₯ Media Assets
-βββ POST /add_video # Add video material
-βββ POST /add_audio # Add audio material
-βββ POST /add_image # Add image material
-
-π Text Content
-βββ POST /add_text # Add text elements
-βββ POST /add_subtitle # Add subtitle files
-
-β¨ Effect Enhancement
-βββ POST /add_effect # Add visual effects
-βββ POST /add_sticker # Add sticker elements
-
-
-
-
-
-π§ MCP Tool Set (11 tools)
-
-π¬ Project Management
-βββ create_draft # Create video project
-βββ save_draft # Save project file
-
-π₯ Media Editing
-βββ add_video # Video track + transition effects
-βββ add_audio # Audio track + volume control
-βββ add_image # Image assets + animation effects
-
-π Text System
-βββ add_text # Multi-style text + shadow background
-βββ add_subtitle # SRT subtitles + styling
-
-β¨ Advanced Features
-βββ add_effect # Visual effects engine
-βββ add_sticker # Sticker animation system
-βββ add_video_keyframe # Keyframe animations
-βββ get_video_duration # Media information retrieval
-
-
-
----
-
-## π οΈ Quick Start
-
-### π System Requirements
-
-
-
-| π Python Environment |
-Python 3.8.20+ (Recommended 3.10+) |
-
-
-| π¬ CapCut Application |
-CapCut International or JianYing China |
-
-
-| π΅ FFmpeg |
-For media file processing and analysis |
-
-
-| πΎ Storage Space |
-At least 2GB available space |
-
-
-
-### β‘ One-Click Installation
+### 2\. Installation and Deployment
```bash
# 1. Clone the project
git clone https://github.com/sun-guannan/CapCutAPI.git
cd CapCutAPI
-# 2. Create virtual environment (recommended)
+# 2. Create a virtual environment (recommended)
python -m venv venv-capcut
source venv-capcut/bin/activate # Linux/macOS
# or venv-capcut\Scripts\activate # Windows
@@ -205,47 +81,26 @@ source venv-capcut/bin/activate # Linux/macOS
pip install -r requirements.txt # HTTP API basic dependencies
pip install -r requirements-mcp.txt # MCP protocol support (optional)
-# 4. Configuration
+# 4. Configuration file
cp config.json.example config.json
# Edit config.json as needed
```
-### π Start Services
-
-
-
-|
-
-**π HTTP API Server**
+### 3\. Start the service
```bash
-python capcut_server.py
+python capcut_server.py # Start the HTTP API server, default port: 9001
+
+python mcp_server.py # Start the MCP protocol service, supports stdio communication
```
-*Default port: 9001*
+## MCP Integration Guide
- |
-
+[MCP Documentation in Chinese](https://www.google.com/search?q=./MCP_%E6%96%87%E6%A1%A3_%E4%B8%AD%E6%96%87.md) β’ [MCP English Guide](https://www.google.com/search?q=./MCP_Documentation_English.md)
-**π§ MCP Protocol Server**
+### 1\. Client Configuration
-```bash
-python mcp_server.py
-```
-
-*Supports stdio communication*
-
- |
-
-
-
----
-
-## π§ MCP Integration Guide
-
-### π± Client Configuration
-
-Create or update `mcp_config.json` configuration file:
+Create or update the `mcp_config.json` configuration file:
```json
{
@@ -263,7 +118,7 @@ Create or update `mcp_config.json` configuration file:
}
```
-### π§ͺ Connection Testing
+### 2\. Connection Test
```bash
# Test MCP connection
@@ -271,32 +126,15 @@ python test_mcp_client.py
# Expected output
β
MCP server started successfully
-β
Retrieved 11 available tools
+β
Got 11 available tools
β
Draft creation test passed
```
-### π― MCP Featured Functions
+## Usage Examples
-
+### 1\. API Example
-| Feature | Description | Example |
-|---------|-------------|----------|
-| π¨ **Advanced Text Styling** | Multi-color, shadow, background effects | `shadow_enabled: true` |
-| π¬ **Keyframe Animation** | Position, scale, opacity animations | `property_types: ["scale_x", "alpha"]` |
-| π **Audio Precision Control** | Volume, speed, audio effects | `volume: 0.8, speed: 1.2` |
-| π± **Multi-format Support** | Various video dimensions and formats | `width: 1080, height: 1920` |
-| β‘ **Real-time Processing** | Instant draft updates and previews | Millisecond response time |
-
-
-
----
-
-## π‘ Usage Examples
-
-### π HTTP API Examples
-
-
-πΉ Adding Video Material
+Add video material
```python
import requests
@@ -305,9 +143,7 @@ import requests
response = requests.post("http://localhost:9001/add_video", json={
"video_url": "https://example.com/background.mp4",
"start": 0,
- "end": 10,
- "width": 1080,
- "height": 1920,
+ "end": 10
"volume": 0.8,
"transition": "fade_in"
})
@@ -315,20 +151,17 @@ response = requests.post("http://localhost:9001/add_video", json={
print(f"Video addition result: {response.json()}")
```
-
-
-
-π Creating Styled Text
+Create stylized text
```python
import requests
# Add title text
response = requests.post("http://localhost:9001/add_text", json={
- "text": "π¬ Welcome to CapCutAPI",
+ "text": "Welcome to CapCutAPI",
"start": 0,
"end": 5,
- "font": "Arial",
+ "font": "Source Han Sans",
"font_color": "#FFD700",
"font_size": 48,
"shadow_enabled": True,
@@ -338,15 +171,14 @@ response = requests.post("http://localhost:9001/add_text", json={
print(f"Text addition result: {response.json()}")
```
-
+More examples can be found in the `example.py` file.
-### π§ MCP Protocol Examples
+### 2\. MCP Protocol Example
-
-π― Complete Workflow
+Complete workflow
```python
-# 1. Create new project
+# 1. Create a new project
draft = mcp_client.call_tool("create_draft", {
"width": 1080,
"height": 1920
@@ -382,162 +214,71 @@ mcp_client.call_tool("add_video_keyframe", {
"values": ["1.0", "1.2", "0.8"]
})
-# 5. Save project
+# 5. Save the project
result = mcp_client.call_tool("save_draft", {
"draft_id": draft_id
})
+
print(f"Project saved: {result['result']['draft_url']}")
```
-
+Advanced text effects
-### Testing with REST Client
-
-You can use the `rest_client_test.http` file with REST Client IDE plugins for HTTP testing.
-
-### Draft Management
-
-Calling `save_draft` generates a folder starting with `dfd_` in the server's current directory. Copy this folder to your CapCut draft directory to access the generated draft in CapCut.
-
----
-
-## π Documentation Center
-
-
-
-| π Document Type | π Language | π Link | π Description |
-|-----------------|-------------|---------|----------------|
-| **MCP Complete Guide** | πΊπΈ English | [MCP Documentation](./MCP_Documentation_English.md) | Complete MCP server usage guide |
-| **MCP User Manual** | π¨π³ Chinese | [MCP δΈζζζ‘£](./MCP_ζζ‘£_δΈζ.md) | Detailed Chinese usage instructions |
-| **API Reference** | πΊπΈ English | [example.py](./example.py) | Code examples and best practices |
-| **REST Testing** | π Universal | [rest_client_test.http](./rest_client_test.http) | HTTP interface test cases |
-
-
-
----
-
-## π Enterprise Features
-
-### π Security
-
-- **π‘οΈ Input Validation**: Strict parameter validation and type checking
-- **π Error Handling**: Comprehensive exception catching and error reporting
-- **π Logging**: Detailed operation logs and debug information
-- **π« Resource Limits**: Memory and processing time limit protection
-
-### β‘ Performance Optimization
-
-- **π Async Processing**: Non-blocking concurrent operation support
-- **πΎ Memory Management**: Smart resource recycling and caching mechanisms
-- **π Batch Processing**: Efficient batch operation interfaces
-- **β±οΈ Response Time**: Millisecond-level API response speed
-
-### π§ Scalability
-
-- **π Plugin Architecture**: Modular functionality extension support
-- **π Multi-protocol**: HTTP REST and MCP dual protocol support
-- **βοΈ Cloud Deployment**: Containerization and microservice architecture ready
-- **π Monitoring Integration**: Complete performance monitoring and metrics collection
-
----
-
-## π€ Community & Support
-
-### π¬ Get Help
-
-
-
-| π Support Channel | π Link | π Description |
-|-------------------|---------|----------------|
-| **π Bug Reports** | [GitHub Issues](https://github.com/sun-guannan/CapCutAPI/issues) | Bug reports and feature requests |
-| **π‘ Feature Suggestions** | [Discussions](https://github.com/sun-guannan/CapCutAPI/discussions) | Community discussions and suggestions |
-| **π Documentation Feedback** | [Documentation Issues](https://github.com/sun-guannan/CapCutAPI/issues?q=label%3Adocumentation) | Documentation improvement suggestions |
-| **π§ Technical Support** | [Stack Overflow](https://stackoverflow.com/questions/tagged/capcut-api) | Technical Q&A |
-
-
-
-### π― Contributing Guide
-
-We welcome all forms of contributions!
-
-```bash
-# 1. Fork the project
-git clone https://github.com/your-username/CapCutAPI.git
-
-# 2. Create feature branch
-git checkout -b feature/amazing-feature
-
-# 3. Commit changes
-git commit -m 'Add amazing feature'
-
-# 4. Push branch
-git push origin feature/amazing-feature
-
-# 5. Create Pull Request
+```python
+# Multi-style colored text
+mcp_client.call_tool("add_text", {
+ "text": "Colored text effect demonstration",
+ "draft_id": draft_id,
+ "start": 2,
+ "end": 8,
+ "font_size": 42,
+ "shadow_enabled": True,
+ "shadow_color": "#FFFFFF",
+ "background_alpha": 0.8,
+ "background_round_radius": 20,
+ "text_styles": [
+ {"start": 0, "end": 2, "font_color": "#FF6B6B"},
+ {"start": 2, "end": 4, "font_color": "#4ECDC4"},
+ {"start": 4, "end": 6, "font_color": "#45B7D1"}
+ ]
+})
```
----
+### 3\. Downloading Drafts
-## π Project Statistics
+Calling `save_draft` will generate a folder starting with `dfd_` in the current directory of `capcut_server.py`. Copy this to the CapCut/Jianying drafts directory to see the generated draft in the application.
-
+## Community & Support
-### β Star History
+We welcome contributions of all forms\! Our iteration rules are:
-[](https://www.star-history.com/#sun-guannan/CapCutAPI&Date)
+ - No direct PRs to main
+ - PRs can be submitted to the dev branch
+ - Merges from dev to main and releases will happen every Monday
-### π Project Metrics
+## Join our group
-
-
-
-
-
+ - Feedback on issues
+ - Feature suggestions
+ - Latest news
-
+### π€ Collaboration Opportunities
----
+ - **Overseas Video Production**: Want to use this API for batch production of overseas videos? I offer free consulting services to help you use this API. In return, I'll ask for the production workflow template to be **open-sourced** in the `template` directory of this project.
-## π License
+ - **Join us**: Our goal is to provide a stable and reliable video editing tool that integrates well with AI-generated images, videos, and audio. If you are interested, you can start by translating the Chinese content in the project into English\! Submit a PR and I'll see it. For more in-depth involvement, the code for the MCP Editing Agent, web-based editing client, and cloud rendering modules has not been open-sourced yet.
-
+ - **Contact**:
-This project is open source under the Apache 2.0 License. See [LICENSE](LICENSE) file for details.
+ - WeChat: sguann
+ - Douyin: εͺζ θη¨Ώε©ζ
-Apache License 2.0
+## π Star History
-Copyright (c) 2025 CapCutAPI Contributors
+\
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
+[](https://www.star-history.com/#sun-guannan/CapCutAPI&Date)
- http://www.apache.org/licenses/LICENSE-2.0
+\
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
----
-
-
-
-## π Get Started Now
-
-**Experience the power of CapCutAPI today!**
-
-[](https://www.capcutapi.top)
-[](https://github.com/sun-guannan/CapCutAPI/archive/refs/heads/main.zip)
-[](./MCP_Documentation_English.md)
-
----
-
-**π New Feature**: Now with MCP protocol support for seamless AI assistant integration! Try the MCP server for advanced video editing automation.
-
-*Made with β€οΈ by the CapCutAPI Community*
-
-
+*Made with β€οΈ by the CapCutAPI Community*
\ No newline at end of file