Skip to content

Create a song with YuE2 Studio through Lares ​

YuE2 Studio provides an MCP server that lets Lares turn a musical idea into a song from the conversation. You can play the result in Lares or open it in YuE2 Studio.

This guide creates a short acoustic pop song from one Lares conversation. You can replace the example description with your own musical idea.

Learning objectives ​

In this guide, you will learn how to:

  • Connect the YuE2 Studio MCP server to Lares.
  • Describe a musical idea and generate a song from the conversation.
  • Play the result in Lares or YuE2 Studio.

Prerequisites ​

Connect YuE2 Studio to Lares ​

Add YuE2 Studio's MCP endpoint to Lares so Qwen3.8-27B can call its music tools and create songs from the conversation.

  1. Open Olares Settings > Applications > YuE2 Studio > Entrances.
  2. Select YuE2 Studio MCP & API and copy its Endpoint URL.
  3. Open Lares and go to Settings > MCP.
  4. Click Add server and enter the following settings:
    • Server name: yue2studio
    • Transport: Streamable HTTP
    • MCP URL: Paste the copied endpoint, then add /mcp to the end.
    • Headers: {}
  5. Click Save. Lares connects to the server and loads its tools.

Generate a song ​

  1. Start a new Lares conversation and select Qwen3.8-27B (llama.cpp).

  2. Describe the song you want in plain language. You can mention its style, mood, theme, vocals, or instruments. For example:

    text
    Create a warm acoustic pop song about seeing the first light over the sea. Use warm female vocals, acoustic guitar, piano, and light drums.
  3. Lares might ask for permission before calling a YuE2 Studio tool. Review the request and allow it to continue.

  4. Keep the current conversation in the foreground while Lares generates the song. Wait until Lares reports that generation is complete.

  5. Listen to the result in either place:

    • In the current Lares conversation, ask Lares to play the song it just created.
    • Open YuE2 Studio, go to Library, and play the latest generated song.

Troubleshoot the connection ​

Why can't Lares load the YuE2 Studio tools? ​

Confirm YuE2 Studio is running, the transport is Streamable HTTP, and the URL ends with /mcp.

Learn more ​