otherai-ml

MusicMCP.AI

amcharlie

by amcharlie

MusicMCP.AI — AI music generator that creates songs and musical content within conversations using advanced music-genera

Integrates with the MusicMCP.AI platform to generate songs and musical content directly within conversations through specialized music generation models.

github stars

3

0 commentsdiscussion

Both formats append explainx.ai attribution and the canonical URL for this MCP server listing.

Dual generation modes (inspiration and custom)Direct download URLs provided4 built-in MCP tools

best for

  • / Musicians and composers seeking AI-generated inspiration
  • / Content creators needing custom background music
  • / Developers building music-enabled applications

capabilities

  • / Generate AI songs from text prompts
  • / Create instrumental-only tracks
  • / Download generated music files directly
  • / Check API credit balance
  • / Monitor service health status

what it does

Connects to MusicMCP.AI's platform to generate AI-powered songs and musical content through text prompts in conversations.

about

MusicMCP.AI is a community-built MCP server published by amcharlie that provides AI assistants with tools and capabilities via the Model Context Protocol. MusicMCP.AI — AI music generator that creates songs and musical content within conversations using advanced music-genera It is categorized under other, ai ml.

how to install

You can install MusicMCP.AI in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

MusicMCP.AI is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

# 🎵 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](https://www.anthropic.com/claude), [OpenAI Agents](https://github.com/openai/openai-agents-python) 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](https://www.musicmcp.ai) 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: ```json { "mcpServers": { "MusicMCP.AI": { "command": "uvx", "args": [ "aimusic-mcp" ], "env": { "MUSICMCP_API_KEY": "", "MUSICMCP_API_URL": "https://www.musicmcp.ai/api", "TIME_OUT_SECONDS": "600" } } } } ``` 4. **Restart Claude**: Restart the Claude app and you'll see **4 MCP tools** available, indicating successful loading ## ⚙️ Environment Variables | Variable | Description | Default | Required | |----------|-------------|---------|----------| | `MUSICMCP_API_KEY` | Your MusicMCP.AI API key | - | ✅ Yes | | `MUSICMCP_API_URL` | MusicMCP.AI API base URL | `https://www.musicmcp.ai/api` | ❌ No | | `TIME_OUT_SECONDS` | Timeout for music generation in seconds | `600` (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 | 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) ```bash uvx aimusic-mcp ``` ### Using pip ```bash 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** ```bash POST /music/generate/inspiration or /music/generate/custom → Returns: {"code": 200, "data": {"ids": ["id1", "id2"]}} ``` **Step 2: Automatic Polling (handled internally by MCP)** ```bash 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 - Check your balance at https://www.musicmcp.ai - Recharge your account 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 ```bash pytest tests/ ``` ### Local Development ```bash 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 lin ---

FAQ

What is the MusicMCP.AI MCP server?
MusicMCP.AI is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for MusicMCP.AI?
This profile displays 27 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.

Use Cases

Extended AI Capabilities

Add new capabilities to Claude beyond text generation

Example

Access external data sources, execute code, interact with tools and services

Transform Claude from chatbot to action-taking agent

Context Enhancement

Provide Claude with access to relevant context and data

Example

Load project documentation, access knowledge bases, query databases

Get more accurate, context-aware responses

Workflow Automation

Automate multi-step workflows combining AI and external tools

Example

Research → Summarize → Create document → Send notification

Complete complex tasks end-to-end without manual steps

Implementation Guide

Prerequisites

  • Claude Desktop 0.7.0+ or Cursor IDE with MCP support
  • Basic understanding of MCP architecture and capabilities
  • Access credentials for integrated services (if required)
  • Willingness to experiment and iterate on configuration

Time Estimate

15-60 minutes depending on server complexity

Installation Steps

  1. 1.Install MCP server: npm install -g [package-name] or via GitHub
  2. 2.Add server configuration to ~/.claude/mcp.json
  3. 3.Provide required credentials and configuration
  4. 4.Restart Claude Desktop to load new server
  5. 5.Test basic functionality with simple prompts
  6. 6.Explore capabilities and experiment with use cases
  7. 7.Document successful patterns for reuse

Troubleshooting

  • MCP server not loading: Check config syntax, verify installation
  • Connection errors: Check network, firewall, credentials
  • Feature not working: Read server docs, check required parameters
  • Performance issues: Monitor resource usage, check for network latency
  • Conflicts with other servers: Check port assignments, namespace collisions

Best Practices

✓ Do

  • +Read server documentation thoroughly before setup
  • +Start with simple use cases to validate functionality
  • +Test in non-production environment first
  • +Monitor resource usage and performance
  • +Keep servers updated for bug fixes and new features
  • +Document configuration for team members
  • +Use environment variables for sensitive configuration

✗ Don't

  • Don't grant overly permissive access to MCP servers
  • Don't skip reading security considerations in docs
  • Don't expose sensitive data without proper controls
  • Don't run untrusted MCP servers without code review
  • Don't ignore error messages—investigate root cause

💡 Pro Tips

  • Combine multiple MCP servers for powerful workflows
  • Create custom MCP servers for your specific needs
  • Share successful configurations with team
  • Use MCP inspector for debugging
  • Join MCP community for tips and troubleshooting

Technical Details

Architecture

Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.

Protocols

  • Model Context Protocol (MCP)
  • JSON-RPC 2.0
  • stdio or HTTP transport

Compatibility

  • Claude Desktop
  • Cursor IDE
  • Custom MCP clients

When to Use This

✓ Use When

Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.

✗ Avoid When

Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.

Integration

  • Tool composition: Chain multiple MCP tools in workflows
  • Context augmentation: Provide AI with relevant external data
  • Action delegation: Let AI execute tasks on external systems
  • Bidirectional sync: Keep AI context and external systems in sync

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.

List & Promote Your MCP Server

Share your MCP server with the developer community

GET_STARTED →
MCP server reviews

Ratings

4.527 reviews
  • Shikha Mishra· Dec 20, 2024

    MusicMCP.AI has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Layla Martin· Dec 20, 2024

    I recommend MusicMCP.AI for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.

  • Chinedu Desai· Nov 27, 2024

    MusicMCP.AI is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

  • Yash Thakker· Nov 11, 2024

    According to our notes, MusicMCP.AI benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Zara Agarwal· Nov 11, 2024

    We evaluated MusicMCP.AI against two servers with overlapping tools; this profile had the clearer scope statement.

  • Hiroshi Gupta· Oct 18, 2024

    MusicMCP.AI is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.

  • Dhruvi Jain· Oct 2, 2024

    We wired MusicMCP.AI into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Yuki Desai· Oct 2, 2024

    Useful MCP listing: MusicMCP.AI is the kind of server we cite when onboarding engineers to host + tool permissions.

  • Oshnikdeep· Sep 9, 2024

    MusicMCP.AI is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.

  • Arjun Ndlovu· Sep 5, 2024

    I recommend MusicMCP.AI for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.

showing 1-10 of 27

1 / 3