Mureka-mcp音乐生成器
一种模型上下文协议服务器, enables 类似于克劳德的AI助手通过Mureka的API生成歌词、歌曲和背景音乐。 (注:原文中的“enables”在翻译中应保持语法一致性,但需明确主语以优化表达。以下为更流畅的翻译版本:) 一种模型上下文协议服务器,使类似于克劳德的AI助手能够通过Mureka的API生成歌词、歌曲和背景音乐。
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"Mureka": {
"args": [
"mureka-mcp"
],
"command": "uvx",
"env": {
"MUREKA_API_KEY": "\u003cinsert-your-api-key-here\u003e",
"MUREKA_API_URL": "https://api.mureka.ai",
"TIME_OUT_SECONDS": "300"
}
}
}
}
该服务需要配置环境变量:MUREKA_API_KEY、MUREKA_API_URL、TIME_OUT_SECONDS
可用工具 (4 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
generate_lyrics
Generate lyrics with a given prompt then return the title and lyrics text to the client directly. ⚠️ COST WARNING: This tool makes an API call to mureka.ai which may incur costs. Only use when explicitly requested by the user. Args: prompt (str): The prompt to generate lyrics for song Returns: The title and lyrics of song.
该工具无需必填参数,直接调用即可
generate_song
Generate song based on the lyrics text and save the output audio file to a given directory. Directory is optional, if not provided, the output file will be saved to $HOME/Desktop. ⚠️ COST WARNING: This tool makes an API call to mureka.ai which may incur costs. Only use when explicitly requested by the user. Args: lyrics (str): The lyrics to generate song prompt (str, optional): Control song generation by inputting a prompt.For example:ru0026b, slow, passionate, male vocal. output_directory (str, optional): Directory where files should be saved. Defaults to $HOME/Desktop if not provided. Returns: The output file and name of song generated.
该工具无需必填参数,直接调用即可
generate_instrumental
Generate background music(instrumental) based on the prompt text and save the output audio file to a given directory. Directory is optional, if not provided, the output file will be saved to $HOME/Desktop. ⚠️ COST WARNING: This tool makes an API call to mureka.ai which may incur costs. Only use when explicitly requested by the user. Args: prompt (str, optional): Control music generation by inputting a prompt.For example:ru0026b, slow, passionate, male vocal. output_directory (str, optional): Directory where files should be saved. Defaults to $HOME/Desktop if not provided. Returns: The output file and name of background music(instrumental) generated.
该工具无需必填参数,直接调用即可
play_audio
Play an audio file. Supports WAV and MP3 formats.
该工具无需必填参数,直接调用即可
服务介绍

使用 Claude Desktop 快速入门
- 从 Mureka 获取您的 API 密钥。
- 安装
uv(Python 包管理器),使用curl -LsSf https://astral.sh/uv/install.sh | sh命令安装,或参阅uv的 仓库 以获取更多安装方法。 - 转到 Claude > 设置 > 开发者 > 编辑配置 > claude_desktop_config.json,并添加以下内容:
{
"mcpServers": {
"Mureka": {
"command": "uvx",
"args": [
"mureka-mcp"
],
"env": {
"MUREKA_API_KEY": "<在此插入您的 API 密钥>",
"MUREKA_API_URL": "https://api.mureka.ai",
"TIME_OUT_SECONDS":"300"
}
}
}
}
然后重新启动 Claude 应用程序,如果窗口中显示 4 个 MCP 工具,则表示加载成功。
可选功能
您可以在 claude_desktop_config.json 中添加 TIME_OUT_SECONDS 环境变量,以设置歌曲或背景音乐生成的等待超时时间(默认 60 秒)。
示例用法
⚠️ 注意:使用这些工具需要 Mureka 积分。
尝试向 Claude 提出以下请求:
- "请为我女儿 Jessica 创作一首生日快乐歌并播放它"
- "请生成关于圣诞节的歌词"
- "请根据刚才的歌词生成一首歌曲"
- "请生成适合在咖啡馆播放的背景音乐"
故障排除
使用 Claude Desktop 运行时的日志文件位置如下:
- Windows:
%APPDATA%Claudelogsmcp-server-Mureka.log - macOS:
~/Library/Logs/Claude/mcp-server-Mureka.log
使用 OpenAI 代理 SDK 快速入门
即将推出