Skip to main content
Glama

MiniMax MCP JS

Official
by MiniMax-AI

music_generation

Generate custom music tracks using AI models based on user-provided prompts and lyrics. Specify style, mood, lyrics, and audio format to create tailored compositions for various use cases.

Instructions

Create a music generation task using AI models. Generate music from prompt and lyrics.

Note: This tool calls MiniMax API and may incur costs. Use only when explicitly requested by the user.

Input Schema

NameRequiredDescriptionDefault
bitrateNoBitrate of generated music. Values: [32000, 64000, 128000, 256000]
formatNoFormat of generated music. Values: ["mp3", "wav", "pcm"]mp3
lyricsYesSong lyrics for music generation. Use newline (\n) to separate each line of lyrics. Supports lyric structure tags [Intro][Verse][Chorus][Bridge][Outro] to enhance musicality. Character range: [10, 600] (each Chinese character, punctuation, and letter counts as 1 character)
outputDirectoryNoThe directory to save the output file. `outputDirectory` is relative to `MINIMAX_MCP_BASE_PATH` (or `basePath` in config). The final save path is `${basePath}/${outputDirectory}`. For example, if `MINIMAX_MCP_BASE_PATH=~/Desktop` and `outputDirectory=workspace`, the output will be saved to `~/Desktop/workspace/`
promptYesMusic creation inspiration describing style, mood, scene, etc. Example: "Pop music, sad, suitable for rainy nights". Character range: [10, 300]
sampleRateNoSample rate of generated music. Values: [16000, 24000, 32000, 44100]

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "bitrate": { "default": 128000, "description": "Bitrate of generated music. Values: [32000, 64000, 128000, 256000]", "type": "number" }, "format": { "default": "mp3", "description": "Format of generated music. Values: [\"mp3\", \"wav\", \"pcm\"]", "type": "string" }, "lyrics": { "description": "Song lyrics for music generation.\nUse newline (\\n) to separate each line of lyrics. Supports lyric structure tags [Intro][Verse][Chorus][Bridge][Outro]\nto enhance musicality. Character range: [10, 600] (each Chinese character, punctuation, and letter counts as 1 character)", "type": "string" }, "outputDirectory": { "description": "The directory to save the output file. `outputDirectory` is relative to `MINIMAX_MCP_BASE_PATH` (or `basePath` in config). The final save path is `${basePath}/${outputDirectory}`. For example, if `MINIMAX_MCP_BASE_PATH=~/Desktop` and `outputDirectory=workspace`, the output will be saved to `~/Desktop/workspace/`", "type": "string" }, "prompt": { "description": "Music creation inspiration describing style, mood, scene, etc.\nExample: \"Pop music, sad, suitable for rainy nights\". Character range: [10, 300]", "type": "string" }, "sampleRate": { "default": 32000, "description": "Sample rate of generated music. Values: [16000, 24000, 32000, 44100]", "type": "number" } }, "required": [ "prompt", "lyrics" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MiniMax-AI/MiniMax-MCP-JS'

If you have feedback or need assistance with the MCP directory API, please join our Discord server