Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

MCP server for Suno music generation API that enables generating lyrics and custom songs with style tags, model selection, and automatic polling for task completion.

README.md

MCP-Suno

MCP (Model Context Protocol) server for Suno music generation API.

Features

  • Generate Lyrics: Create lyrics based on a description or theme
  • Generate Music: Create custom songs with lyrics, style tags, and model selection
  • Automatic Polling: Built-in polling mechanism for async task completion

Installation

  1. Clone or download this repository
  2. Install dependencies:
npm install
  1. Set up your API key by creating a .env file:
cp .env.example .env

Edit .env and add your Suno API key:

SUNO_API_KEY=your_actual_api_key_here

Building

npm run build

Running

npm start

Or for development:

npm run dev

MCP Configuration

Add this server to your MCP client configuration:

{
  "mcpServers": {
    "suno": {
      "type": "stdio",
      "command": "node",
      "args": ["E:\\xxx\\xxx\\xxx\\suno-mcp-1313api\\dist\\index.js"],
      "env": {
        "SUNO_API_KEY": "your_api_key_here"
      }
      "timeout": 600,
    }
  }
}

Available Tools

generate_lyrics

Generate lyrics based on a description or theme.

Parameters:

  • prompt (required): Description or theme for lyrics (e.g., "dance", "love song", "epic battle")

Returns:

  • task_id: The task ID for tracking
  • title: Generated song title
  • lyrics: Full lyrics text
  • status: Task completion status

Example: ``json { "prompt": "a romantic sunset song about two lovers meeting" } ``

generate_music

Generate music with custom lyrics.

Parameters:

  • prompt (required): The lyrics for the song in Suno format (with [Verse], [Chorus], [Bridge] tags)
  • title (required): Title of the song
  • tags (optional): Music style tags (e.g., "pop, upbeat, female vocals", "rock, energetic")
  • mv (optional): Model version (default: "chirp-v4")

Returns:

  • task_id: The task ID for tracking
  • songs: Array of generated songs with:
  • id: Song ID
  • title: Song title
  • tags: Style tags
  • audio_url: MP3 audio file URL
  • video_url: MP4 video file URL
  • image_url: Cover image URL
  • image_large_url: Large cover image URL
  • duration: Song duration in seconds
  • model_name: Model used
  • status: Generation status
  • lyrics: Full lyrics text

Example: ``json { "prompt": "[Verse]\nWalking down the street\nFeeling the beat\nMusic in my soul\nTaking control\n\n[Chorus]\nThis is my song\nSinging all night long\nFeel the rhythm\nMoving along", "title": "My Song", "tags": "pop, upbeat, electronic", "mv": "chirp-v4" } ``

API Endpoints

This MCP server uses the following API endpoints:

  • Submit Lyrics: POST https://1313api.top/suno/submit/lyrics
  • Submit Music: POST https://1313api.top/suno/submit/music
  • Fetch Task: GET https://1313api.top/suno/fetch/{task_id}

Polling Behavior

The server automatically polls for task completion with the following settings:

  • Max Attempts: 60
  • Polling Interval: 3 seconds
  • Total Timeout: ~3 minutes

Tasks are polled until they reach SUCCESS or FAILED status, or timeout is reached.

Error Handling

The server returns error messages in the following format:

{
  "error": "Error message description"
}

Common errors:

  • SUNO_API_KEY environment variable is not set: API key not configured
  • Failed to submit lyrics generation: API request failed
  • Task failed: Generation failed on the server
  • Task timeout: Generation took too long

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Productivity servers.