npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@yellowkode/suno-mcp

v1.0.7

Published

MCP Server for Suno AI — Generate music directly from Claude, Cursor, and any MCP-compatible client. by YellowKode Academy

Downloads

987

Readme

@yellowkode/suno-mcp

MCP Server for Suno AI — Generate music directly from Claude, VSCode, Cursor, and any MCP-compatible client.

by YellowKode Academy · sunoboard.com

npm version License: MIT


What is this?

@yellowkode/suno-mcp is an open-source Model Context Protocol (MCP) server that connects Claude and other AI assistants directly to the Suno AI music generation API.

Instead of manually calling the API, you can just tell Claude:

"Generate a dark ambient viking instrumental, slow drums, cinematic, no vocals"

...and Claude handles the full generation flow automatically.


Prerequisites

  • Node.js 18+
  • A Suno API key — two options:

| Option | Key format | Where to get | |--------|-----------|--------------| | SunoBoard (recommended) | sb_... | sunoboard.com — generations saved to your dashboard | | sunoapi.org (BYOK) | e57efd1b... | sunoapi.org → Dashboard → API Keys |

The server auto-detects which API to use based on the key prefix. No extra config needed.


Quick start

# One-shot (no install needed)
SUNO_API_KEY=your_key npx @yellowkode/suno-mcp

# Or install globally
npm install -g @yellowkode/suno-mcp

Setup

Claude Desktop

Edit claude_desktop_config.json:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "suno": {
      "command": "npx",
      "args": ["@yellowkode/suno-mcp"],
      "env": {
        "SUNO_API_KEY": "your_key_here"
      }
    }
  }
}

Claude Code (terminal)

claude mcp add suno \
  -e SUNO_API_KEY=your_key_here \
  -- npx @yellowkode/suno-mcp

Cursor / Cline (VSCode)

Add to .cursor/mcp.json or .vscode/mcp.json:

{
  "mcpServers": {
    "suno": {
      "command": "npx",
      "args": ["@yellowkode/suno-mcp"],
      "env": {
        "SUNO_API_KEY": "your_key_here"
      }
    }
  }
}

Available Tools

| Tool | Description | |------|-------------| | generate_music | Start music generation — returns a taskId | | get_music_status | Check generation status by taskId | | wait_for_music | Auto-poll until ready, returns audio URL (up to 5 min) | | list_recent_music | List recently generated tracks | | get_credits | Check remaining API credits |

generate_music parameters

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | prompt | string | required | Music description or lyrics (in custom mode) | | model | string | V4_5 | V4 · V4_5 · V4_5PLUS · V4_5ALL · V5 · V5_5 | | style | string | — | Style tags e.g. "ambient dark, slow drums" | | title | string | — | Track title (required in custom mode) | | instrumental | boolean | false | Generate without vocals | | customMode | boolean | false | Use prompt as literal lyrics | | vocalGender | "male" | "female" | — | Vocal preference (custom mode only) | | negativeTags | string | — | Styles to avoid e.g. "heavy metal" | | styleWeight | 0–1 | 0.5 | Style adherence | | weirdnessConstraint | 0–1 | 0.5 | Creativity vs. predictability | | audioWeight | 0–1 | 0.5 | Audio quality weight |


Usage Examples

Basic

"Generate a relaxing lo-fi hip hop track for studying"

Claude calls generate_musicwait_for_music and returns the audio URL.

Game development

"Generate dramatic battle music for an RPG boss fight, orchestral, no lyrics, intense"

Custom lyrics

"Generate a song with these lyrics: [paste lyrics], style: indie pop, female vocals"

With full control

"Generate music: prompt='cosmic meditation', style='deep space ambient, synth pads', model=V5, instrumental, weirdness=0.7"


Environment Variables

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | SUNO_API_KEY | ✅ | — | Your API key (sb_... or sunoapi.org hash) | | SUNO_API_BASE_URL | ❌ | auto-detected | Override API base URL | | MAX_POLL_ATTEMPTS | ❌ | 30 | Max polls for wait_for_music | | POLL_INTERVAL_MS | ❌ | 10000 | Polling interval in ms |


Visual Dashboard

Want to manage all your generated music visually?

SunoBoard gives you:

  • Full history with inline player
  • Organize by project (e.g. "Game OST", "YouTube Channel")
  • Download MP3
  • Credit tracking
  • Regenerate with same parameters

Use a sb_ key to have all generations appear automatically in your dashboard.


Contributing

git clone https://github.com/YellowKode-Academy/suno-mcp
cd suno-mcp
npm install
npm run dev

Tests: npm test


License

MIT © YellowKode Academy · Wunka Tech

Built with ❤️ by Kelvin Biffi