Logo van CapCutAPI

CapCutAPI

Community
fancyboi999

快速剪辑,供LLM使用剪映到MCP服务器

Uitgeverfancyboi999
Repositorycapcut-mcp
TaalPython
Forks
25
Sterren
95
Beschikbare tools
0
Transporttypestreamable-http
Categorieën
Links
  • Koppel tools aan AI-workflows

    CapCutAPI biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 0 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    95 sterren en 25 forks in de gekoppelde repository.

CapCutAPI

Open source CapCut API tool.

中文说明

Project Features

This project is a Python-based CapCut processing tool that offers the following core functionalities:

Core Features

  • Draft File Management: Create, read, modify, and save CapCut draft files
  • Material Processing: Support adding and editing various materials such as videos, audios, images, texts, stickers, etc.
  • Effect Application: Support adding multiple effects like transitions, filters, masks, animations, etc.
  • API Service: Provide HTTP API interfaces to support remote calls and automated processing
  • AI Integration: Integrate multiple AI services to support intelligent generation of subtitles, texts, and images

Main API Interfaces

  • /create_draft: Create a draft
  • /add_video: Add video material to the draft
  • /add_audio: Add audio material to the draft
  • /add_image: Add image material to the draft
  • /add_text: Add text material to the draft
  • /add_subtitle: Add subtitles to the draft
  • /add_effect: Add effects to materials
  • /add_sticker: Add stickers to the draft
  • /save_draft: Save the draft file

Configuration Instructions

Configuration File

The project supports custom settings through a configuration file. To use the configuration file:

  1. Copy config.json.example to config.json
  2. Modify the configuration items as needed
bash
cp config.json.example config.json

Environment Configuration

ffmpeg

This project depends on ffmpeg. You need to ensure that ffmpeg is installed on your system and added to the system's environment variables.

Python Environment

This project requires Python version 3.8.20. Please ensure that the correct version of Python is installed on your system.

Install Dependencies

Install the required dependency packages for the project:

bash
pip install -r requirements.txt

Run the Server

After completing the configuration and environment setup, execute the following command to start the server:

bash
python main.py

Once the server is started, you can access the related functions through the API interfaces.

Usage Examples

Adding a Video

python
import requests

response = requests.post("http://localhost:9000/add_video", json={
    "video_url": "http://example.com/video.mp4",
    "start": 0,
    "end": 10,
    "width": 1080,
    "height": 1920
})

print(response.json())

Adding Text

python
import requests

response = requests.post("http://localhost:9000/add_text", json={
    "text": "Hello, World!",
    "start": 0,
    "end": 3,
    "font": "Source Han Sans",
    "font_color": "#FF0000",
    "font_size": 30.0
})

print(response.json())

Saving a Draft

python
import requests

response = requests.post("http://localhost:9000/save_draft", json={
    "draft_id": "123456",
    "draft_folder": "your capcut draft folder"
})

print(response.json())

Copying the Draft to CapCut Draft Path

Calling save_draft will generate a folder starting with dfd_ in the current directory of the server. Copy this folder to the CapCut draft directory, and you will be able to see the generated draft.

Configure MCP

Configure MCP in Cursor. In the Cursor settings, add an MCP server with the address http://localhost:9000/mcp, and then you can use MCP in Cursor.

In the Claude configuration, add the following content:

json
{
    "mcpServers": {
        "capcut-mcp": {
            "type": "http",
            "url": "http://localhost:9000/mcp"
        }
    }
}

More Examples

Please refer to the example.py file in the project, which contains more usage examples such as adding audio and effects.

Project Features

  • Cross-platform Support: Supports both CapCut China version and CapCut International version
  • Automated Processing: Supports batch processing and automated workflows
  • Rich APIs: Provides comprehensive API interfaces for easy integration into other systems
  • Flexible Configuration: Achieve flexible function customization through configuration files
  • AI Enhancement: Integrate multiple AI services to improve video production efficiency

Installatie

TypingMind
Vereisten:

Node.js 18+

{
  "mcpServers": {
    "fancyboi999-capcut-mcp": {
      "command": "",
      "args": []
    }
  }
}

Gebruik CapCutAPI MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra CapCutAPI is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie maakt in TypingMind verbinding via de URL van een gehoste MCP-server.

Voeg een MCP-server-URL toe

Gebruik dit als CapCutAPI al extern wordt gehost of als je team één gedeelde connector wil die meerdere gebruikers kunnen gebruiken.

1

Open MCP-connectoren

Ga in TypingMind naar Plug-ins, open MCP-connectoren en kies URL toevoegen.

  1. Open TypingMind in je browser.
  2. Ga naar Plug-ins.
  3. Open MCP-connectoren.
  4. Klik op URL toevoegen.
TypingMind-formulier om een eigen MCP-server-URL toe te voegen
2

Plak de server-URL

Voer je server-URL in het veld Server-URL in. Voeg een verbindingsnaam, beschrijving, icoon, aangepaste HTTP-headers of OAuth-clientinstellingen toe als de server die vereist.

  1. Plak je server-URL in het veld Server-URL.
  2. Voer een verbindingsnaam in voor CapCutAPI.
  3. Voeg een beschrijving en een icoon toe om de verbinding makkelijker te herkennen.
  4. Voeg aangepaste HTTP-headers of OAuth-clientgegevens toe als de server authenticatie vereist.
3

Maak de verbinding

Klik op Verbinding maken, ga terug naar de lijst met plug-ins en controleer of de nieuwe MCP-verbinding actief is.

  1. Klik op Verbinding maken.
  2. Ga terug naar de lijst met MCP-connectoren.
  3. Controleer of de verbinding met CapCutAPI als actief wordt weergegeven.
  4. Vernieuw de lijst met plug-ins als de verbinding niet meteen verschijnt.
4

Wissel van model zonder opnieuw verbinding te maken

Start een chat met je favoriete model, schakel de tools van CapCutAPI in via Plug-ins en wissel van model wanneer dat nodig is. De MCP-verbinding blijft beschikbaar in de TypingMind-werkruimte.

  1. Start een nieuwe chat in TypingMind.
  2. Selecteer het AI-model dat je wilt gebruiken.
  3. Schakel de tools van CapCutAPI in via Plug-ins.
  4. Vraag het model om de tool te gebruiken wanneer dat nodig is.
  5. Schakel over naar een ander AI-model en gebruik dezelfde MCP-verbinding opnieuw.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je CapCutAPI gebruiken om me hiermee te helpen?
CapCutAPI
Zeker. Ik heb het gelezen.
Dit vond ik met CapCutAPI.

Veelgestelde vragen

Waarvoor wordt de MCP-server CapCutAPI gebruikt?

CapCutAPI is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik CapCutAPI MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je CapCutAPI gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom CapCutAPI MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als CapCutAPI verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik CapCutAPI MCP met TypingMind?

Je kunt CapCutAPI met TypingMind verbinden door de URL van de gehoste MCP-server toe te voegen. Dit is handig als je een externe MCP-verbinding wilt die beschikbaar is vanuit je TypingMind-werkruimte.

Welke tools biedt CapCutAPI MCP in TypingMind?

CapCutAPI biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om CapCutAPI MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als CapCutAPI authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇