gungunjain36
MCP Servergungunjain36public

glam mcp

基于 FastAPI 和 FFmpeg 的媒体转换流水线服务器,支持通过自然语言处理视频编辑任务。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
Python
Language
-
License

About This Server

基于 FastAPI 和 FFmpeg 的媒体转换流水线服务器,支持通过自然语言处理视频编辑任务。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

MCP Server A Media Conversion Pipeline (MCP) server built with FastAPI for video editing using FFmpeg. It accepts a video URL and a natural language prompt (e.g., "Cut from 10 to 20 seconds and apply sepia filter"), processes the prompt using the Gemini API, applies editing operations, and provides a download link. Prerequisites

Python 3.6+ (Python Downloads) FFmpeg installed at C:\Program Files\ffmpeg-7.1.1-full_build\ffmpeg-7.1.1-full_build\bin (Windows) Gemini API key (Google AI Studio) Virtual environment

Installation

Navigate to Project Directory: cd glam-server

Create and Activate Virtual Environment: python -m venv .venv .venv\Scripts\activate

Install Dependencies: pip install -r requirements.txt

Configure Gemini API Key:

Create a .env file in the project root:GEMINI_API_KEY=your-api-key

Replace your-api-key with your Gemini API key.

Verify FFmpeg: "C:\Program Files\ffmpeg-7.1.1-full_build\ffmpeg-7.1.1-full_build\bin\ffmpeg.exe" -version

Running the Server uvicorn src.main:app --reload

Usage Send a POST request to http://localhost:8000/edit_video with a video URL and natural language prompt. curl -X POST http://localhost:8000/edit_video -H "Content-Type: application/json" -d '{"url":"https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_1mb.mp4","prompt":"Cut from 10 to 20 seconds and apply sepia filter"}'

Response: {"edited_video_url":"/download/.mp4"} Download the video: curl http://localhost:8000/download/.mp4 --output edited_video.mp4

Supported Operations

trim start end: Cuts video from start to end seconds. crop w h x y: Crops to width w, height h, at (x, y). filter name: Applies sepia or grayscale.

Notes

Edited videos are stored in output_videos/. Only one trim operation is supported. Requires a Gemini API key stored in .env for natural language processing.

License MIT License

Quick Start

1

Clone the repository

git clone https://github.com/gungunjain36/glam-mcp
2

Install dependencies

cd glam-mcp
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownergungunjain36
Repoglam-mcp
LanguagePython
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation