mcpField
L
Lacuna MCP

Lacuna MCP

Remote
lacuna.fmDeveloper Tools5Updated 12w ago

About Lacuna MCP

Lacuna MCP connects MCP-compatible clients to the Lacuna Music API for AI music generation. It provides tools to create a track and check or wait for its generation task.

Key features

  1. 01Create music from style and title
  2. 02Generate vocal or instrumental tracks
  3. 03Choose Aether or Echo model
  4. 04Check and wait for task status

Use cases

  1. 01Generate music within an agent loop
  2. 02Create instrumental tracks without lyrics
  3. 03Track a generation task to completion

MCP support

Exposes music-generation and task-status tools to MCP clients over stdio. Requires a Lacuna API key; Music API access requires the Pro plan or above.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://www.lacuna.fm/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

Packages
npmlacuna-mcp0.3.4

Tools

3
ParameterTypeRequiredDescription
stylestringYesStyle description, e.g. "pop, female vocal, 120 bpm, energetic".
titlestringYesTrack title.
lyricsstringNoLyrics in plain text. Required unless `instrumental` is true.
instrumentalbooleanNoGenerate an instrumental track (no lyrics). Defaults to false.
modelenumNoGeneration model. Defaults to `aether`. Use `echo` for full structured tracks up to three minutes.aether | echo
vocal_genderenumNoLead vocal gender hint (aether only).m | f
negative_tagsstringNoNegative style tags to avoid (aether only).
style_weightnumberNoStyle weight 0–1 (aether only).
weirdness_constraintnumberNoWeirdness constraint 0–1 (aether only).
audio_weightnumberNoAudio reference weight 0–1 (aether only).

Details

From the project README

lacuna-mcp

npm version License: MIT Node.js

Model Context Protocol server for the Lacuna Music API. Lets MCP-compatible clients (Claude Desktop, Claude Code, Cursor, Zed, Continue, etc.) generate AI music as part of an agent loop.

Looking for the SDK or CLI? See lacuna-sdk and lacuna-toolkit.


Installation

The server is published as a single npm package and runs over stdio. No install step is needed — your MCP client launches it via npx.

npx lacuna-mcp

Configuration

The server reads its configuration from environment variables:

VariableRequiredDescription
LACUNA_API_KEYyesAPI key from your profile dashboard. Begins with lyr_live_.
LACUNA_BASE_URLnoOverride the API base URL (e.g. for staging).

Music API access requires the Pro plan or above.

Claude Desktop

Add an entry to claude_desktop_config.json:

{
  "mcpServers": {
    "lacuna": {
      "command": "npx",
      "args": ["-y", "lacuna-mcp"],
      "env": {
        "LACUNA_API_KEY": "lyr_live_..."
      }
    }
  }
}

The config file lives at:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
Claude Code
claude mcp add lacuna -- npx -y lacuna-mcp

Then export the key in your shell or set it via your client's MCP settings.

Cursor / Zed / other MCP clients

Any client that speaks the Model Context Protocol over stdio can run npx -y lacuna-mcp as the command and pass LACUNA_API_KEY as an env var. Refer to your client's MCP setup docs for the exact JSON shape.


Tools

ToolDescription
generate_musicCreate a music generation task. Returns a pending task immediately.
get_generationRetrieve the current state of a generation task by id.
wait_for_generationPoll a task until it reaches a terminal state (ready or failed) or the timeout elapses.
generate_music
ParameterTypeDescription
stylestring (required)Style description, e.g. "pop, female vocal, 120 bpm, energetic".
titlestring (required)Track title.
lyricsstringRequired unless instrumental is true.
instrumentalbooleanGenerate an instrumental track. Default false.
model"aether" | "echo"Generation model. Defaults to aether (Lacuna Aether).
vocal_gender"m" | "f"Lead vocal hint (aether only).
negative_tagsstringStyle tags to avoid (aether only).
style_weightnumber (0–1)aether only.
weirdness_constraintnumber (0–1)aether only.
audio_weightnumber (0–1)aether only.

Credits are deducted on creation and refunded automatically if the upstream provider fails.

get_generation
ParameterTypeDescription
idstringGeneration task id, returned by generate_music.
wait_for_generation
ParameterTypeDescription
idstringGeneration task id.
poll_interval_secondsnumberPolling interval. Default 5.
timeout_secondsnumberTotal timeout. Default 600 (10 minutes).

Requirements

  • Node.js 18 or newer.
  • An API key from a Lacuna Pro plan or above.

License

MIT © Louis Tsang

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.