mcp
v1.3.0AiSounds MCP server
@aisounds.cn/mcp AiSounds MCP server for Cursor, Codex, Claude Code, and other MCP clients. Cursor / generic MCP Codex Claude Code: Tools include capabilities, TTS, SFX, music, AI songs, video soundtrack, novel voice packs, video BGM, video voice, audio cleanup, jobs, assets, and 8 project sound-pack tools: list/create/draft/message/confirm/status/retry/download. Sound-pack attachment analysis is free; confirming generation spends points per item.
Summary extracted from the README.
@aisounds.cn/mcp
AiSounds MCP server for Cursor, Codex, Claude Code, and other MCP clients.
Cursor / generic MCP
{
"mcpServers": {
"aisounds": {
"command": "npx",
"args": ["-y", "@aisounds.cn/mcp"],
"env": {}
}
}
}
Codex
[mcp_servers.aisounds]
command = "npx"
args = ["-y", "@aisounds.cn/mcp"]
Claude Code:
claude mcp add --transport stdio aisounds -- npx -y "@aisounds.cn/mcp"
Tools include capabilities, TTS, SFX, music, AI songs, video soundtrack, novel voice packs, video BGM, video voice, audio cleanup, jobs, assets, and 8 project sound-pack tools: list/create/draft/message/confirm/status/retry/download. Sound-pack attachment analysis is free; confirming generation spends points per item. AI song tools cover lyric generation/optimization, reference media upload and preparation, quote, confirmed create, list/status, packaging, and safe download. Video soundtrack tools cover capabilities, local MP4/MOV upload, quote draft, confirmed create, list/status/resume, and safe download of video/audio/music/SFX/ZIP outputs. Install ffmpeg/ffprobe when media duration detection is needed; otherwise pass duration fields in the tool call.
AI 歌曲和视频配乐工具需要 1.2.0 对应服务端。请先完成歌词、参考媒体上传/准备和 quote,再调用付费工具,并且必须传 confirm: true。quote 或参考准备可能返回服务成本、quoteToken、reservedPoints、musicPoints 和 sfxReservedPoints,提交前应向用户展示并确认。idempotencyKey 必须跨重试保持不变;超时或服务异常后只调用 status,MCP 不会自动重发付费任务。保留原 BGM 必须同时传 rightsConfirmed: true。下载只选择服务端实际返回的输出,并且不会覆盖已有本地文件。可先调用 capabilities,确认服务端列出所需工具。
调用示例与扣费边界
AI 歌曲先准备歌词和参考片段,再报价和提交:
{"tool":"ai_song_generate_lyrics","arguments":{"theme":"夏夜海边的重逢"}}
{"tool":"ai_song_prepare_reference","arguments":{"referenceMode":"style_reference","sourceKey":"<sourceKey>","sourceFileName":"reference.mp3","sourceContentType":"audio/mpeg","sourceSizeBytes":123456,"startSeconds":0,"endSeconds":20,"confirm":true}}
{"tool":"ai_song_quote","arguments":{"referenceMode":"style_reference","durationSeconds":60,"referenceAudio":{"referenceId":"<referenceId>","conditionStrength":"high"}}}
{"tool":"ai_song_create","arguments":{"lyrics":"<lyrics>","durationSeconds":60,"vocal":"neutral","performance":"singing","speed":"medium","styles":["pop"],"moods":["uplifting"],"advanced":{"negativeElements":[],"contextAdherence":"medium","referenceAudio":{"referenceId":"<referenceId>","conditionStrength":"high"}},"quoteToken":"<quoteToken>","idempotencyKey":"<stable-key>","confirm":true}}
也可以使用自由风格描述创建歌曲,此时 styles、moods 和 speed 可以省略:
{"tool":"ai_song_create","arguments":{"lyrics":"<lyrics>","durationSeconds":60,"styleDescription":"深夜城市感,克制的女声,副歌逐步抬升","advanced":{"negativeElements":["过度失真"],"contextAdherence":"high","seed":12345},"quoteToken":"<quoteToken>","idempotencyKey":"<stable-key>","confirm":true}}
从 1.3.0 起,ai_song_quote 和 ai_song_create 的 durationSeconds 支持 15–600 秒,600 合法,601 会被 schema 拒绝。styleDescription 最多 5000 个字符;非空描述接管曲风、情绪、人声、演唱方式、速度、BPM 和调性。MCP 不会为描述模式注入这些结构化默认值,但仍保留 negativeElements、contextAdherence、seed 和 referenceAudio。空白描述按未填写处理并恢复旧参数校验;同时提供合法旧参数时服务端不会把它们注入 Provider,非法值仍会被拒绝。默认风格不再注入 clear melodic hook 与 polished studio production。preserve_original_bgm 下描述不能改变源伴奏或源音频时长。
视频配乐先上传和报价,提交时确认扣点:
{"tool":"video_soundtrack_upload","arguments":{"filePath":"./video.mp4"}}
{"tool":"video_soundtrack_quote","arguments":{"sourceKey":"<sourceKey>","sourceFileName":"video.mp4","contentType":"video/mp4","addSfx":true,"originalAudioMode":"keep_original"}}
{"tool":"video_soundtrack_create","arguments":{"quoteId":"<quoteId>","idempotencyKey":"<stable-key>","billingMode":"included_only","confirm":true}}
智能换配乐的 draft_soundtrack_swap 和 preflight_soundtrack_swap 只做上传/预检;视频 get_soundtrack_swap_advice 与 quote_soundtrack_swap 可能触发按需分析,必须传 confirm: true;提交还必须传 rightsConfirmed: true:
{"tool":"draft_soundtrack_swap","arguments":{"filePath":"./source.mp3"}}
{"tool":"get_soundtrack_swap_advice","arguments":{"preflightId":"<preflightId>","confirm":true}}
{"tool":"quote_soundtrack_swap","arguments":{"preflightId":"<preflightId>","provider":"quality","enableVocalCleanup":true,"mixStrength":"standard","confirm":true}}
{"tool":"submit_soundtrack_swap_job","arguments":{"preflightId":"<preflightId>","quoteToken":"<quoteToken>","title":"片头配乐","prompt":"轻快但不喧闹","provider":"quality","enableVocalCleanup":true,"mixStrength":"standard","confirm":true,"rightsConfirmed":true}}
视频音效的 optimize_video_sfx_prompt、状态查询和下载不创建任务;submit_video_sfx_job 上传成功后才提交并扣点,必须传 confirm: true:
{"tool":"submit_video_sfx_job","arguments":{"filePath":"./video.mp4","title":"雨夜","sourceDurationSeconds":8,"prompt":"雨夜脚步声","soundType":"ambient","confirm":true}}
If you run npx "@aisounds.cn/cli" auth login --api-key <key> first, the MCP server can also read the saved key from ~/.aisounds/config.json.