Magic Hour for LangChain
io.github.magichourhq/magic-hour
Create and edit images, videos, and audio through Magic Hour's hosted Streamable HTTP MCP server.
client:LangChain
transport:streamable-http
tools:45
Install Magic Hour in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"magic-hour": {
"transport": "streamable_http",
"url": "https://mcp.magichour.ai/",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs
What LangChain can do once it is connected
- ping
- wait_for_video_project
- wait_for_image_project
- wait_for_audio_project
- fetch_image_download
- fetch_audio_download
- fetch_video_download
- account_retrieve
- saved_items_list
- video_assets_generate_presigned_url
- face_detection_retrieve_details
- face_detection_detect_faces
- video_projects_retrieve_details
- video_projects_delete
- ai_talking_photo_create_talking_photo
- ai_video_editor_create_video
- animation_create_video
- audio_to_video_create_video
- auto_subtitle_generator_create_video
- character_replace_create_video
- face_swap_create_video
- image_to_video_create_video
- lip_sync_create_video
- text_to_video_create_video