Suno 賬號與曲庫工具
官方 Suno MCP 工具的詳細引數及程式碼用例。
以下程式碼用例適用於完成 OAuth 授權與 MCP 初始化的 Suno 官方連線。請用登入賬號有權訪問的真實素材 ID 替換佔位值。APIMaster Key 走獨立的音樂生成介面。工具清單來自 2026 年 11 月 30 日的官方工具發現,具體工具受賬號許可權約束。
賬號、共享曲庫和套餐操作直接作用於已授權的 Suno 賬號。請在自己的授權會話中使用以下示例。
Suno 官方 MCP · 官方功能說明 · 授權連線方式
工具索引
- account-me
- account-upgrade
- account-usage
- custom-models-list
- library-liked
- library-list
- library-search
- playlists-add-clips
- playlists-create
- playlists-list
- playlists-list-clips
- playlists-remove-clips
- voices-list
- voices-start
- workspaces-create
- workspaces-list
- workspaces-update-clips
account-me
讀取已授權的 Suno 賬號身份,賬號資訊應由後臺保管。
引數
此工具無需引數。
呼叫示例
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "account-me",
"arguments": {}
}
}
account-upgrade
向 Suno 獲取積分或套餐升級入口。該呼叫僅返回官方入口。
引數
此工具無需引數。
呼叫示例
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "account-upgrade",
"arguments": {}
}
}
account-usage
檢視可用模型、功能開關和生成、下載、Visuals 剩餘額度。
引數
此工具無需引數。
呼叫示例
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "account-usage",
"arguments": {}
}
}
custom-models-list
查詢該賬號可用的自定義模型。對應 ID 可傳入支援它的生成工具。
引數
| 引數 | 型別 | 必填 | 說明與限制 |
|---|---|---|---|
collection |
string |
否 | 要查詢的賬號集合。 "own" / "shared" · 預設 "own" |
cursor |
string |
否 | 上一頁返回的不透明分頁遊標。 |
limit |
integer |
否 | 當前頁請求條數上限。 ≥1 · ≤100 · 預設 20 |
query |
string |
否 | 搜尋目標曲庫或集合的文字。 長度 ≥1 · 長度 ≤200 |
呼叫示例
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "custom-models-list",
"arguments": {
"limit": 10
}
}
}
library-liked
按分頁遊標列出登入賬號收藏的歌曲。
引數
| 引數 | 型別 | 必填 | 說明與限制 |
|---|---|---|---|
cursor |
string |
否 | 上一頁返回的不透明分頁遊標。 |
limit |
integer |
否 | 當前頁請求條數上限。 ≥1 · ≤50 · 預設 10 |
呼叫示例
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "library-liked",
"arguments": {
"limit": 10
}
}
}
library-list
瀏覽登入賬號曲庫,可按可見性、工作區或下載狀態篩選。
引數
| 引數 | 型別 | 必填 | 說明與限制 |
|---|---|---|---|
cursor |
string |
否 | 上一頁返回的不透明分頁遊標。 |
downloaded |
boolean |
否 | 按歌曲是否解鎖下載篩選。 預設 false |
liked |
boolean |
否 | 按喜歡標記篩選歌曲或素材。 預設 false |
limit |
integer |
否 | 當前頁請求條數上限。 ≥1 · ≤50 · 預設 10 |
origin |
string |
否 | 按曲目來源篩選。 "upload" / "cover" / "extension" / "remaster" |
visibility |
string |
否 | 釋出狀態或可見性篩選條件。 "public" / "private" |
workspace_id |
string |
否 | 用於整理或篩選素材的賬號工作區 ID。 |
呼叫示例
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "library-list",
"arguments": {
"limit": 10
}
}
}
library-search
搜尋 Suno 曲庫,可用工作區和可見性縮小範圍。
引數
| 引數 | 型別 | 必填 | 說明與限制 |
|---|---|---|---|
cursor |
string |
否 | 上一頁返回的不透明分頁遊標。 |
downloaded |
boolean |
否 | 按歌曲是否解鎖下載篩選。 預設 false |
liked |
boolean |
否 | 按喜歡標記篩選歌曲或素材。 預設 false |
limit |
integer |
否 | 當前頁請求條數上限。 ≥1 · ≤50 · 預設 10 |
origin |
string |
否 | 按曲目來源篩選。 "upload" / "cover" / "extension" / "remaster" |
query |
string |
否 | 搜尋目標曲庫或集合的文字。 長度 ≥1 · 長度 ≤200 |
visibility |
string |
否 | 釋出狀態或可見性篩選條件。 "public" / "private" |
workspace_id |
string |
否 | 用於整理或篩選素材的賬號工作區 ID。 |
呼叫示例
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "library-search",
"arguments": {
"query": "piano",
"limit": 10
}
}
}
playlists-add-clips
向自有播放列表批次新增指定歌曲。
引數
| 引數 | 型別 | 必填 | 說明與限制 |
|---|---|---|---|
clip_ids |
array[string] |
是 | 源歌曲或片段 ID 列表。 項數 ≥1 · 項數 ≤100 |
id |
string |
是 | 播放列表的 ID。 |
呼叫示例
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "playlists-add-clips",
"arguments": {
"id": "PLAYLIST_ID",
"clip_ids": [
"CLIP_ID"
]
}
}
}
playlists-create
在登入賬號中新建播放列表,可按使用者意願設定可見性。
引數
| 引數 | 型別 | 必填 | 說明與限制 |
|---|---|---|---|
description |
string |
否 | 自然語言描述。整理曲庫時用於工作區或播放列表簡介。 長度 ≤2000 |
name |
string |
是 | 工作區、角色、場景或播放列表名稱。 長度 ≥1 · 長度 ≤100 |
visibility |
string |
否 | 釋出狀態或可見性篩選條件。 "public" / "private" · 預設 "private" |
呼叫示例
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "playlists-create",
"arguments": {
"name": "Piano production notes",
"visibility": "private"
}
}
}
playlists-list
查詢當前使用者可見的播放列表,並用返回的遊標翻頁。
引數
| 引數 | 型別 | 必填 | 說明與限制 |
|---|---|---|---|
cursor |
string |
否 | 上一頁返回的不透明分頁遊標。 |
limit |
integer |
否 | 當前頁請求條數上限。 ≥1 · ≤50 · 預設 25 |
query |
string |
否 | 搜尋目標曲庫或集合的文字。 長度 ≤200 |
呼叫示例
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "playlists-list",
"arguments": {
"limit": 10
}
}
}
playlists-list-clips
讀取指定播放列表中的歌曲與分頁結果。
引數
| 引數 | 型別 | 必填 | 說明與限制 |
|---|---|---|---|
cursor |
string |
否 | 上一頁返回的不透明分頁遊標。 |
id |
string |
是 | 播放列表的 ID。 |
limit |
integer |
否 | 當前頁請求條數上限。 ≥1 · ≤50 · 預設 10 |
呼叫示例
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "playlists-list-clips",
"arguments": {
"id": "PLAYLIST_ID",
"limit": 10
}
}
}
playlists-remove-clips
從自有播放列表移除歌曲,曲目本身保留在曲庫。
引數
| 引數 | 型別 | 必填 | 說明與限制 |
|---|---|---|---|
clip_ids |
array[string] |
是 | 源歌曲或片段 ID 列表。 項數 ≥1 · 項數 ≤100 |
id |
string |
是 | 播放列表的 ID。 |
呼叫示例
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "playlists-remove-clips",
"arguments": {
"id": "PLAYLIST_ID",
"clip_ids": [
"CLIP_ID"
]
}
}
}
voices-list
查詢登入賬號可用的音色,須獲對應授權才使用音色 ID。
引數
| 引數 | 型別 | 必填 | 說明與限制 |
|---|---|---|---|
collection |
string |
否 | 要查詢的賬號集合。 "own" / "loved" · 預設 "own" |
cursor |
string |
否 | 上一頁返回的不透明分頁遊標。 |
limit |
integer |
否 | 當前頁請求條數上限。 ≥1 · ≤100 · 預設 20 |
query |
string |
否 | 搜尋目標曲庫或集合的文字。 長度 ≥1 · 長度 ≤200 |
呼叫示例
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "voices-list",
"arguments": {
"limit": 10
}
}
}
voices-start
啟動官方音色採集或建立流程,該工具由登入的 Suno 賬號執行。
引數
此工具無需引數。
呼叫示例
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "voices-start",
"arguments": {}
}
}
workspaces-create
在賬號下建立整理作品的工作區,並返回工作區 ID。
引數
| 引數 | 型別 | 必填 | 說明與限制 |
|---|---|---|---|
description |
string |
否 | 自然語言描述。整理曲庫時用於工作區或播放列表簡介。 長度 ≤2000 |
name |
string |
是 | 工作區、角色、場景或播放列表名稱。 長度 ≥1 · 長度 ≤100 |
呼叫示例
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "workspaces-create",
"arguments": {
"name": "Studio drafts",
"description": "Original instrumental drafts"
}
}
}
workspaces-list
按名稱搜尋並分頁讀取當前賬號的工作區。
引數
| 引數 | 型別 | 必填 | 說明與限制 |
|---|---|---|---|
cursor |
string |
否 | 上一頁返回的不透明分頁遊標。 |
query |
string |
否 | 搜尋目標曲庫或集合的文字。 長度 ≤200 |
呼叫示例
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "workspaces-list",
"arguments": {
"query": "Studio"
}
}
}
workspaces-update-clips
新增或移出工作區內指定歌曲,更新作用於登入賬號。
引數
| 引數 | 型別 | 必填 | 說明與限制 |
|---|---|---|---|
add |
array[string] |
否 | 要加入工作區的曲目 ID 列表。 項數 ≤50 |
id |
string |
是 | 工作區的 ID。 |
remove |
array[string] |
否 | 要從工作區移出的曲目 ID 列表。 項數 ≤50 |
呼叫示例
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "workspaces-update-clips",
"arguments": {
"id": "WORKSPACE_ID",
"add": [
"CLIP_ID"
]
}
}
}
