Suno-Hmnn-MCP

Suno-Hmnn-MCP

A FastMCP server that provides full programmatic access to Suno Premier features, including music generation, clip extension, stem separation, and audio retrieval using your Suno account.

Category
Visit Server

README

Suno-Hmnn-MCP 🎡

License: MIT Python 3.10+ MCP Standard FastMCP Engine PRs Welcome Architecture: Self--Healing

Suno-Hmnn-MCP is an enterprise-grade, local, self-healing Model Context Protocol (MCP) framework that bridges Suno AI (v4/v3.5) directly into Hermes Agent App, Antigravity IDE, Cursor, Claude Desktop, VS Code, and local REST API services.


🌟 Community Initiative & Developer Credit

Lead Architect & Author: George AK Neihsial
An open-source welfare initiative created to provide developers, creators, prompt engineers, and AI research communities with a robust, zero-cost, user-friendly bridge between cutting-edge generative audio platforms and local autonomous AI agents.


πŸ“‹ Table of Contents

  1. Why Suno-Hmnn-MCP? (Comparison Matrix)
  2. Architecture Overview
  3. Exhaustive Function & Tool Reference
  4. Step-by-Step Installation Tutorial
  5. Client Integration Guide (Hermes, Antigravity, Claude, Cursor)
  6. Complete Music Production Workflow Guide
  7. DAW Import & Stem Isolation (Ableton, FL Studio, Reaper)
  8. Comprehensive FAQ & Security Deep-Dive
  9. Troubleshooting Guide
  10. License & Authorship

⚑ Why Suno-Hmnn-MCP? (Comparison Matrix)

Feature Standard Open-Source Script Paid API Wrappers (e.g. AceData) Suno-Hmnn-MCP
Cost Free (Fragile) $0.02 - $0.05 / song 100% FREE (Uses your plan)
Authentication Manual DevTools Cookie Paste Paid API Key Automated Playwright Portal
Token Expiry Handling Crashes on 401 N/A Self-Healing Clerk JWT Refresh
Model Support Basic v3 v3 / v4 Native v4 & v3.5 Support
Audio Quality Low-res MP3 MP3 / WAV Uncompressed 24-bit WAV & MP3
Stem Isolation ❌ No Extra Fee Native Premier Vocal/Backing Stems
Precision Extension ❌ No Limited Millisecond Timestamp Extensions
State Tracking Memory Only Cloud Database Local SQLite Engine (studio_os.db)
Local Privacy Partial No (Third-party servers) 100% Local Desktop Air-Gap

πŸ—οΈ Architecture Overview

                        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                        β”‚   AI Clients / Editors                                 β”‚
                        β”‚   (Hermes Agent, Antigravity IDE, Cursor, Claude)     β”‚
                        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                                    β”‚ Standard MCP (stdio / HTTP)
                                                    β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                                       SUNO-HMNN-MCP FRAMEWORK                                          β”‚
β”‚                                                                                                        β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚ Clerk Token Rotation Engine   β”‚  β”‚ Self-Healing HTTP Middleware  β”‚  β”‚ Local SQLite State Tracker  β”‚  β”‚
β”‚  β”‚  β€’ Full Cookie Bundle Vault   β”‚  β”‚  β€’ Intercepts 401 Unauthorizedβ”‚  β”‚  β€’ Track History & Prompts  β”‚  β”‚
β”‚  β”‚  β€’ Dynamic Bearer JWT Mint    β”‚  β”‚  β€’ Silent Request Replay      β”‚  β”‚  β€’ Local File Indexing      β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                                    β”‚ Authenticated HTTPS / REST
                                                    β–Ό
                                       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                                       β”‚   Suno.com / Clerk API  β”‚
                                       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

🧰 Exhaustive Function & Tool Reference

Suno-Hmnn-MCP exposes 7 production-grade tools directly to your AI Agents:

1. suno_generate

Generates original music tracks using custom lyrics or prompt descriptions.

  • Parameters:
    • prompt (string): Descriptive prompt for song style or theme.
    • tags (string): Music genres, instruments, or vocal styles (e.g. "synthwave, energetic, female vocal").
    • title (string): Song title.
    • make_instrumental (boolean): If true, removes all vocals.
    • model_version (string): "chirp-v4" (Default) or "chirp-v3-5".
    • custom_lyrics (string): Custom structured lyrics (with [Verse], [Chorus] tags).

2. suno_extend

Extends an existing track starting from an exact timestamp.

  • Parameters:
    • clip_id (string): The unique ID of the parent clip to extend.
    • continue_at (number): Timestamp in seconds where extension begins (e.g. 120.5).
    • prompt (string): Additional lyrics or style guidance for the extended section.
    • tags (string): Updated music tags for the new section.
    • title (string): Title for the extended version.

3. suno_separate_stems

Triggers Premier stem isolation on an existing clip.

  • Parameters:
    • clip_id (string): The clip ID to separate.
  • Returns: Clip metadata containing individual audio URLs for isolated Vocals and Instrumental tracks.

4. suno_get_clip

Retrieves live clip metadata, generation status, lyrics alignment, and audio download links.

  • Parameters:
    • clip_id (string): Target clip ID.

5. suno_download_file

Downloads uncompressed WAV, MP3, or stem files safely to local storage.

  • Parameters:
    • audio_url (string): Direct CDN audio URL.
    • filename (string): Output filename (e.g. "cyberpunk_master").
    • file_format (string): "wav" (Default) or "mp3".

6. suno_get_credits

Returns account information, plan type (Free, Pro, Premier), and remaining credit allowance.

7. suno_auth_status

Diagnostic tool that reports the health of the Clerk Token Rotation Engine and remaining JWT lifespan.


πŸ› οΈ Step-by-Step Installation Tutorial

Prerequisites

  1. Python 3.10 or higher installed.
  2. Google Chrome or Microsoft Edge browser installed.
  3. An active Suno AI account.

1. Clone & Set Up Directory

git clone https://github.com/SialkiLabs/Suno-Hmnn-MCP.git
cd Suno-Hmnn-MCP

2. Install Dependencies

pip install -r requirements.txt
playwright install chromium

3. Run the Automated Auth Portal

Launch the frictionless login wizard:

python wizard.py
  • What happens:
    1. The setup wizard boots Google Chrome natively.
    2. Log into your Suno account on the Chrome window.
    3. As soon as you log in, the wizard captures your secure cookie bundle, verifies your account tier, fetches your remaining credit balance, and writes your .env configuration file automatically.

πŸ”Œ Client Integration Guide

Hermes Agent

Add to ~/.hermes/config.yaml or workspace mcp.json:

mcp_servers:
  suno_premier:
    command: "python"
    args: ["/absolute/path/to/Suno-Hmnn-MCP/server.py"]

Antigravity IDE & Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "suno-hmnn": {
      "command": "python",
      "args": ["/absolute/path/to/Suno-Hmnn-MCP/server.py"]
    }
  }
}

Claude Desktop

Add to %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "suno-hmnn": {
      "command": "python",
      "args": ["C:/Users/YourUsername/Suno-Hmnn-MCP/server.py"]
    }
  }
}

Standalone REST API Mode

To run as a local HTTP server for custom web apps or webhooks:

fastmcp run server.py:mcp --transport http --port 8000

🎼 Complete Music Production Workflow Guide

Prompting Strategy for v4 Models

For best results with Suno chirp-v4, structure your prompts with explicit musical style tags:

[Genre: Cyberpunk Synthwave]
[Tempo: 120 BPM]
[Instruments: Analog Synths, Heavy Bass, Electronic Drums]
[Vocals: Distorted Female Vocal, Reverb]

[Verse 1]
Midnight glowing neon lights,
Wires humming through the night...

[Chorus]
Digital dreams in an analog soul,
System override in full control!

🎧 DAW Import & Stem Isolation

Once suno_separate_stems completes, use suno_download_file to save your stems locally.

File Organization:

C:\Users\YourName\hermy-hq\music-outputs\
β”œβ”€β”€ cyberpunk_master.wav       # Full Mix (24-bit WAV)
β”œβ”€β”€ cyberpunk_vocals.wav       # Isolated Vocals
└── cyberpunk_instrumental.wav # Backing Track

Importing into DAWs:

  1. Ableton Live / FL Studio / Reaper / Logic Pro: Drag cyberpunk_vocals.wav and cyberpunk_instrumental.wav into separate audio tracks.
  2. Apply local EQ, compression, or sidechaining to mix Suno vocals with your custom instrument tracks.

πŸ›‘οΈ Security & Code Auditability Guarantee

Suno-Hmnn-MCP is engineered with an uncompromising commitment to privacy and open-source transparency:

  • 100% Local Air-Gap: Zero data, tokens, or cookies are ever transmitted to any third-party telemetry, analytics, or external server.
  • Direct Official Endpoints: All network communications occur exclusively between your local PC (127.0.0.1) and Suno's official domain (suno.com / clerk.suno.com).
  • Non-Invasive Setup: The interactive wizard.py script runs strictly in user-space and requires no administrator/root privileges.
  • Auditable Codebase: Every single line of network and state management code is open-source, readable, and under 500 lines of standard Python (core/auth.py, core/client.py).

❓ Comprehensive FAQ & Security Deep-Dive

Q: Will this get my Suno account flagged or banned?

No. Suno-Hmnn-MCP runs locally on your PC. It uses native Chrome/Edge headers, human-paced polling intervals, and authentic Clerk Bearer JWT tokens. It is indistinguishable from standard web browser traffic.

Q: How does the Self-Healing Token Engine work?

Clerk JWT bearer tokens expire periodically. When Suno returns an HTTP 401 Unauthorized, our internal middleware catches the response, uses the stored session cookie to silently request a new JWT from Clerk, updates its memory, and replays your generation request transparently.

Q: Do my AI Agent and Suno accounts need the same email?

No. The architecture is completely decoupled. The MCP server acts as an air-gap on your local machine.

Q: Where are generated files stored?

By default, all audio files are saved to C:\Users\YourUsername\hermy-hq\music-outputs\. You can customize this by setting SUNO_OUTPUT_DIR in .env.


🚨 Troubleshooting Guide

Symptom Cause Solution
ModuleNotFoundError: No module named 'mcp' Packages installed in virtual environment Run python using the full path to your virtual environment (e.g. venv\Scripts\python.exe setup.py).
Error fetching credits: HTTP 307 Suno API endpoint redirect Fixed in latest version by enabling follow_redirects=True in httpx. Run git pull.
Login timed out Chrome window closed before login Re-run python setup.py and ensure you complete login in Chrome.

πŸ“„ License & Authorship

Licensed under the MIT License β€” free for personal, educational, and commercial use.

Lead Developer: George AK Neihsial
An initiative for the welfare of the open-source community.


πŸ” Search Engine Index & Long-Tail Query Mapping

This section optimizes discovery for search engine crawlers (Google, Bing, Perplexity, ChatGPT, Claude) and GitHub's internal code search.

  • Primary Keywords: Suno AI MCP, Suno MCP Server, Suno API Python, Suno v4 MCP, Suno Premier API, Suno Stem Separation API, Suno WAV Exporter, Suno Claude MCP, Suno Cursor MCP, Suno Hermes Agent.
  • Supported Integrations: Hermes Agent App, Antigravity IDE, Cursor IDE, Windsurf, Claude Desktop, VS Code, Roo Code, Cline, LibreChat.
  • Supported Features: Suno chirp-v4, Suno chirp-v3-5, Custom Lyrics Generator, Timestamp Audio Extensions, Stem Isolator (Vocals/Instrumental), Uncompressed 24-bit WAV Downloader, Clerk Token Rotation Engine.

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured