Magic Hour MCP Server
OfficialClick on "Install 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 ServerCreate an animated video from my uploaded image of a dog running."
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
OpenAPI-backed MCP server for Magic Hour image, video, and audio generation.
At startup, this server reads docs/openapi.json and builds MCP tools with
FastMCP.from_openapi(). The OpenAPI spec supplies endpoint coverage, while
Magic Hour MCP policies add agent-facing guidance for async polling, uploads,
and project downloads.
Docs:
user.md- hosted endpoint user guideintegration-handoff.md- FastAPI mount checklistdocs/detailed-step-by-step-integration.md- full backend integration guidedocs/api-reference.md- generated API reference
Setup
pip install -e .Related MCP server: grok-imagine-mcp
Run locally
python main.pyLocal MCP endpoint:
http://127.0.0.1:8000/This local dev server runs at /, not /mcp. The host app adds /mcp when it mounts the server.
By default, requests go to the production Magic Hour API:
https://api.magichour.aiTool discovery is public. Tool calls must include your Magic Hour API key:
Authorization: Bearer <magic_hour_api_key>Agents can discover the hosted server card at:
https://mcp.magichour.ai/.well-known/mcp/server-card.jsonEnvironment variables:
MAGIC_HOUR_API_BASE_URL=https://api.magichour.ai
MAGIC_HOUR_OPENAPI_PATH=docs/openapi.json
MCP_OAUTH_ISSUER_URL=https://mcp.magichour.ai
MCP_OAUTH_RESOURCE_URL=https://mcp.magichour.aiOverride MAGIC_HOUR_API_BASE_URL to use a mock or another API base:
MAGIC_HOUR_API_BASE_URL=https://api.sideko.dev/v1/mock/magichour/magic-hour/latest python main.pyOAuth compatibility
The optional OAuth shim validates a Magic Hour API key and uses that key as the
access token. Production requires MCP_OAUTH_ISSUER_URL and
MCP_OAUTH_RESOURCE_URL. See docs/future-oauth-support.md for deployment
limits.
Public OAuth clients can use the stateless POST /register compatibility endpoint.
Test with MCP Inspector
Start the server.
Run:
npx @modelcontextprotocol/inspectorIn Inspector:
Transport:
Streamable HTTPURL:
http://127.0.0.1:8000/Header:
Authorization: Bearer <magic_hour_api_key>
Call
ping.Call
video_assets_generate_presigned_urlor another generated tool.
Notes:
FastMCP generates endpoint tools from OpenAPI at startup.
Creation tools return
idandcredits_chargedimmediately.OpenAPI
operationIdvalues are normalized to descriptive snake_case tool names.The shared
/v1/files/upload-urlsendpoint is namedvideo_assets_generate_presigned_url. It acceptsvideo,audio, andimageitems.Use
wait_for_*_projectto poll jobs. Useexact_download_urlsexactly as returned; never append expiration metadata.Image and audio wait tools also return inline media when supported.
Rebuild and type-check the MCP App UI with cd web && npm ci && npm run build.
File uploads
Magic Hour does not accept raw file bytes inside tool arguments. The flow is:
Call the generated shared upload-URL tool,
video_assets_generate_presigned_urlUpload the file bytes to the returned
upload_urlPass the returned
file_pathinto the generated creation tool
Direct public media URLs may work, but uploaded file_path values are more
reliable. upload_file_to_presigned_url handles local files when the server can
read them. Browser chat needs a separate upload UI or bridge; see
docs/future-chat-ui-handoff.md.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI-powered media manipulation including face swapping for videos and photos, lip syncing, and face detection via the Magic Hour AI platform. It provides tools for uploading files, managing video projects, and processing content from both local files and YouTube URLs.12
- AlicenseBqualityAmaintenanceEnables AI image and video generation tasks (text-to-image, image-to-video, edit, upscale, etc.) via RunAPI, with support for polling and pricing lookups.10142Apache 2.0
- AlicenseAqualityCmaintenanceEnables video generation from text prompts or images using Agnes AI's video models, with async task submission and status polling.215MIT
- AlicenseAqualityAmaintenanceEnables text-to-image and text-to-video generation via the Agnes AI API, with support for multiple models, async video generation, and automatic file downloads.61MIT
Related MCP Connectors
Create and manage cinematic AI video renders through the Future Video Studio Agent API.
Generate images, video, music and voice from your CLI or AI agent. On-brand AI media toolkit.
Transform video, audio and images, and generate media from prompts. FFmpeg, captions, models.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/magichourhq/magic-hour-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server