Generates music with MusicMCP.AI from Claude Desktop and other MCP clients.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add musicmcp-ai --env MUSICMCP_API_KEY='<MUSICMCP_API_KEY>' --env MUSICMCP_API_URL='<MUSICMCP_API_URL>' --env TIME_OUT_SECONDS='<TIME_OUT_SECONDS>' -- uvx aimusic-mcp~/.codex/config.toml
[mcp_servers.musicmcp-ai]
command = "uvx"
args = ["aimusic-mcp"]
env = { MUSICMCP_API_KEY = "<MUSICMCP_API_KEY>", MUSICMCP_API_URL = "<MUSICMCP_API_URL>", TIME_OUT_SECONDS = "<TIME_OUT_SECONDS>" }
# codex mcp add musicmcp-ai --env MUSICMCP_API_KEY='<MUSICMCP_API_KEY>' --env MUSICMCP_API_URL='<MUSICMCP_API_URL>' --env TIME_OUT_SECONDS='<TIME_OUT_SECONDS>' -- uvx aimusic-mcp~/.cursor/mcp.json
{
"mcpServers": {
"musicmcp-ai": {
"command": "uvx",
"args": [
"aimusic-mcp"
],
"env": {
"MUSICMCP_API_KEY": "<MUSICMCP_API_KEY>",
"MUSICMCP_API_URL": "<MUSICMCP_API_URL>",
"TIME_OUT_SECONDS": "<TIME_OUT_SECONDS>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"musicmcp-ai": {
"type": "stdio",
"command": "uvx",
"args": [
"aimusic-mcp"
],
"env": {
"MUSICMCP_API_KEY": "<MUSICMCP_API_KEY>",
"MUSICMCP_API_URL": "<MUSICMCP_API_URL>",
"TIME_OUT_SECONDS": "<TIME_OUT_SECONDS>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"musicmcp-ai": {
"command": "uvx",
"args": [
"aimusic-mcp"
],
"env": {
"MUSICMCP_API_KEY": "<MUSICMCP_API_KEY>",
"MUSICMCP_API_URL": "<MUSICMCP_API_URL>",
"TIME_OUT_SECONDS": "<TIME_OUT_SECONDS>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"musicmcp-ai": {
"command": "uvx",
"args": [
"aimusic-mcp"
],
"env": {
"MUSICMCP_API_KEY": "<MUSICMCP_API_KEY>",
"MUSICMCP_API_URL": "<MUSICMCP_API_URL>",
"TIME_OUT_SECONDS": "<TIME_OUT_SECONDS>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"musicmcp-ai": {
"command": "uvx",
"args": [
"aimusic-mcp"
],
"env": {
"MUSICMCP_API_KEY": "<MUSICMCP_API_KEY>",
"MUSICMCP_API_URL": "<MUSICMCP_API_URL>",
"TIME_OUT_SECONDS": "<TIME_OUT_SECONDS>"
}
}
}
}Environment variables
MUSICMCP_API_KEYMUSICMCP_API_URLTIME_OUT_SECONDS
Replace the placeholders with your own credentials and keep them out of version control.