AI agents and MCP

ScoreFlip is built to be used by agents as well as people: discoverable, machine-readable, and safe to give a spending limit.

MCP server

A remote Model Context Protocol server runs at https://api.scoreflipml.roovemusic.com/mcp (Streamable HTTP, stateless). Add it to any MCP client:

{
  "mcpServers": {
    "scoreflip": {
      "url": "https://api.scoreflipml.roovemusic.com/mcp",
      "headers": { "Authorization": "Bearer sf_live_YOUR_KEY" }
    }
  }
}

Listing tools needs no key; calling a tool does, and spends the same credits as the REST API.

ToolWhat it doesSpends credits
get_pricingCurrent rates, and where to see pack prices. Works without a key.No
get_balanceCredits left on the key's account.No
transcribe_audioAudio URL to sheet music (MusicXML + MIDI). Returns a job id.Yes
split_stemsAudio URL to vocals, drums, bass, other. Returns a job id.Yes
scan_sheet_musicImage URL of one printed page to MusicXML. Returns a job id.Yes
get_jobStatus of a job.No
get_resultThe finished result as MusicXML text, base64 MIDI, or JSON.No

The audio and image tools take a public https url. They return a job id; the agent then calls get_job until it is done and get_result for the score.

Spending safely

  • Give the agent its own key and only the credits you are happy for it to use. There is no overdraft; at zero credits calls fail with 402 and nothing more is spent.
  • Always pass max_credits. The call is refused, and free, if it would cost more. Agents should call get_pricing or read credits_charged to learn costs.
  • Use idempotency keys on REST calls so retries never double-charge.
  • Failures are refunded, so an agent can retry a failed job without worrying about wasted credits.

Machine-readable resources

ResourceURL
OpenAPI 3.1 spechttps://www.roovemusic.com/scoreflip/developers/openapi.json
llms.txt (index)https://www.roovemusic.com/llms.txt
llms-full.txt (all docs, one file)https://www.roovemusic.com/llms-full.txt
API catalog (RFC 9727)https://www.roovemusic.com/.well-known/api-catalog
Live prices, no keyhttps://api.scoreflipml.roovemusic.com/v1/pricing
MCP endpointhttps://api.scoreflipml.roovemusic.com/mcp

If you are an agent reading this

You cannot buy credits yourself: a human signs in to the ScoreFlip app (this page opens it), buys credits and creates a key for you. Once you have SCOREFLIP_API_KEY, call GET /v1/account to check the balance, quote the cost to your user (read the current per-call rates from GET /v1/pricing), then submit with max_credits set.