Magic Hour MCP Server
Provides the capability to perform face swaps directly on videos sourced from YouTube using the Magic Hour AI platform.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Magic Hour MCP Server Face swap my photo onto this YouTube video"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Magic Hour MCP Server
MCP server for Magic Hour AI — face swap videos, face swap photos, lip sync, face detection, and file management.
Tools
Tool | Description |
| Swap a face onto a video (file/URL source) |
| Swap a face onto a YouTube video |
| Swap specific faces using face detection IDs |
| Swap a face onto a photo |
| Detect faces in an image or video |
| Get detected face IDs and URLs |
| Sync lip movements to an audio track |
| Upload a file to Magic Hour storage |
| Check video project status and get download URLs |
| Check image project status and get download URLs |
| Delete a video project |
| Delete an image project |
Related MCP server: OrcaDub MCP Server
Setup
Get an API key from magichour.ai/settings/developer
Install dependencies:
npm installBuild:
npm run buildClaude Desktop Configuration
Add to ~/.claude/claude_desktop_config.json:
{
"mcpServers": {
"magic-hour": {
"command": "node",
"args": ["/path/to/magic-hour-mcp/dist/index.js"],
"env": {
"MAGIC_HOUR_API_KEY": "mhk_live_your_key_here"
}
}
}
}Claude Code Configuration
Add to ~/.claude/settings.json:
{
"mcpServers": {
"magic-hour": {
"command": "node",
"args": ["/path/to/magic-hour-mcp/dist/index.js"],
"env": {
"MAGIC_HOUR_API_KEY": "mhk_live_your_key_here"
}
}
}
}Usage Example
Face swap a dance video:
1. Upload your face image: upload_file → get file_path
2. Start face swap: face_swap_video with video URL + face file_path
3. Poll status: get_video_project_status until "complete"
4. Download from the returned URL
Individual face swap:
1. Detect faces: detect_faces on the source video
2. Get results: get_face_detection_result to see all faces
3. Swap specific faces: face_swap_video_individual with face mappingsLicense
MIT
Available Tools
12 toolsdelete_image_projectC
Delete an image project.
Inputs: id (required).
delete_video_projectC
Delete a video project.
Inputs: id (required).
detect_facesC
Detect faces in an image or video. Returns face IDs that can be used for individual face swapping.
Inputs: file_url (required), confidence_score.
face_swap_photoC
Swap a face onto a photo. Provide a target photo and a source face image.
Inputs: target_image_url (required), source_face_url (required), name.
face_swap_videoB
Swap a face onto a video. Provide a source video (file path or URL) and a face image. Returns the project ID to check status.
Inputs: video_url (required), face_image_url (required), end_seconds (required), start_seconds, +1 more.
face_swap_video_individualA
Swap specific faces in a video. Use detect_faces first to get face IDs, then map each original face to a new face image.
Inputs: video_url (required), face_mappings (required), end_seconds (required), start_seconds, +1 more.
face_swap_video_youtubeB
Swap a face onto a YouTube video. Provide a YouTube URL and a face image.
Inputs: youtube_url (required), face_image_url (required), end_seconds (required), start_seconds, +1 more.
get_face_detection_resultB
Get the result of a face detection job. Returns detected face IDs and URLs.
Inputs: id (required).
get_image_project_statusA
Check the status of an image project (face swap photo, etc). Returns status, download URLs when complete.
Inputs: id (required).
get_video_project_statusB
Check the status of a video project (face swap, lip sync, etc). Returns status, download URLs when complete.
Inputs: id (required).
lip_syncC
Sync lip movements in a video to an audio track. Provide a video and audio file.
Inputs: video_url (required), audio_url (required), end_seconds (required), start_seconds, +2 more.
upload_fileA
Upload a local file to Magic Hour for use in other tools. Returns the file path to use in subsequent API calls.
Inputs: file_path (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Most tools have distinct purposes, such as delete_image_project vs. delete_video_project, and face_swap_photo vs. face_swap_video. However, face_swap_video, face_swap_video_individual, and face_swap_video_youtube could cause confusion due to overlapping video face-swapping functionality, though descriptions help differentiate them.
Tool names follow a consistent snake_case pattern with clear verb_noun structures, such as delete_image_project, detect_faces, and get_face_detection_result. There are no deviations in naming conventions across all 12 tools.
With 12 tools, the server is well-scoped for its face-swapping and media processing domain. Each tool serves a specific role, from project management to face detection and lip syncing, without feeling excessive or insufficient.
The toolset covers core operations like creation (via face swap tools), retrieval (get status tools), deletion, and processing (detect, lip sync). A minor gap exists in update operations for projects, but agents can work around this by re-creating or managing projects through deletion and re-upload.
Related MCP Connectors
Create talking-head videos, AI avatars, product photos, headshots, ad creatives, and face swaps.
AI image, video and audio tools: generate, edit, face swap, upscale, remove backgrounds, make video.
Generate lip-synced talking and singing videos from images or videos and audio.
AI video, image, speech, voice cloning and avatar generation, plus PDF/audio/video editing tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to edit videos through natural language, providing tools for timeline editing, audio management, rendering, and more.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI video dubbing from any MCP-capable agent: upload a video or provide a URL, submit a dubbing job, poll progress, and download the finished MP4.7MIT

lipdub-mcpofficial
AlicenseAqualityBmaintenanceEnables AI agents to lip-sync video to a different audio track via LipDub 2, including creating renders, checking statuses, and retrieving results.511 npmMIT- FlicenseNot gradedqualityDmaintenanceEnables AI clients like Claude and ChatGPT to generate images and videos, animate images, create lip-synced videos, list TTS voices, and manage media via remote MCP tools.-