MusicMCP.AI MCP Server

MusicMCP.AI MCP Server

musicmcp-ai•byamcharlie

MusicMCP.AI's official Model Context Protocol server for AI music generation.

License: MIT License•Runtime: Awaiting documentation review•Category: media design

WHAT IT DOES

  • •Generates AI music from simple text descriptions, automatically creating the title, lyrics, and style.
  • •Generates custom songs from user-provided lyrics, title, and style parameters.
  • •Checks API key validity and remaining credits.
  • •Monitors the health status of the MusicMCP.AI API service.

BEST FOR

  • •Creating songs from mood or theme prompts such as a peaceful morning, longing, friendship, or ambient music.
  • •Producing custom songs with supplied lyrics, title, and style, such as a folk song titled Summer Dreams.
  • •Generating instrumental-only tracks with a chosen title and style.

ABOUT MUSICMCP-AI

MusicMCP.AI MCP Server is cataloged as an MCP server attributed to amcharlie. MusicMCP.AI's official Model Context Protocol server for AI music generation. It is categorized under media design. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MusicMCP.AI MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does inspiration mode create the title, lyrics, and style automatically?

Yes. Inspiration mode uses simple text descriptions and the AI automatically creates the title, lyrics, and style.

Can users provide their own lyrics and style?

Yes. Custom mode accepts specific lyrics, title, and style parameters that the user provides.

Can the server generate instrumental-only music?

Yes. The instrumental option is for generating instrumental music only.

Upstream README

View this exact version on GitHub

README.md · 807daef6092f · Fetched 2026-11-13 08:17:21 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

🎵 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

🚀 Quickstart with Claude Desktop

  1. Get Your API Key: Obtain your API key from MusicMCP.AI Platform
  2. Install uv: Install the Python package manager with curl -LsSf https://astral.sh/uv/install.sh | sh
  3. Configure 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"
            }
        }
    }
}
  1. Restart Claude: Restart the Claude app and you'll see 4 MCP tools available, indicating successful loading

⚙️ Environment Variables

VariableDescriptionDefaultRequired
MUSICMCP_API_KEYYour MusicMCP.AI API key-✅ Yes
MUSICMCP_API_URLMusicMCP.AI API base URLhttps://www.musicmcp.ai/api❌ No
TIME_OUT_SECONDSTimeout for music generation in seconds600 (10 min)❌ 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 only
  • style (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: ambient

Output 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

OperationCredits CostOutput
Generate Inspiration Music5 credits2 songs
Generate Custom Music5 credits2 songs
Query Music Status0 credits (Free)-
Check Credit Balance0 credits (Free)-
API Health Check0 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

uvx aimusic-mcp

Using 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 task
  • POST /music/generate/query: Query music status (batch query supported)
  • GET /credit: Check credit balance
  • GET /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 Progress

Step 3: Return Complete Song Information

Once all songs are completed, returns full details:
- songName, songUrl, imgUrl, duration, tags, etc.

Behind the Scenes:

  1. User calls generate_prompt_song() or generate_custom_song()
  2. MCP sends generation request → receives 2 song IDs
  3. MCP automatically polls /music/generate/query every 2 seconds
  4. When all songs complete (status=1), returns download URLs
  5. 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

  1. API Key Error: Ensure MUSICMCP_API_KEY is set correctly

    • Use the check_credit_balance tool to check your key
  2. Insufficient Credits (402 Error): You don't have enough credits

  3. Timeout Errors: Increase TIME_OUT_SECONDS if music generation takes longer

Logs

When running with Claude Desktop, logs can be found at:

  • Windows: %APPDATA%\Claude\logs\mcp-server-MusicMCP.AI.log
  • macOS: ~/Library/Logs/Claude/mcp-server-MusicMCP.AI.log

🧪 Development

Running Tests

pytest tests/

Local Development

python -m musicmcp_ai_mcp.api

Code Structure

musicmcp_ai_mcp/
├── __init__.py          # Package initialization
├── __main__.py          # CLI entry point
└── api.py               # Core MCP server implementation (430 lines)

📄 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

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MusicMCP.AI MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/musicmcp-ai)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related media design MCP Servers

Alternative and complementary servers in the same category

View all in media design →

A Rust CAD application with an MCP server for creating, inspecting and rendering drawings, either headlessly or through a connection to the desktop app.

8K
Media & Design
Liquid Composer
liquid-composer•frontedu

Liquid Composer is a browser-based Liquid Glass icon design tool that offers a local MCP server for agent-driven icon workflows.

69
Media & Design

agent-media makes short drama series and other short vertical videos from Claude, ChatGPT or Codex through one MCP connection, with OAuth sign-in and no API keys.

1
Media & Design