Skip to main content
Glama
kie-suno6-mcp
by jk123

kie-suno6-mcp

version license node

Suno V6-first MCP server for Kie.ai. 13 tools, zero dependencies, stdio JSON-RPC. Pluggable provider registry (Kie.ai default).

Features

  • All 13 tools live-verified against Kie.ai (generate, wait, poll, download, download_url, upload, upload_extend, cover, persona, extend, credits, tasks, info)

  • Dual V6 result parser (resultJson + sunoData), per-take candidate URL lists (asset URL first — stream URLs observed serving 0 bytes post-SUCCESS)

  • Browser-UA downloads with sha256 two-take CDN-collision detection + auto-retry

  • KIE error-code mapping (400/402/409/422/429/433/451) with actionable hints

  • Key self-heal: KIE_SUNO_CONFIG > KIE_SUNO_ENV_FILE (.env) > spawn env — rotated keys need no re-registration

  • Local, opt-in telemetry (0.5.0): per-call usage log, deduped API-error corpus, terminal result-shape fixtures — off by default, zero network, the API key is never written

  • 45 zero-credit unit tests (local HTTP server + fixtures + telemetry)

Related MCP server: Suno-MCP

Requirements

Install

git clone https://github.com/jk123/kie-suno6-mcp

MCP client (stdio) — Hermes config.yaml style:

kie-suno6-mcp:
  command: node
  args: ["/path/to/kie-suno6-mcp/server.js"]
  env:
    KIE_AI_API_KEY: "sk-..."        # or KIE_SUNO_ENV_FILE: /path/to/.env

mcpm:

mcpm new kie-suno6-mcp --type stdio --command node --args /path/to/kie-suno6-mcp/server.js

Configuration

Variable

Default

Purpose

KIE_SUNO_PROVIDER

kieai

Provider registry key

KIE_AI_API_KEY

—

Kie.ai key (any of the 3 resolution paths)

KIE_SUNO_CONFIG

—

Path to JSON config overriding env

KIE_SUNO_ENV_FILE

~/.hermes/.env

.env with KIE_AI_API_KEY

KIE_SUNO_DOWNLOAD_DIR

cwd

Where download writes takes

KIE_SUNO_RETRY_DELAY_MS

35000

Collision-retry delay

KIE_SUNO_TELEMETRY

off

Set on to write usage/error/shape capture to .telemetry/

KIE_SUNO_TELEMETRY_DIR

<repo>/.telemetry

Where telemetry files are written

Tools (credit cost)

Free: suno_info, suno_credits, suno_poll, suno_tasks, suno_download, suno_download_url, suno_wait. Paid: suno_generate (~12 cr/task, 2 takes), suno_extend, suno_upload, suno_upload_extend, suno_cover (≈2 × generate, source-dependent), suno_persona (≈2 × generate).

Known behaviors

  • suno_persona upserts on taskId+audioId (no 409; re-calls overwrite name/description in place)

  • suno_download prefers persistent tempfile.aiquickdraw.com asset URLs over audiostream.kie.ai stream URLs

  • suno_extend / suno_upload_extend: defaultParamFlag=false inherits source params; true requires prompt+style+title+continueAt

  • Fresh V6 tasks return results via sunoData, not resultJson

Telemetry (0.5.0)

Local, opt-in, zero-network usage + debug capture for driving the next dev cycle. Everything writes to <repo>/.telemetry/ (gitignored) and nothing ever leaves the machine.

  • Default: OFF for anyone who clones. Enable with KIE_SUNO_TELEMETRY=on (spawn env, or a KIE_SUNO_TELEMETRY=on line in your KIE_SUNO_ENV_FILE .env — same self-healing source as the API key).

  • What it captures:

    • usage-YYYY-MM-DD.jsonl — one line per boot + per tool call: tool, sanitized args, duration, ok/error, and a compact result summary. Pruned after 30 days.

    • errors.json — a deduped index of API-error responses (code + msg hash → count, first/last seen, URL, 2 KB body excerpt). This is where a live 433/402/451/429 gets its real shape captured.

    • shapes/*.json + shapes-index.jsonl — terminal record-info payloads, deduped by structural signature, so a first-ever V6_WILD (or a new resultJson shape) becomes a drop-in unit-test fixture. Capped at 60 files.

  • Privacy floor: the API key is never written (only its source label, e.g. env-file(~/.hermes/.env)); fileBase64 becomes a byte-length stub; prompt/description are truncated to 80 chars + total length.

  • Self-disarm: a failed write disables telemetry for the process lifetime instead of ever breaking a tool call.

  • Digest for the next version: node telemetry-report.js (add --json for machine output) → per-tool call/error counts + p50/p95 latency, top captured errors, and a test-candidates list (error codes / result shapes seen live but not yet fixture-tested).

Test

node test/unit.js   # 45/45, no API access needed
node smoke.js       # JSON-RPC handshake, free
node telemetry-report.js   # digest of .telemetry/ (if enabled)

Not yet tested live

433/402/451/429 error paths and the V6_WILD resultJson shape are still unit-mapped/fixture-only — with telemetry on, the first live occurrence is now captured automatically into .telemetry/ (see node telemetry-report.js → test candidates), so they can be promoted to fixtures as they happen. A/B persona quality remains an ear test.

MIT. No secrets in this repo.

Available Tools

13 tools
suno_coverC

Cover generation from an uploaded source (upload-cover). Supports personaId. Costs credits. Returns task_id.

Inputs: uploadUrl (required), model, style, title, +10 more.

suno_creditsA

Current credit balance. Free, no-credit check for 402/433 triage.

Inputs: no named parameters.

suno_downloadA

Download all takes of a finished task with browser-UA (Cloudflare 403 avoidance) + sha256 two-take collision check (CDN race ~30s). Free.

Inputs: taskId (required), hint, destDir.

suno_download_urlC

Download a single asset URL (browser-UA).

Inputs: url (required), hint, destDir.

suno_extendA

Extend an existing Suno task's take (generate/extend). Omit custom fields to inherit source params (only audioId+model needed). In custom mode (any of prompt/style/title/continueAt set, or defaultParamFlag=true) ALL of prompt+style+title+continueAt are required — model must match the source model version. Costs credits. Returns task_id.

Inputs: taskId (required), audioId (required), model, style, +12 more.

suno_generateA

Submit text-to-music (Suno). Costs credits immediately (~12 for V6). Returns task_id. One task = 2 takes — do NOT submit twice for options. suno_poll/wait parse results from either resultJson (V6) or sunoData (observed live shape) automatically.

Inputs: model, style, title, prompt, +9 more.

suno_infoB

Server self-description: provider, default model, download dir, available providers. Free.

Inputs: no named parameters.

suno_personaA

Create a persona (voice fingerprint) from a SUCCESSFUL task's take. Costs credits. OBSERVED (2026-09-22): re-calling with the same taskId+audioId does NOT 409 — it returns the same personaId and OVERWRITES name+description in place. Always send the full intended description; a careless re-call pollutes it.

Inputs: name (required), taskId (required), audioId (required), description (required), +7 more.

suno_pollB

Check a task (record-info). V6-aware: parses resultJson, gates on terminal status + non-empty audio, warns instead of tempting re-submission. Free.

Inputs: taskId (required).

suno_tasksB

Summarize poll status for a list of task ids in one call (free).

Inputs: task_ids (required).

suno_uploadA

Upload an MP3 to the kie.ai CDN (file-stream-upload). Required first step before suno_cover or suno_upload_extend — third-party URLs fail with 'File fetch failed'. Free (no generation credits).

Inputs: fileName, filePath, fileBase64, uploadPath.

suno_upload_extendB

Extend uploaded audio (upload-extend). continueAt is REQUIRED (seconds, 0 < continueAt < source duration). defaultParamFlag=false: uploadUrl+prompt+continueAt. defaultParamFlag=true: also style+title (instrumental=false). Model must match source model version. Costs credits. Returns task_id.

Inputs: uploadUrl (required), continueAt (required), model, style, +5 more.

suno_waitA

Block until a task is terminal (default poll 12s, max 900s). Returns final status + audio URLs.

Inputs: taskId (required), timeoutSeconds, intervalSeconds.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 13 tools

    Disambiguation4/5

    Most tools target clear distinct actions: upload, generate, cover, extend, persona, poll/wait/download, credits. Some boundary overlap exists between suno_poll, suno_wait, and suno_tasks, and between suno_extend and suno_upload_extend, but descriptions clarify the different use cases.

    Naming Consistency4/5

    All tools share the consistent suno_ prefix and use lowercase snake_case. The pattern mixes verbs (generate, upload, poll, wait) with nouns (info, tasks, persona, credits), which is a minor deviation from a strict verb_noun scheme.

    Tool Count5/5

    13 tools is well-scoped for a Suno API server covering generation, extension, uploads, personas, status polling, downloads, and credit checks. Each tool addresses a meaningful part of the workflow without redundant bloat.

    Completeness4/5

    The toolset covers the full generation lifecycle: upload sources, create covers/extensions, submit text-to-music, create personas, poll/wait for results, and download outputs. Minor gaps like canceling in-progress tasks or listing previous tasks are not covered, but agents can complete primary workflows without dead ends.

    Maintenance

    ActivityNo data
    ResponsivenessSyncing

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables 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.
      10
      3
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI music generation and management through the Suno API, supporting text prompts, custom lyrics, track status monitoring, and credit management.
      16
      -