Suno MCP

Suno MCP

An MCP server that generates music using your Suno account, enabling credit checking, song generation, and MP3 downloads without third-party APIs.

Category
访问服务器

README

Suno MCP

PyPI version License: MIT Python 3.10+ MCP

MCP server for generating music with your suno.com account — no third-party API keys, no 2Captcha, no extra paid services.

Use it from Cursor, Claude Desktop, or any MCP-compatible client to check credits, generate songs, and download MP3s.

Features

  • Your Suno account — uses your existing subscription/credits
  • No API middlemen — authenticates via Clerk in a real browser session
  • Generation tools — custom lyrics/style or simple prompt mode
  • Library access — credits, recent songs, status polling, MP3 download

Requirements

  • Python 3.10+
  • A free or paid Suno account at suno.com
  • Chromium (installed via Playwright)

Quick Start

Install from PyPI

pip install suno-mcp
playwright install chromium
cp .env.example .env  # optional — defaults work out of the box

Install from source

git clone https://github.com/David-J-Shibley/suno-mcp.git
cd suno-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
playwright install chromium
cp .env.example .env

First run: A browser window opens. Log into Suno if prompted. Your session is saved to ~/.suno-mcp/browser-profile.

Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "suno": {
      "command": "/absolute/path/to/suno-mcp/.venv/bin/python",
      "args": ["-m", "suno_mcp"],
      "env": {
        "SUNO_HEADLESS": "false"
      }
    }
  }
}

Set SUNO_HEADLESS to false — the Create button must be visible for generation to work.

Restart the MCP server after config or code changes (Cursor → Settings → MCP).

macOS Homebrew Python note

If pip fails with a pyexpat / libexpat error on macOS Tahoe, add to your MCP env:

"DYLD_LIBRARY_PATH": "/opt/homebrew/opt/expat/lib"

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "suno": {
      "command": "/absolute/path/to/suno-mcp/.venv/bin/python",
      "args": ["-m", "suno_mcp"],
      "env": {
        "SUNO_HEADLESS": "false"
      }
    }
  }
}

Tools

Tool Description
suno_get_credits Check your Suno credit balance
suno_get_recent List recent songs in your library
suno_generate_song Custom mode — lyrics + style
suno_generate_from_description Simple mode — describe the song
suno_check_status Poll generation status by song ID
suno_wait_for_songs Wait until songs are ready
suno_download_song Download MP3 to a folder

How It Works

  1. Auth — Reads JWT from window.Clerk.session.getToken() in the logged-in browser tab.
  2. Reads (credits, feed, recent) — Direct HTTPS to studio-api.prod.suno.com.
  3. Generation — Fills lyrics/style via React state, then dispatches a trusted CDP mouse click on the Create button (required by hCaptcha).

Generation approach adapted from unforced/suno-mcp.

Configuration

Variable Default Description
SUNO_BROWSER_PROFILE_DIR ~/.suno-mcp/browser-profile Persistent browser profile
SUNO_HEADLESS false Must be false for generation
SUNO_CDP_URL Connect to existing Chrome via CDP
SUNO_DEBUG Set to 1 for debug logging

Optional: Use Your Own Chrome

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
  --remote-debugging-port=9222 \
  --user-data-dir=~/.suno-mcp/chrome-profile

Then in .env:

SUNO_CDP_URL=http://localhost:9222

Log into Suno in that Chrome window.

Troubleshooting

Not signed in — Log into suno.com/create in the browser window the MCP server opens.

Profile already in use — Restart the Suno MCP server in Cursor (only one browser instance per profile).

Empty song IDs after generate — Keep SUNO_HEADLESS=false, ensure the browser window stays visible, and restart the MCP server after updates.

Cookie dialog — Click "Allow All" once if Suno shows a privacy/cookie banner.

Limitations

  • Unofficial — Uses Suno's internal endpoints; may break when Suno updates.
  • Browser required — Generation needs a visible browser window.
  • Uses your Suno credits — Same quota as the website.
  • MVP scope — No covers, extends, or stems yet.

Disclaimer

This is an unofficial project and is not affiliated with Suno. Use at your own risk and in accordance with Suno's terms of service.

Contributing

Issues and pull requests are welcome on GitHub.

See PUBLISHING.md for PyPI release instructions.

License

MIT — see LICENSE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选