🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

lacuna-mcp

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lacuna-mcp

Model Context Protocol (MCP) server for the Lacuna Music API — generate AI music from MCP-compatible clients like Claude Desktop and Claude Code.

latest
Source
npmnpm
Version
0.3.3
Version published
Weekly downloads
161
-28.44%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

lacuna

FAQs

Package last updated on 01 Aug 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts