Remotion Video Editing MCP Server
Web-based video editing platform that provides direct editing functionality through a Model Context Protocol server, supporting media file management, timeline editing, and advanced transformation effects.
README
Remotion 영상편집 MCP 서버
Remotion 기반의 웹 영상편집 플랫폼으로, MCP (Model Context Protocol) 서버를 통해 직접적인 편집 기능을 제공합니다.
🎯 주요 기능
1. 미디어 파일 관리
- 파일 업로드: 비디오, 오디오, 이미지 파일 지원
- 메타데이터 추출: 해상도, 지속시간, 파일크기 등 자동 추출
- 썸네일 생성: 비디오 및 이미지 파일의 썸네일 자동 생성
- 파일 형식 지원: MP4, MOV, AVI, MP3, WAV, JPG, PNG 등
2. 타임라인 편집
- 멀티트랙 지원: 비디오, 오디오, 자막 트랙 독립 관리
- 정밀한 시간 조정: 프레임 단위 편집 가능
- 드래그 앤 드롭: 직관적인 미디어 배치
- 실시간 미리보기: 편집 중 즉시 결과 확인
3. 편집 작업
- 트림: 시작/끝점 조정으로 클립 길이 편집
- 분할: 특정 지점에서 클립을 둘로 나누기
- 이동: 타임라인 상에서 클립 위치 이동
- 겹침 해결: 자동으로 충돌하는 클립 정리
- 실행 취소/다시 실행: 모든 편집 작업 되돌리기 가능
4. 레이아웃 및 배치
- 2D 변환: 위치, 크기, 회전, 투명도 조정
- 레이어 관리: 여러 미디어의 층별 배치
- 키프레임 애니메이션: 시간에 따른 속성 변화
- 트랜지션 효과: fadeIn, fadeOut, slide 등
🏗️ 아키텍처
핵심 컴포넌트
1. MediaFileManager (src/utils/mediaUtils.ts)
// 미디어 파일 업로드 및 관리
const mediaManager = new MediaFileManager();
const mediaFile = await mediaManager.uploadFile(file);
2. TimelineManager (src/utils/timelineUtils.ts)
// 타임라인 및 편집 작업 관리
const timeline = new TimelineManager(30); // 30fps
const track = timeline.createTrack('Video Track', 'video');
timeline.addItemToTrack(trackId, mediaItem);
3. MCPVideoEditingServer (src/api/mcpInterface.ts)
// MCP 서버 인터페이스
const server = new MCPVideoEditingServer();
const sessionId = server.createSession();
const response = await server.handleRequest(mcpRequest);
MCP API 엔드포인트
세션 관리
session.create: 새 편집 세션 생성session.delete: 세션 삭제session.list: 활성 세션 목록
미디어 관리
media.upload: 파일 업로드media.list: 미디어 라이브러리 조회media.delete: 파일 삭제media.get_info: 파일 정보 조회
타임라인 편집
timeline.create_track: 새 트랙 생성timeline.add_item: 미디어를 트랙에 추가timeline.move_item: 클립 이동timeline.trim_item: 클립 트림timeline.split_item: 클립 분할timeline.get_state: 현재 타임라인 상태
편집 작업
edit.undo: 실행 취소edit.redo: 다시 실행render.export: 비디오 내보내기
🚀 시작하기
설치
npm install
개발 서버 실행
npm run dev
빌드
npm run build
💻 사용 예시
기본 편집 워크플로우
// 1. MCP 클라이언트 초기화
const client = new MCPClient('http://localhost:3000/mcp');
await client.startSession();
// 2. 미디어 파일 업로드
const mediaFile = await client.uploadMedia(fileData, 'video.mp4', 'video/mp4');
// 3. 트랙 생성 및 미디어 추가
const track = await client.createTrack('Main Video', 'video');
const mediaItem = await client.addToTimeline(track.id, mediaFile.id, 0);
// 4. 편집 작업
await client.trimItem(track.id, mediaItem.id, 30, 180); // 30-180프레임 구간만 사용
// 5. 내보내기
const exportId = await client.exportVideo('mp4', 'high');
고급 편집 기능
// 키프레임 애니메이션
const keyframeManager = new KeyframeManager();
keyframeManager.addKeyframe(itemId, {
frame: 0,
property: 'opacity',
value: 0,
easing: 'ease-in'
});
keyframeManager.addKeyframe(itemId, {
frame: 30,
property: 'opacity',
value: 1,
easing: 'ease-in'
});
// 현재 프레임에서 값 계산
const currentOpacity = keyframeManager.getValue(itemId, 15, 'opacity'); // 0.5
🎨 컴포넌트 구조
MyComposition
메인 비디오 컴포지션으로, 모든 미디어 요소들을 렌더링합니다.
<MyComposition
mediaItems={mediaItems}
timelineControls={timelineControls}
/>
EditorDemo
편집 인터페이스 데모 컴포넌트입니다.
<EditorDemo
width={1280}
height={720}
fps={30}
/>
📁 프로젝트 구조
src/
├── Composition.tsx # 메인 비디오 컴포지션
├── Root.tsx # Remotion 루트 컴포넌트
├── utils/
│ ├── mediaUtils.ts # 미디어 파일 관리 유틸리티
│ └── timelineUtils.ts # 타임라인 편집 유틸리티
├── api/
│ └── mcpInterface.ts # MCP 서버 인터페이스
└── demo/
└── EditorDemo.tsx # 편집 데모 컴포넌트
🙏 Acknowledgments
- Remotion - React 기반 비디오 제작 프레임워크
- Model Context Protocol - AI 에이전트 통신 프로토콜
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。