MusicMCP.AI MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MusicMCP.AI MCP Servergenerate a song about a peaceful morning"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ต MusicMCP.AI MCP Server
AI-Powered Music Generation with Model Context Protocol
Official MusicMCP.AI Model Context Protocol (MCP) server that enables seamless interaction with our advanced AI music generation platform. This server allows MCP clients like Claude Desktop, OpenAI Agents and others to generate AI music through natural language commands.
โจ Features
๐ผ AI Music Generation: Generate songs based on text prompts using MusicMCP.AI's state-of-the-art AI models
๐ต Dual Generation Modes: Support for both inspiration mode and custom mode
๐ Direct Download Links: Get direct download URLs for generated music
๐น Instrumental Options: Generate instrumental-only music or full songs with vocals
โ Credit Balance Check: Check your API key validity and remaining credits
๐ฅ Health Monitoring: Check API service health status
Related MCP server: Suno MCP
๐ Quickstart with Claude Desktop
Get Your API Key: Obtain your API key from MusicMCP.AI Platform
Install uv: Install the Python package manager with
curl -LsSf https://astral.sh/uv/install.sh | shConfigure Claude: Go to Claude > Settings > Developer > Edit Config > claude_desktop_config.json and add:
{
"mcpServers": {
"MusicMCP.AI": {
"command": "uvx",
"args": [
"aimusic-mcp"
],
"env": {
"MUSICMCP_API_KEY": "<insert-your-api-key-here>",
"MUSICMCP_API_URL": "https://www.musicmcp.ai/api",
"TIME_OUT_SECONDS": "600"
}
}
}
}Restart Claude: Restart the Claude app and you'll see 4 MCP tools available, indicating successful loading
โ๏ธ Environment Variables
Variable | Description | Default | Required |
| Your MusicMCP.AI API key | - | โ Yes |
| MusicMCP.AI API base URL |
| โ No |
| Timeout for music generation in seconds |
| โ No |
๐ ๏ธ Available Tools
1. ๐ผ Generate Prompt Song (Inspiration Mode)
Generate AI music based on simple text descriptions. AI automatically creates title, lyrics, and style.
Cost: 5 credits per generation (creates 2 songs)
Parameters:
prompt(str): Simple description of the music theme (1-1200 characters)instrumental(bool): Whether to generate instrumental music onlystyle(str, optional): Music style (e.g., "ambient", "pop", "rock")
Example Prompts:
"Help me generate a song about a peaceful morning"
"Want a song that expresses longing"
"Create music about friendship"Output Example:
โ
Song 1 generated successfully!
๐ Title: Peaceful Morning
๐ ID: c7630638-b8ba-4984-876b-6dd7e6eeb796
๐ Download URL: https://cdn.musicmcp.ai/songs/abc123.mp3
๐ผ๏ธ Cover Image: https://cdn.musicmcp.ai/images/abc123.jpg
โฑ๏ธ Duration: 180s
๐ต Style Tags: ambient, meditation, peaceful
๐น Instrumental: No
๐
Created: 2025-01-15T10:30:45.123Z
๐ Lyrics:
[Verse]
Gentle sunlight fills the room
Morning dew and sweet perfume
Birds are singing their refrain
Another peaceful day again
You can download or play the audio from the URL above.
โ
Song 2 generated successfully!
๐ Title: Morning Peace
๐ ID: d8741749-c9cb-5095-987c-7ee8f7ffb907
๐ Download URL: https://cdn.musicmcp.ai/songs/def456.mp3
๐ผ๏ธ Cover Image: https://cdn.musicmcp.ai/images/def456.jpg
โฑ๏ธ Duration: 213s
๐ต Style Tags: ambient, meditation, peaceful
๐น Instrumental: No
๐
Created: 2025-01-15T10:30:45.126Z
๐ Lyrics:
[Verse]
Calm and quiet, soft and still
Peaceful thoughts upon the hill
Nature's beauty all around
Gentle whispers, soothing sound
You can download or play the audio from the URL above.2. ๐ต Generate Custom Song (Custom Mode)
Generate AI music with specific lyrics, title, and style parameters that you provide.
Cost: 5 credits per generation (creates 2 songs)
Parameters:
title(str): Song title (required)instrumental(bool): Whether to generate instrumental music only (required)lyric(str, optional): Complete lyrics content (not required when instrumental is true)tags(str, optional): Music style tags (e.g., 'pop', 'rock', 'folk')
Example Usage:
Please help me generate a song:
Title: Summer Dreams
Lyrics: [complete lyrics content]
Style: folk
Or for instrumental:
Title: Summer Breeze
Instrumental: yes
Style: ambientOutput Example:
โ
Custom song 'Summer Dreams' (version 1) generated successfully!
๐ Title: Summer Dreams
๐ ID: d1ed75a7-3e0b-42c6-b2be-7631204074fe
๐ Download URL: https://cdn.musicmcp.ai/songs/xyz789.mp3
๐ผ๏ธ Cover Image: https://cdn.musicmcp.ai/images/xyz789.jpg
โฑ๏ธ Duration: 195s
๐ต Style Tags: folk, acoustic, summer
๐น Instrumental: No
๐
Created: 2025-01-15T11:45:30.456Z
๐ Lyrics:
[Verse]
Walking through the summer fields
Golden wheat and nature's yields
Sunshine dancing on my face
Summer's warm and sweet embrace
You can download or play the audio from the URL above.
โ
Custom song 'Summer Dreams' (version 2) generated successfully!
๐ Title: Summer Dreams
๐ ID: e2fe86b8-4f1c-53d7-c3cf-8742305185gf
๐ Download URL: https://cdn.musicmcp.ai/songs/uvw012.mp3
๐ผ๏ธ Cover Image: https://cdn.musicmcp.ai/images/uvw012.jpg
โฑ๏ธ Duration: 203s
๐ต Style Tags: folk, acoustic, summer
๐น Instrumental: No
๐
Created: 2025-01-15T11:45:30.459Z
๐ Lyrics:
[Verse]
Walking through the summer fields
Golden wheat and nature's yields
Sunshine dancing on my face
Summer's warm and sweet embrace
You can download or play the audio from the URL above.3. โ Check Credit Balance
Check if your API key is valid and see your remaining credits.
Cost: Free
Example Usage:
"Check my credit balance"
"How many credits do I have left?"4. ๐ฅ Check API Health
Monitor the health status of the MusicMCP.AI API service.
Cost: Free
Example Usage:
"Check API service status"๐ฐ Credits & Pricing
Operation | Credits Cost | Output |
Generate Inspiration Music | 5 credits | 2 songs |
Generate Custom Music | 5 credits | 2 songs |
Query Music Status | 0 credits (Free) | - |
Check Credit Balance | 0 credits (Free) | - |
API Health Check | 0 credits (Free) | - |
๐ก Example Usage
โ ๏ธ Note: MusicMCP.AI credits are required to use the music generation tools.
Try asking Claude:
Inspiration Mode:
"Please help me generate a song about a peaceful morning"
"Want a song that expresses longing"
"Create music about friendship"
"Generate an ambient music track"
Custom Mode:
"Please help me generate a song, Title: Summer Dreams, Lyrics: [complete lyrics], Style: folk"
"Create a song, Title: Spring Promise, Lyrics: [complete lyrics], Pop style"
"Generate an instrumental song, Title: Ocean Breeze, Style: ambient"
Management Functions:
"Check my credit balance"
"How many credits do I have left?"
"Check API service status"
๐ฆ Installation
Using uv (Recommended)
uvx aimusic-mcpUsing pip
pip install aimusic-mcp๐ API Integration
This MCP server integrates with MusicMCP.AI's RESTful API:
POST /music/generate/inspiration: Create music generation task (inspiration mode)POST /music/generate/custom: Create custom music generation taskPOST /music/generate/query: Query music status (batch query supported)GET /credit: Check credit balanceGET /health: Check API service health
๐ Async API Workflow
Music generation is asynchronous. The MCP server handles this automatically:
Step 1: Submit Generation Request
POST /music/generate/inspiration or /music/generate/custom
โ Returns: {"code": 200, "data": {"ids": ["id1", "id2"]}}Step 2: Automatic Polling (handled internally by MCP)
POST /music/generate/query with {"ids": ["id1", "id2"]}
โ Polls every 2 seconds until status = 1 (completed)
โ Song status: 0 = Failed, 1 = Completed, 2 = In ProgressStep 3: Return Complete Song Information
Once all songs are completed, returns full details:
- songName, songUrl, imgUrl, duration, tags, etc.Behind the Scenes:
User calls
generate_prompt_song()orgenerate_custom_song()MCP sends generation request โ receives 2 song IDs
MCP automatically polls
/music/generate/queryevery 2 secondsWhen all songs complete (status=1), returns download URLs
Default timeout: 10 minutes (configurable via
TIME_OUT_SECONDS)
Important Notes:
โฑ๏ธ Generation typically takes 2-5 minutes per song
๐ The MCP server handles all polling automatically
๐ต Each generation always creates 2 song variations
๐ฐ Credits (5) are deducted when generation request succeeds
โ ๏ธ If generation fails, credits are NOT consumed
๐ Troubleshooting
Common Issues
API Key Error: Ensure
MUSICMCP_API_KEYis set correctlyUse the
check_credit_balancetool to check your key
Insufficient Credits (402 Error): You don't have enough credits
Check your balance at https://www.musicmcp.ai
Recharge your account
Timeout Errors: Increase
TIME_OUT_SECONDSif music generation takes longer
Logs
When running with Claude Desktop, logs can be found at:
Windows:
%APPDATA%\Claude\logs\mcp-server-MusicMCP.AI.logmacOS:
~/Library/Logs/Claude/mcp-server-MusicMCP.AI.log
๐งช Development
Running Tests
pytest tests/Local Development
python -m musicmcp_ai_mcp.apiCode Structure
musicmcp_ai_mcp/
โโโ __init__.py # Package initialization
โโโ __main__.py # CLI entry point
โโโ api.py # Core MCP server implementation (430 lines)๐ Links
Platform: https://www.musicmcp.ai
Documentation: https://www.musicmcp.ai/docs
Support: support@musicmcp.ai
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
Made with โค๏ธ by the MusicMCP.AI Team
Transform your ideas into music with AI
Available Tools
4 toolscheck_api_healthA
Check the health status of the MusicMCP.AI API service.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
| type | Yes | |
| text | Yes | |
| annotations | No | |
| _meta | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must fully disclose behavior. The description only states a health check, omitting any indication of side effects, rate limits, or idempotence, which is insufficient for a tool with no annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Single sentence front-loading the purpose, zero wasted words, perfectly concise for a no-parameter health check.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple no-parameter health check, the description is complete. An output schema exists to handle return value details, so no further explanation is needed.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
No parameters exist, and schema coverage is 100%. The description adds no parameter info, but baseline score for 0 parameters is 4.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Description clearly states the verb 'check' and resource 'health status of the MusicMCP.AI API service', distinguishing it from sibling tools like check_credit_balance and song generation tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No explicit guidance on when to use this tool versus alternatives. Usage is implied as checking API health, but no exclusions or alternative suggestions are provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
check_credit_balanceB
Check your credit balance.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
| type | Yes | |
| text | Yes | |
| annotations | No | |
| _meta | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description only implies a read-only operation but provides no additional behavioral details such as side effects, rate limits, or authentication requirements. With no annotations available, the description carries the full burden and is insufficient.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single short sentence with no unnecessary words. It is front-loaded and efficiently conveys the core action.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description is adequate for a zero-parameter tool, but it does not clarify what 'credit balance' refers to. Although an output schema exists, the description could provide more context about the credit system. It is minimally complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
There are no parameters, so the baseline is 4. The description adds no extra meaning beyond the schema, but that is acceptable given the schema coverage is 100%.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's action (check) and resource (credit balance), and it is distinct from sibling tools like check_api_health or generate_custom_song. However, it lacks specificity about which credit system is being checked.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives. While sibling tools are different in functionality, the description does not mention any context or prerequisites.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
generate_custom_songA
๐ต Custom Mode: Generate songs based on detailed song information (user specifies song name, lyrics, style, etc.)
Use case: Use when users provide detailed song information including song name, complete lyrics, and style.
Example inputs:
- "Song name: Summer of Cicada Shedding, Lyrics: [complete lyrics], style: folk"
โ ๏ธ COST WARNING: This tool makes an API call to MusicMCP.AI which may incur costs (5 credits per generation). Each generation creates 2 songs. Only use when explicitly requested by the user.
Language Note: Pass the title and lyrics in the user's input language.
Args:
title (str): Song title, required
lyric (str, optional): Complete lyrics content, not required when instrumental is True
tags (str, optional): Music style tags (e.g., 'pop', 'rock', 'folk')
instrumental (bool): Whether instrumental only (no lyrics)
Returns:
Song information including download URLs
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| instrumental | Yes | ||
| lyric | No | ||
| tags | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Discloses API call, cost (5 credits), creates 2 songs, and language note. No annotations provided, so description carries full burden and does it well.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Well-structured with sections, front-loaded purpose. Slightly lengthy but every sentence adds value. Could be more concise but still effective.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Covers inputs, cost, language, and output (download URLs). Output schema exists but description provides additional context. Complete enough for usage.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, but description adds meaning: explains each param, optionality, condition (lyric not required if instrumental). Good compensation.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Clearly states it generates songs based on detailed information, with examples. Distinguishes from sibling 'generate_prompt_song' by emphasizing detailed song info.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides when-to-use guidance (user provides detailed info), cost warning, and explicit condition 'Only use when explicitly requested'. Does not contrast with sibling tool though.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
generate_prompt_songA
๐ผ Inspiration Mode: Generate songs based on simple text descriptions (AI automatically generates title, lyrics, style, etc.)
Use case: Use when users only provide simple song themes or emotional descriptions without detailed specifications.
Example inputs:
- "Help me generate a song about a peaceful morning"
- "Want a song that expresses longing"
- "Create music about friendship"
โ ๏ธ COST WARNING: This tool makes an API call to MusicMCP.AI which may incur costs (5 credits per generation). Each generation creates 2 songs. Only use when explicitly requested by the user.
Language Note: Pass the prompt in the user's input language.
Args:
prompt (str): Song theme or emotional description, 1-1200 characters
instrumental (bool): Whether instrumental only (no lyrics)
style (str, optional): Music style (e.g., "ambient", "pop", "rock"), default None
Returns:
Song information including download URLs
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| instrumental | Yes | ||
| style | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Discloses API call cost (5 credits, generates 2 songs), language handling, and that it is a generation tool. No annotations provided, so description carries full burden; it adequately covers behavioral traits.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Well-structured with emoji headers, use cases, examples, and warnings. Each sentence adds value; slightly long but appropriate for complexity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Covers all important aspects: purpose, usage, parameters, cost, language, example inputs. Output schema exists so return details are not needed. Complete for a generation tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, but description compensates by explaining each parameter: prompt character limit, instrumental as boolean, style with examples. Adds meaning beyond schema structure.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Clearly states the tool generates songs from simple text descriptions, automatically handling title, lyrics, style. Distinguishes from sibling 'generate_custom_song' through 'Inspiration Mode' and example inputs.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly states use case: when users provide simple themes without detailed specs. Includes cost warning and language note, guiding appropriate usage. Does not explicitly mention alternatives but context implies when not to use.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
4 tool updates
v1.0.6- First observed
check_api_health - First observed
check_credit_balance - First observed
generate_custom_song - First observed
generate_prompt_song
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: health check, credit check, custom song generation, and prompt-based generation. No overlap in functionality.
All tool names follow a consistent verb_noun pattern (check_api_health, check_credit_balance, generate_custom_song, generate_prompt_song), making it easy to predict functionality.
With 4 tools, the server is well-scoped for its purpose: two generation modes plus essential support tools (health and credit). Not too few or too many.
The domain is music generation, but missing features like listing past generations, checking generation status, or deleting songs. Users can generate but not manage results.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Generate Suno AI music (v5.5) from any MCP client. Async; billed only on success.
Generate AI music via the Lacuna Music API from MCP clients like Claude Desktop & Code.
- VocunoOAuthcom.vocuno
AI music studio: song generation with vocals, covers, stems, voice conversion, mastering, editing.
Write lyrics in 100+ styles, score them, generate full songs with 4 engines, split stems. OAuth.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI-powered music generation through natural language commands, supporting both inspiration mode (AI-generated lyrics and style) and custom mode (user-provided lyrics and parameters) to create songs with direct download links.43MIT
- FlicenseBqualityDmaintenanceEnables AI music generation through Suno, allowing users to create songs with custom lyrics or AI-generated content, wait for completion, and download MP3 files.7-
- AlicenseNot gradedqualityDmaintenanceEnables AI music generation via Suno AI, allowing users to generate tracks with prompts and styles, and download them as MP3.MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI music generation and management through the Suno API, supporting text prompts, custom lyrics, track status monitoring, and credit management.11-