MCP server reference

Connect Spatial9 to ChatGPT, Claude, Gemini, Cursor and any MCP client: endpoint, authentication, tools and examples.

The Spatial9 MCP server exposes the full Spatial9 toolset to any client that speaks the Model Context Protocol (MCP). ChatGPT, Claude, Gemini, Grok, Cursor, VS Code, Claude Code, Codex, Gemini CLI, Windsurf, open models such as Qwen, Kimi and DeepSeek through LM Studio, and any other MCP client can call the same tools to create spatial audio, split stems, convert Immersive and ADM BWF to Eclipsa Audio, remix by instruction, publish to YouTube and manage jobs.

This page is the protocol reference. It lists the endpoints, the authentication options, the JSON-RPC handshake, the tools and their arguments, the shape of results and errors, and the client configuration for the most common assistants and coding tools. For account limits and retry rules, see Limits, quotas and errors.

The agentic loop between an assistant and the Spatial9 MCP server
An assistant reads the tool list, calls a tool, polls the job and returns the files.

Endpoints

Spatial9 runs three MCP servers. They use the same protocol; they differ in authentication, allowance and tools.

ServerURLAuthenticationAllowance
Account serverhttps://spatial9.ai/mcpOAuth 2.1 or Authorization: Bearer s9_...Your plan
Guest serverhttps://spatial9.ai/mcp/freeNone3 chorus previews, 1 video in spatial audio, 1 ADM to Eclipsa Audio conversion, 1 instrument split
Client review serverhttps://spatial9.ai/mcp/reviewNone (a Studio Rooms review link, plus its password if set)Notes and approvals on that one review link. See [Client reviews](#client-reviews)

The free guest allowance is available over MCP only. The A2A agent always requires sign-in. See A2A agent reference.

Authentication

The account server accepts two forms of credentials. Both identify the same Spatial9 account and share the same plan.

MethodHow it worksLifetime
OAuth 2.1 with PKCEThe client opens a Spatial9 sign-in page and requests the single scope spatial_audioAccess tokens last one hour; the connection can be revoked
Personal keySend Authorization: Bearer s9_... on every requestUntil you revoke it

Create and revoke personal keys at https://spatial9.ai/connect. Keys always start with s9_. The same key works for the A2A agent.

Transport and protocol

The server implements JSON-RPC 2.0 over HTTP using the Streamable HTTP transport.

PropertyValue
TransportStreamable HTTP, HTTP POST to the endpoint URL
Message formatJSON-RPC 2.0
Supported protocol versions2025-06-18, 2025-03-26, 2024-11-05
Batches1 to 20 messages per request
Reply formatPlain JSON or Server-Sent Events
ExtensionsMCP Apps, io.modelcontextprotocol/ui, for interactive cards in assistants that support it

Send these headers on every request.

HeaderValue
AuthorizationBearer s9_... (account server only)
Content-Typeapplication/json
Acceptapplication/json, text/event-stream
Mcp-Session-IdThe value returned by initialize, if the server sent one
MCP-Protocol-VersionThe negotiated version, for example 2025-06-18

A reply can arrive as plain JSON or as an SSE stream. If the Content-Type of the reply is text/event-stream, parse the last data: line as the JSON-RPC message.

Handshake

Every session starts with three messages. Most MCP clients perform them automatically; send them yourself only when you call the server with raw HTTP.

  1. Send initialize with your protocol version, capabilities and client information.
  2. Send the notifications/initialized notification. It has no id, and the server answers with HTTP 202 and no body.
  3. Call tools with tools/call, echoing Mcp-Session-Id and MCP-Protocol-Version on each request.

Initialize request

{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"my-client","version":"1.0.0"}}}

The server may return an Mcp-Session-Id response header. Store it and send it back on every later request.

Initialized notification

{"jsonrpc":"2.0","method":"notifications/initialized"}

Raw HTTP example

curl -s https://spatial9.ai/mcp \
  -H "Authorization: Bearer $SPATIAL9_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"my-client","version":"1.0.0"}}}'

Tool catalog

The server exposes more than 50 tools. Call get_capabilities first: it lists the current formats, options and limits, so your agent does not rely on assumptions. The main tools are grouped below.

GroupTools
Createcreate_spatial_audio, create_from_stems, split_stems, video_in_spatial_audio
Convertconvert_dolby_to_eclipsa, adm_to_eclipsa
Shapeget_mix, remix_render, apply_effects, find_spaces, save_mix_template
Sharepublish_to_youtube, create_social_clip, preview_chorus
Learnlearn_spatial_audio, list_lessons, get_lesson, mix_my_genre
Manageget_job_status, list_renders, cancel_render, get_usage, get_versions
Studio Roomslist_rooms, get_room, create_room, add_to_room, get_room_feedback, create_share_link, list_share_links, send_room_invite, revoke_share_link, reply_to_note, resolve_notes, get_fix_list, build_fix_list, check_fix_item, get_approval_status
Supportingget_capabilities, create_upload_link, get_downloads, get_clip, get_youtube_upload, get_effects, analyze_song, find_effects, combine_quiet_stems, try_a_sample, list_samples

The authoritative list and every input schema are returned by the standard tools/list method.

Spatial9 MCP tools grouped by create, convert, shape, share, learn and manage
The toolbox an agent sees after connecting.

Uploading a file

Use a public https link as source_url, or upload a private file first. Streaming pages, such as YouTube or Spotify links, cannot be used as input.

ArgumentTypeDescription
filenamestringName of the file you will upload
media_typestringmusic, video or image

The result contains upload_id and direct_upload_url. PUT the file to the URL, then pass upload_id to the next tool. Files can be up to 2 GB and the link is valid for 2 hours.

curl -X PUT "$DIRECT_UPLOAD_URL" -H "Content-Type: audio/wav" --data-binary @my-single.wav

Creating spatial audio

create_spatial_audio

ArgumentTypeRequiredDescription
source_urlstringOne of source_url or upload_idPublic https link to the master
upload_idstringOne of source_url or upload_idId returned by create_upload_link
media_typestringYesmusic or video
titlestringYesTitle shown on downloads and the stage player
stylestringNolive_concert, club, cinema or intimate_studio
include_binauralbooleanNoAlso deliver a binaural headphone WAV
include_videobooleanNoAlso deliver a YouTube-ready MP4
idempotency_keystringRecommendedStable key; a retry with the same key returns the same job
{"jsonrpc":"2.0","id":7,"method":"tools/call","params":{"name":"create_spatial_audio","arguments":{"source_url":"https://example.com/masters/my-single.wav","media_type":"music","title":"My Single","style":"live_concert","include_binaural":true,"include_video":true,"idempotency_key":"release-2026-10-21-my-single"}}}

The result carries result.structuredContent with the new job_id, its status, stage and progress. A song takes 10-20 minutes and a short video a few minutes. Spatial9 also emails the links when the job finishes.

create_from_stems

ArgumentTypeDescription
stemsarray2 to 16 objects of the form { url or upload_id, name, instrument }
titlestringTitle of the mix
idempotency_keystringStable key for retries

The instrument value is one of vocals, drums, bass, guitar, piano, keys, synth, strings, brass or other.

split_stems

split_stems takes title and idempotency_key with a source and returns a job that runs for 4-8 minutes. Downloads are listed as stem:<stem_id> entries plus a stems_package ZIP. Stems with little content are flagged silent or near_silent; combine_quiet_stems merges them.

convert_dolby_to_eclipsa

ArgumentTypeDescription
source_url or upload_idstringThe Dolby or ADM BWF source
titlestringTitle of the result
include_binauralbooleanAlso deliver a binaural WAV
include_videobooleanAlso deliver an MP4
visual_url or visual_upload_idstringOptional image or video used with include_video
idempotency_keystringStable key for retries

ADM BWF keeps its beds and objects. AC-3, E-AC-3 and TrueHD keep speaker channels up to 7.1 but not the Immersive height and object layer. Immersive is accepted as an input only.

preview_chorus

preview_chorus takes title with a source, plus optional start_sec and seconds. It returns a clip_id; poll get_clip until the clip is ready. A preview finishes in under 2 minutes, is free and uses no project.

Following a job

get_job_status

ArgumentTypeDescription
job_idstringId returned by a create, convert or remix tool

The result returns status, stage, progress and title. Stages include queued, separating, placing, encoding and rendering_binaural. The terminal statuses are completed, failed and cancelled. Poll every 30-60 seconds.

{"jsonrpc":"2.0","id":8,"method":"tools/call","params":{"name":"get_job_status","arguments":{"job_id":"YOUR_JOB_ID"}}}

get_downloads

Call get_downloads with the job_id once the status is completed. It returns downloads: [{id, label, url, filename}].

Download idContent
iamfIAMF, 16-channel third-order Ambisonics
iamf_mp4Eclipsa Audio in MP4
youtube_videoYouTube-ready MP4
binauralBinaural headphone WAV

Music jobs also include a stage player link, and video jobs also include an Ambisonics WAV. Present files by label and use the url exactly as returned.

Other management tools

list_renders lists your jobs, cancel_render stops a running job, get_usage reports what is left on your plan and get_versions lists the versions of a mix.

Remixing and effects

remix_render

ArgumentTypeDescription
job_idstringThe job to remix
changesarrayOne entry per instrument
previewbooleantrue runs a free dry run and starts no render
stylestringOptional new style
idempotency_keystringRequired for the real render

Each entry in changes names an instrument and any of the following fields.

FieldDescription
direction, heightPosition in plain terms
azimuth_deg, elevation_deg, distancePosition in exact terms
gain_db, gain_change_db, muteLevel
motion.shapecircle, spiral_up, rise, sink, sweep, fly_over, come_close, move_away, wander or none
motion.whenMusical moment, for example chorus or drop
motion.speed, motion.clockwiseSpeed and direction of the motion
{"job_id":"YOUR_JOB_ID","preview":true,"changes":[{"instrument":"guitar","motion":{"shape":"circle","when":"chorus","speed":"medium","clockwise":true}},{"instrument":"vocals","gain_change_db":2}]}

Read the current placement with get_mix before you change it. A real remix takes 3-6 minutes.

Effects, spaces and templates

find_effects takes a query and searches more than 1,400 presets. apply_effects takes action: add with a preset_id, or up to 6 effects with their params; target or stem_id chooses the stem or the master bus. find_spaces searches 6,700 rooms, halls and stadiums. save_mix_template saves a mix so you can reuse it later with template_id.

Publishing

publish_to_youtube takes job_id, privacy (default unlisted), title, description and tags. If YouTube is not yet connected, the tool returns a connect link; call it again after the user confirms. Poll get_youtube_upload for the video link. create_social_clip takes a job_id and produces a 9:16 MP4; poll get_clip for the result.

Studio Rooms

The Studio Rooms tools let an assistant run the client review loop of Studio Rooms for you: deliver a mix, share it, read what the client said, plan the fixes and report what is approved. Everything stays in your rooms, so you and your team see the same notes, versions and decisions on the website.

ToolWhat it doesAccess needed
list_rooms, get_roomYour rooms, their files grouped as versions, open notes and the latest approvalView
get_room_feedbackTimecoded, section, spatial and transcribed voice notes, with replies and resolved stateView
list_share_linksLinks with opens, payments and invitesView
get_fix_list, get_approval_statusThe current fix list, and the latest decision for each versionView
create_room, add_to_roomCreate a room, or deliver a finished render (job_id plus output, for example binaural or iamf_mp4) or an upload as a new versionManage
create_share_link, revoke_share_linkPublish a link with password, expiry, watermark, download, file scope and an optional price; or switch it offManage, confirmed: true
send_room_inviteEmail a share link to up to 10 peopleManage, confirmed: true
reply_to_note, resolve_notesAnswer a note at the same moment, and resolve notes when they are fixedManage
build_fix_list, check_fix_itemTurn open notes into a prioritized fix list, and tick fixes off (ticking resolves the notes behind them)Manage

Example requests:

  • "Put the binaural version of my last render in the Neon Nights room as v3."
  • "Make a password-protected link for the latest version that expires on Friday, and email it to the address I give you."
  • "What did the client say about v2? Build me a fix list sorted by priority."
  • "Reply to the note at 1:12 that the vocal is now wider, and resolve it."
  • "Which of my mixes are approved, and which still need changes?"

Access per connection

On the Connect page, every key and every connected app has a Studio Rooms access switch: Off, View (read rooms, notes, links, fix lists and approvals) or Manage (everything above). It works on every plan. Notes and files an assistant adds are labelled with its name, for example "Claude (AI assistant)", so guests and teammates always know who wrote them. Room plan limits, link limits and payout checks are the same as on the website.

Client reviews

Clients who received a Studio Rooms review link can connect their own assistant to it. No Spatial9 account is needed. The client server only offers these four tools, and it can only see what the link itself shows.

ToolWhat it does
open_review_linkOpens the link (full URL or code, plus password if set). Returns a session_token, the room, the files grouped by version with open notes and decisions, and whether notes and downloads are allowed
get_review_notesReads the notes on the link, optionally for one file_id, with spatial directions in plain words
add_review_noteLeaves a note at a time (at), over a section (at and until), or at a position (azimuth, elevation). Needs name and confirmed: true
decide_on_versionApproves a version or requests changes (a note is required for changes). Needs name and confirmed: true

Setup for the client:

  1. Add https://spatial9.ai/mcp/review as a connector or custom MCP server in ChatGPT, Claude, Gemini or any MCP client.
  2. Paste the review link in the chat, for example "Open my Spatial9 review link https://spatial9.ai/review/... and help me review the latest version."
  3. Ask: "What did the studio change in the latest version?", "Leave a note at 1:12 that the vocal feels too far back", "Approve v3".

The review page has an Review with your AI assistant button that walks clients through these steps.

  • The link's rules apply. File scope, password, expiry, revocation and whether notes are allowed are checked on every call. If the studio revokes the link, the assistant loses access at once. A session lasts 6 hours; after that the assistant opens the link again.
  • Nothing is posted without a yes. Notes and decisions need confirmed: true, and assistants are instructed to read the exact text back first.
  • Clear labels. Notes and decisions are signed with the client's name and "(via AI assistant)", so the studio knows how they were left.
  • Private. Studio tools are not available on this server, review links are never stored in the call log, and notes are rate limited per link.

Results and errors

Every reply follows JSON-RPC 2.0. There are three outcomes to handle.

OutcomeWhere to lookWhat to do
Successresult.structuredContentRead fields such as job_id, status, stage and progress
Tool failureresult.isError: true, reason in result.content[0].textPass the message on in plain words and stop
Protocol errorTop-level error.messageFix the request, for example a bad parameter
HTTP 401Response statusThe key is wrong or revoked; create a new one at /connect

A tool failure looks like this.

{"jsonrpc":"2.0","id":7,"result":{"isError":true,"content":[{"type":"text","text":"Plain-language reason from Spatial9"}]}}

At plan limits the server does not upsell; it returns a plain explanation and tells the agent to say so to the user.

Client setup

Claude Code

claude mcp add --transport http spatial9 https://spatial9.ai/mcp --header "Authorization: Bearer $SPATIAL9_KEY"
claude mcp add --transport http spatial9-free https://spatial9.ai/mcp/free

Gemini CLI

gemini mcp add --transport http spatial9 https://spatial9.ai/mcp

mcp.json

Cursor, VS Code, Windsurf and other clients that read an mcp.json file accept this entry. Some clients use "type":"streamableHttp" instead of "type":"http".

{"mcpServers":{"spatial9":{"type":"http","url":"https://spatial9.ai/mcp","headers":{"Authorization":"Bearer ${SPATIAL9_KEY}"}}}}

ChatGPT and Claude

In ChatGPT, a paid plan with Developer mode is required; add Spatial9 as an app and sign in with OAuth. In Claude, open Settings, then Connectors, and add a custom connector with the account server URL. You can try the flow on the MCP demo.

Cost and guardrails

Each render uses one project from your plan and is refunded automatically on failure. Chorus previews and remix previews are free. The server applies these guardrails:

  • Idempotency keys prevent duplicate renders on retry.
  • A single OAuth scope, spatial_audio, limits what a connection can do.
  • Publishing requires a confirmed title, description and privacy.
  • Free previews let users listen before spending a project.
  • cancel_render stops work that is no longer needed.
  • At plan limits, the agent is told to say so plainly.

Next steps

Go deeper on the blog