@glutamateapp/edits
v1.0.1
Published
edits is FFmpeg MCP server for video/image processing tasks.
Downloads
9
Readme
Edits MCP Server (TypeScript)
A Model Context Protocol server that provides video, audio, and image processing capabilities using FFmpeg, written in TypeScript. This server enables LLMs to perform various media processing tasks like video conversion, audio extraction, image resizing, and social media format optimization.
Features
- Written in TypeScript for better type safety and developer experience
- Uses FFmpeg for robust media processing capabilities
- Server-Sent Events (SSE) support for real-time operation status
- Fully compatible with the Model Context Protocol
- Comprehensive media processing tools:
- Video processing (conversion, resizing, metadata extraction)
- Audio processing (extraction, conversion, merging)
- Image processing (resizing, format conversion)
- Social media optimization (platform-specific aspect ratios)
Available Tools
Video Processing
get_video_metadata: Get metadata for a video fileconvert_video: Change video format/codec (e.g., .mov to .mp4)resize_video: Change video resolutioncreate_gif: Create animated GIFs from video segmentstake_screenshots: Capture still frames from videos
Audio Processing
convert_audio: Convert audio format/codecextract_audio: Extract audio track from videomerge_video_and_audio: Combine video and audio files
Image Processing
resize_image: Resize images and convert formats
Social Media Tools
convert_to_social_media_format: Convert media to platform-specific formatsget_available_social_media_platforms: List available platform formats
The server runs on port 7452 by default.
Installation
Option 1: One-Click Installation via Glutamate App (Recommended)
The easiest way to install and set up the Edits MCP Server is through the Glutamate app:
- Download and install Glutamate
- Open Glutamate and navigate to the Extensions section
- Find Edits MCP Server and click "Install"
- The app will automatically configure everything for you
Option 2: Manual Setup
If you prefer to set up the Edits MCP Server manually:
Global Installation
npm install -g @glutamateapp/editsOnce installed globally, you can run the server directly:
editsUsing npx
You can run the server without installation using npx:
npx @glutamateapp/editsFrom Source
- Clone the repository
- Install dependencies:
npm install- Build the project:
npm run build- Start the server:
npm startFor development with hot reload:
npm run watchUsage Examples
Video Processing
// Get video metadata
{
"video_path": "input.mp4"
}
// Convert video format
{
"input_path": "input.mov",
"output_path": "output.mp4",
"video_codec": "libx264", // optional
"audio_codec": "aac" // optional
}
// Resize video
{
"input_path": "input.mp4",
"output_path": "output.mp4",
"size": "1280x720"
}Audio Processing
// Convert audio format
{
"input_path": "input.wav",
"output_path": "output.mp3",
"audio_codec": "libmp3lame"
}
// Extract audio from video
{
"input_path": "video.mp4",
"output_path": "audio.mp3"
}Image Processing
// Resize image
{
"input_path": "input.jpg",
"output_path": "output.png",
"size": "800x600"
}Social Media Optimization
// Convert to social media formats
{
"input_path": "video.mp4",
"output_folder": "social_media_outputs",
"platforms": ["instagram_reels", "youtube_shorts", "tiktok"],
"crop_mode": "crop", // optional: "crop", "pad", or "stretch"
"background_color": "black", // optional, used with pad mode
"filename_prefix": "my_video_" // optional
}Development
Prerequisites
- Node.js (v14 or higher)
- npm or yarn
- FFmpeg (automatically included)
Project Structure
src/editingassist/
├── config.ts # Server configuration
├── index.ts # Entry point
├── mcp-server.ts # MCP server implementation
├── utils.ts # Utility functions
└── types/ # TypeScript type definitionsContributing
Contributions are welcome! Please feel free to submit pull requests.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
For issues and feature requests, please use the GitHub issue tracker.
