
sonilo-ai/sonilo-mcp 是从 https://github.com/sonilo-ai/sonilo-mcp. 导入的 MCP 服务器候选服务器。
概览
sonilo-ai/sonilo-mcp 是从 https://github.com/sonilo-ai/sonilo-mcp. 导入的 MCP 服务器候选服务器。
概述(AI 翻译)
一个MCP(模型上下文协议)服务器,向兼容MCP的客户端(Claude Code、Claude Desktop、Codex)开放Sonilo授权的音乐和音效API。
旗舰工具是**video_to_music**:交给它,它会创作与剪辑匹配的原创配乐——音乐会跟随节奏、情感和剪辑,因为模特看到了。长度会自动匹配视频。每首曲目均获得授权,且安全用于商业使用(适用条款)。text_to_music也适用于固定长度且无匹配视频的曲目。
在音效设计中,video_to_sfx 观看你的视频并生成匹配的音效,作为独立音频文件返回。[text_to_sfx 从描述生成独立音效。
** ▶ 示例结果** — 一个由 video_to_music 根据剪辑剪辑创作的 AI 生成预告片配乐。关于涵盖任何 AI 视频流水线(缝合→分级→添加音乐→复用器)的配方,请参见 Sonilo 视频转音乐食谱。
用克劳德代码快速入门
用 CLI 登录一次,然后在配置中添加无秘密的服务器:
或者自己持有API密钥——从Sonilo仪表盘获取一个:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Sonilo MCP Server
An MCP (Model Context Protocol) server that exposes Sonilo’s licensed music and sound-effects API to MCP-compatible clients (Claude Code, Claude Desktop, Codex).
The flagship tool is video_to_music: hand it your finished video and it composes an original soundtrack matched to the cut — the music follows the pacing, emotion, and edits because the model saw them. Length matches the video automatically. Every track is licensed and safe for commercial use (terms apply). text_to_music is also available for fixed-length tracks with no video to match.
For sound design, video_to_sfx watches your video and generates matching sound effects, returned as a standalone audio file. text_to_sfx generates a standalone effect from a description.
▶ Example result — an AI-generated trailer with its soundtrack composed by video_to_music from the assembled cut. For recipes covering any AI-video pipeline (stitch → grade → add music → mux), see the Sonilo video-to-music cookbook.
Quickstart with Claude Code
Sign in once with the CLI, then add the server with no secret in the config:
npm install -g sonilo-cli && sonilo login
claude mcp add sonilo -- uvx sonilo-mcp
Or hold an API key yourself — get one from the Sonilo dashboard:
claude mcp add sonilo --env SONILO_API_KEY=sk-... -- uvx sonilo-mcp
Then start a session and ask, e.g. “Make background music that matches this video: ~/Desktop/promo.mp4.”
Why Sonilo
- Video-to-music — give it a video and Sonilo composes a full-length score matched to its pacing, motion, and emotion. Transitions and beat drops align to your cut points, and the track matches the video’s duration exactly — no prompts or manual syncing required.
- Text-to-music — generate tracks from a text description (genre, mood, tempo, instrumentation), at an exact duration (5–360s) or none at all, in which case Sonilo picks a length that suits the prompt.
- Video-to-SFX — Sonilo watches the video and generates sound effects for what it sees. You get the SFX as a standalone audio file. Optional
segmentslet you script effects to specific time ranges ([{start, end, prompt}]). - Text-to-SFX — generate a standalone sound effect from a description (0.5–180s), in
wav,mp3,aac, orflac.
安装
uvx sonilo-mcp配置
{
"mcpServers": {
"sonilo": {
"command": "uvx",
"args": ["sonilo-mcp"],
"env": {}
}
}
}