# Lacuna Music

Connect an MCP client to Lacuna Music to request tracks and check generation progress. Useful when an agent needs to create a song from a style brief and lyrics.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 5
- Author: JOYLINK-LTD
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/JOYLINK-LTD/lacuna-toolkit/tree/HEAD/packages/mcp
- Updated: 2026-08-10
- HTML: https://affpapa.org/en/nevibecode/mcp/lacuna-music

## What it does

The server exposes Lacuna Music generation through MCP. Call `generate_music` with a track name and style description; include lyrics unless you request an instrumental. The call returns a task, which you can inspect with `get_generation`. To keep checking until completion or failure, use `wait_for_generation`.

The available models are `aether` and `echo`. Vocal hints and several style controls apply to `aether`. Running the npm package locally requires Node.js 18 or newer, plus an API key on the Pro plan or above, supplied as `LACUNA_API_KEY`. A lower plan does not provide access to music generation through the API.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://www.lacuna.fm/mcp`
- Environment variables: `LACUNA_API_KEY`, `LACUNA_BASE_URL` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http lacuna-mcp https://www.lacuna.fm/mcp
```

2. **Platform CLI**
```bash
claude mcp add --env LACUNA_API_KEY=<LACUNA_API_KEY> --env LACUNA_BASE_URL=<LACUNA_BASE_URL> --transport stdio mcp -- npx -y lacuna-mcp
```
Replace <…> with your own values

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add mcp --url https://www.lacuna.fm/mcp
```

2. **Platform CLI**
```bash
codex mcp add mcp --env LACUNA_API_KEY=<LACUNA_API_KEY> --env LACUNA_BASE_URL=<LACUNA_BASE_URL> -- npx -y lacuna-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "url": "https://www.lacuna.fm/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "command": "npx",
            "args": [
                "-y",
                "lacuna-mcp"
            ],
            "env": {
                "LACUNA_API_KEY": "<LACUNA_API_KEY>",
                "LACUNA_BASE_URL": "<LACUNA_BASE_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "http",
            "url": "https://www.lacuna.fm/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "lacuna-mcp"
            ],
            "env": {
                "LACUNA_API_KEY": "<LACUNA_API_KEY>",
                "LACUNA_BASE_URL": "<LACUNA_BASE_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http mcp https://www.lacuna.fm/mcp
```

2. **Platform CLI**
```bash
gemini mcp add -e LACUNA_API_KEY=<LACUNA_API_KEY> -e LACUNA_BASE_URL=<LACUNA_BASE_URL> mcp npx -y lacuna-mcp
```
Replace <…> with your own values

## When to use it
- create a track from a style brief
- generate an instrumental piece
- check a generation task's state
- wait for a task to finish or fail

## Example prompts
- Create a track called “Morning Drive” with an indie pop sound and lyrics about heading home.
- Generate an instrumental piece for a quiet game scene.
- Check the generation task with ID `abc123`.

## Similar
- [MCP Toolbox for Databases](https://affpapa.org/en/nevibecode/mcp/googleapis-mcp-toolbox-for-databases.md) — MCP server · ★ 16730
- [labelhead-artist-momentum](https://affpapa.org/en/nevibecode/mcp/labelhead-artist-momentum.md) — MCP server · ★ 107701
- [Agent Skills Search Server](https://affpapa.org/en/nevibecode/mcp/agent-skills-search-server.md) — MCP server · ★ 26673
- [Skyvern](https://affpapa.org/en/nevibecode/mcp/skyvern.md) — MCP server · ★ 23283
- [Nhost](https://affpapa.org/en/nevibecode/mcp/nhost.md) — MCP server · ★ 9369
- [PraisonAI](https://affpapa.org/en/nevibecode/mcp/praisonai.md) — MCP server · ★ 9298

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
