Suno-MCP
Provides tools for generating music with Suno via the paperfoot/suno-cli backend, including checking auth/credits, writing lyric scaffolds, generating/downloading tracks, prompt-only generation, and legacy Playwright-based browser automation and recon of Suno's web UI.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Suno-MCP
📖 Installation Guide — quick start, manual setup, and troubleshooting
📋 v2 plan: docs/SUNO_MCP_V2_PLAN.md · docs/UNOFFICIAL.md
MCP server for Suno music generation via the community paperfoot/suno-cli engine (SUNO_BACKEND=cli, default). Uses your Suno account and credits through the same private web API the site uses—not an official Suno product.
v2 tools (preferred)
Tool | Purpose |
|
|
| Free lyric scaffold ( |
| Generate + download ( |
| Prompt-only generation |
Bootstrap: install suno CLI → suno auth --login → suno doctor. Set SUNO_CLI_PATH if needed.
Legacy Playwright
SUNO_BACKEND=playwright enables brittle browser UI tools (suno_generate_track, recon_*). Keep for DOM forensics only; see sections below.
What it can do today (be precise)
Human in the loop here is not I opened suno.com in Edge/Chrome on my desktop and the MCP reads it. It is not. Tools only see Playwrights Chromium that this process starts. Your normal browser profile is invisible to the server unless someone adds CDP attach to an existing browser (not in this repo).
What actually works in that Playwright window:
Capability | Notes |
One shared browser |
|
Navigate | e.g. create page ( |
Status (URL/title) |
|
Recon | Save HTML/JSON of the DOM, map buttons/inputs, screenshots, save/load cookiesthe useful part when automation selectors rot. |
Generate / download | Only if todays suno.com still matches the selectors in |
MCP stdio | Claude / Cursor invoke the same tools as below. |
FastAPI |
|
web_sota (Vite dashboard): Dashboard and Status call GET /health and GET /api/v1/status. Recon (/recon) triggers POST /api/v1/recon/capture-current and POST /api/v1/recon/find-elements on the shared Playwright page (same session as MCP). Set VITE_API_BASE_URL if the API is not on http://127.0.0.1:10883 (see web_sota/.env.example). Other routes may still be stubs.
Making it work better (realistic)
Keep selectors current When Suno ships UI changes, update
tools/basic/tools.py(userecon_capture_page/recon_find_elementsor the/reconweb UI to inspect the DOM).Optional hard mode Attach Playwright to your Chrome via CDP so human in the loop could mean your real profile; thats new design work, not a config toggle.
Docs: docs/USAGE_AND_VERDICT.md (keep vs delete, making music honesty), docs/WEB_RECON.md (web recon + API).
Related MCP server: Suno-MCP
Keep this repo or delete it?
Situation | Suggestion |
You want zero maintenance and hands-off music generation | Delete or archive. This will disappoint you. |
Youre OK with Suno in the browser (often by hand) and use MCP/recon as glue + forensics | Keep. Its now minimally useful for that: shared Playwright session, real dashboard/status, |
The repo only triggers shame | Private or delete is validno moral obligation to maintain a public demo. |
There is no magic upgrade path inside this repo that turns Sunos live SPA into a stable API. Minimal usefulness for music = you still drive Suno; this stack helps session, capture, and occasional scripted clicks when selectors still match.
What this actually is
Reality | Detail |
Integration model | Remote-control the live web app ( |
Login | Programmatic login is off by default ( |
Generation / download | Same fragility: |
Recon tools |
|
Suno Studio | Not implemented. There are no |
MCP / HTTP server | The Python package (FastMCP, FastAPI, optional |
Bottom line: Treat this as an experimental bridge, not a supported Suno product. Expect manual intervention, selector maintenance, and sudden breakage after site changes.
What ships in code (real tools)
Rough count: 4 CLI suno_*, 6 legacy Playwright suno_*, 10 recon_*, plus help, get_server_status, and agentic_suno_workflow.
Area | Tools |
CLI (v2) |
|
Browser / Suno UI (legacy) |
|
Recon / session |
|
Other |
|
If a feature is not in this list, it does not exist in this repo.
FastMCP 3.1.0x extras
Sampling / agentic: Configure
SUNO_SAMPLING_BASE_URL(defaulthttp://127.0.0.1:11434/v1),SUNO_SAMPLING_MODEL, optionalSUNO_SAMPLING_API_KEY;SUNO_SAMPLING_USE_CLIENT_LLM=1to prefer the host LLM;SUNO_SAMPLING_USE_OPENAI_KEY=1usesOPENAI_API_KEYfor cloud endpoints.Skills: Bundled
skill://music-generation/SKILL.md(if present in package).
Requirements
Python 3.12+ (see
pyproject.toml)Windows is the primary target for the Playwright + service story; other OSes may run the MCP but browser paths are untested here.
Playwright Chromium:
playwright install chromium
Quick Start
git clone https://github.com/sandraschi/suno-mcp
cd suno-mcp
justThis opens an interactive dashboard showing all available commands. Run just bootstrap to install dependencies, then just serve or just dev to start.
Manual Setup
If you don't have just installed:
Install (development)
git clone https://github.com/sandraschi/suno-mcp.git
Set-Location suno-mcp
uv sync
playwright install chromium
uv run suno-mcpClaude Desktop (example)
"mcpServers": {
"suno-mcp": {
"command": "uv",
"args": ["--directory", "D:/Dev/repos/suno-mcp", "run", "suno-mcp"]
}
}Adjust --directory to your clone. Config file locations: Windows %APPDATA%\Claude\claude_desktop_config.json, macOS ~/Library/Application Support/Claude/, Linux ~/.config/Claude/.
Web dashboard (web_sota)
Optional Vite UI + FastAPI backend; web_sota/start.ps1 starts frontend/backend on ports defined there. Backend loads suno_mcp.server:app (FastAPI). This does not fix Suno selector driftits only a shell around the same fragile automation.
Documentation
docs/README.md index
docs/USAGE_AND_VERDICT.md making music (honest), keep vs delete
docs/WEB_RECON.md
/reconweb UI and recon API routes
Older ad-hoc markdown may be aspirational. Trust README.md + src/suno_mcp/ for what actually exists.
Troubleshooting (honest)
Nothing clicks / fills Suno changed the UI. Use
recon_capture_page(any page) orrecon_capture_dom(Studio),recon_find_elements, or the/reconweb page; compare output totools/basic/tools.py, update selectors, or use manual control only.Login tool disabled By design; use cookies or set
SUNO_ENABLE_PROGRAMMATIC_LOGIN=1(still may fail with 2FA or UI changes).Playwright errors Run with
headless=false, watch the window, confirm you can complete the flow by hand first.
🛡️ Industrial Quality Stack
This project adheres to SOTA 14.1 industrial standards for high-fidelity agentic orchestration:
Python (Core): Ruff for linting and formatting. Zero-tolerance for
printstatements in core handlers (T201).Webapp (UI): Biome for sub-millisecond linting. Strict
noConsoleLogenforcement.Protocol Compliance: Hardened
stdout/stderrisolation to ensure crash-resistant JSON-RPC communication.Automation: Justfile recipes for all fleet operations (
just lint,just fix,just dev).Security: Automated audits via
banditandsafety.
License
MIT License
Author: Sandra Schipal (@sandraschi)
Status: Experimental browser automation; not production ready in any sense that implies Suno will keep working without ongoing maintenance.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate full songs with vocals, instrumentals and sound effects from text. One server for Suno, Google Lyria, Mureka, MiniMax, ACE-Step, YuE and ElevenLabs. Your agent can quote the credit cost before generating, start a song, wait for it to finish and return download links. Sign in with OAuth; optional daily credit caps; retries never charge twice.
Create songs from prompts or lyrics, check credits, and access your private library with OAuth.
Write lyrics in 100+ styles, score them, generate full songs with 4 engines, split stems. OAuth.
Generate images, video, music and voice from your CLI or AI agent. On-brand AI media toolkit.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI music generation through Suno, allowing users to create songs with custom lyrics or AI-generated content, wait for completion, and download MP3 files.7ISC
- AlicenseAqualityDmaintenanceEnables music generation through Suno AI, providing tools for account authentication, prompt-based track creation, and automatic downloading of audio files. It facilitates seamless AI music production workflows within Claude Desktop via Playwright-driven browser automation.103MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI music generation via Suno AI, allowing users to generate tracks with prompts and styles, and download them as MP3.1MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI music generation and management through the Suno API, supporting text prompts, custom lyrics, track status monitoring, and credit management.16-