To create, edit, analyze, and master songs directly inside Claude, Cursor, or Claude Code, connect a hosted Remote MCP server (https://mcp.lumimusic.ai/mcp) through browser OAuth 2.1. Once connected, your AI agent can inspect your account, generate songs across three model families, poll asynchronous jobs, split stems, and run AI mastering in one conversation without local CLI installs or API keys.
Connect Claude, Cursor, or Claude Code via OAuth 2.1
Hosted Remote MCP removes the usual setup friction of Python environments and static API tokens:
- Register the Remote MCP endpoint in your client:
https://mcp.lumimusic.ai/mcp- Cursor: Click the one-click install button on the LumiMusic MCP page or add the URL under Settings -> MCP.
- Claude: Add a Custom Connector pointing to
https://mcp.lumimusic.ai/mcp. - Claude Code: Run
claude mcp add --transport http lumimusic https://mcp.lumimusic.ai/mcp.
- Complete browser sign-in and approve the requested scopes (
mcp:read,mcp:create,mcp:organize). Standardmcp:*tokens never expose your name or email unless you explicitly grant profile scopes. - Verify the connection with a zero-credit check:
"Check my LumiMusic account status, credit balance, and unlocked models."
If you are comparing Suno MCP, Mureka MCP, and LumiMusic before choosing a server, see Suno MCP Explained: Setup, Limits, and Multi-Model Alternatives.
Three End-to-End Agent Workflows With Real Credit Costs
Each prompt below chains multiple MCP tools automatically. Credit totals reflect V-series 10-credit tasks (each generation returns 2 takes); switching to R-series or Mureka models costs 20 credits per task. Every asynchronous step (generate_music, extend_music, layer_vocals_or_instrumental, separate_audio, and master_and_export) is polled automatically by the agent via wait_for_task to retrieve the resulting musicId.
Workflow 1: Game or Video BGM Sprint (30 credits total)
Useful inside Cursor or Claude Code when you want background music matched to your project brief without leaving the editor:
"Check my LumiMusic account status first. Create a workspace called 'Boss Arena BGM'. Write an instrumental dark synth-orchestral loop at 128 BPM with pulsing analog bass and brass swells, generate 2 takes using the best unlocked 10-credit model, wait for completion, and give me the playable links. Once I pick my favorite, extend it from 90 seconds into a climactic outro and master it with the 'electronic' preset."
Tool chain and cost: get_account_status (0 cr) -> manage_workspaces (0 cr) -> generate_music (10 cr) -> extend_music (10 cr) -> master_and_export (10 cr), with wait_for_task (0 cr) between async steps.
Workflow 2: Reference-Track Analysis and Original Song (12 credits total)
Useful when you already have a track in your library with the right tempo or arrangement and want your agent to extract its sonic traits before writing something original:
"Find my latest track in LumiMusic with browse_library and analyze it using analyze_music. Show me its estimated BPM, key, instrumentation, and vocal delivery. Then use those sonic traits with original lyrics about late-night city trains to generate a fresh indie dream pop song, move it into a new workspace, and favorite the better take."
Tool chain and cost: browse_library (0 cr) -> analyze_music (2 cr) -> generate_music (10 cr) -> wait_for_task (0 cr) -> manage_workspaces (0 cr).
Workflow 3: Local Audio Demo to Mastered Track (32 credits total)
You can feed a local WAV or MP3 file into the pipeline via prepare_audio_source, which mints a single-use PUT upload URL with server-side format and duration checks. Keep files under 15 MB when passing them into analyze_music (convert large uncompressed WAV demos to MP3 if needed):
"Mint a single-use upload URL with prepare_audio_source for my local acoustic guitar memo (
demo.wav, under 15 MB). After I upload it, analyze its tempo and key, layer warm male indie vocals on top using layer_vocals_or_instrumental, split the finished track into vocals and instrumental stems, and run AI mastering."
Tool chain and cost: prepare_audio_source (0 cr) -> analyze_music (2 cr) -> layer_vocals_or_instrumental (10 cr) -> separate_audio (10 cr) -> master_and_export (10 cr), with wait_for_task (0 cr) between async steps.
Tool Map: All 14 MCP Tools and Plan Boundaries
| Category | Tools | Typical Use |
|---|---|---|
| Account & Polling | get_account_status, wait_for_task, prepare_audio_source, submit_feedback | Check balance and unlocked models, poll async jobs, upload local or HTTPS audio, report issues |
| Creation & Editing | generate_music, extend_music, remix_music, cover_with_voice, layer_vocals_or_instrumental | Original songs, extensions, remixes, 83-voice covers, vocal or backing layering |
| Analysis & Finishing | analyze_music, separate_audio, master_and_export | BPM/key/arrangement breakdown, 2/4/12-stem splitting, AI mastering, WAV export, LRC lyrics |
| Library Organization | browse_library, manage_workspaces | Search tracks, stems, and analyses; create/rename workspaces; move, favorite, or rename tracks |
Free accounts can connect via OAuth, browse and organize their library, run preset 83-voice covers (cover_with_voice), and generate with V4_5ALL, R1, and M9 using available credits. Starter, Pro, Unlimited, or an active Credit Pack unlocks V5, V5_5, R2, M9_5, direct downloads (MP3 on Starter; lossless WAV on Pro, Unlimited, and Credit Packs), 12-stem splitting (50 credits), custom voices in generate_music, and commercial licensing. Automated MCP usage on Unlimited includes a fair-use allowance of 2,000 credits per week. See pricing for current tier allowances.
Common MCP Errors and How to Recover
These are the four errors you are most likely to see in real agent runs, along with the fastest fix:
- Plan-gated model, export, or custom voice error on Free: The tool rejects the call without deducting credits and returns a structured hint linking to
/pricingplus free-tier fallbacks (V4_5ALL,R1,M9). Ask the agent to retry with a free-tier model, or upgrade before requesting WAV export, 12-stem splitting, or custom voices ingenerate_music. - Upstream copyright or content filter block: LumiMusic refunds the task credits automatically and returns a fallback suggestion. Tell the agent to switch model families (for example, from V-series to R-series or Mureka) and re-run with adjusted wording.
- HTTP 401 Unauthorized after disconnecting a client: Revoking a client on your Account page invalidates its OAuth token immediately. Re-run the client's MCP sign-in flow to issue a fresh token.
- Local
PUTupload rejected or expired:prepare_audio_sourceURLs are single-use and validate audio format and duration on the server. If an upload fails or times out, ask the agent to callprepare_audio_sourceagain for a fresh URL.
FAQ
Can an agent delete tracks or wipe a workspace over MCP?
No. Destructive library actions (deleting tracks or trashing workspaces) are intentionally omitted from the MCP tool surface so an autonomous agent cannot remove your catalog.
How does wait_for_task avoid timing out during longer generations?
Each wait_for_task call long-polls for up to 20 seconds per request, while full song generations typically finish in 30 to 120 seconds. Your agent simply repeats wait_for_task with the same task ID until completion, and can also pass target="wav_export" to poll lossless WAV exports.
Can I keep editing MCP-generated songs in the web studio?
Yes. Every song, stem split, analysis report, and mastered export created over MCP syncs immediately to your web Library, where you can audition, download files, or save license certificates.
Tool names, credit costs, and OAuth behavior were verified against https://mcp.lumimusic.ai/mcp on November 26, 2026.
