MCP-Suno
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
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
- Clone or download this repository
- Install dependencies:
npm install
- Set up your API key by creating a
.envfile:
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 trackingtitle: Generated song titlelyrics: Full lyrics textstatus: Task completion status
Example:
{
"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 songtags(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 trackingsongs: Array of generated songs with:id: Song IDtitle: Song titletags: Style tagsaudio_url: MP3 audio file URLvideo_url: MP4 video file URLimage_url: Cover image URLimage_large_url: Large cover image URLduration: Song duration in secondsmodel_name: Model usedstatus: Generation statuslyrics: Full lyrics text
Example:
{
"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 configuredFailed to submit lyrics generation: API request failedTask failed: Generation failed on the serverTask timeout: Generation took too long
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.