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.
| Tool | What it does | Spends credits |
|---|---|---|
get_pricing | Current rates, and where to see pack prices. Works without a key. | No |
get_balance | Credits left on the key's account. | No |
transcribe_audio | Audio URL to sheet music (MusicXML + MIDI). Returns a job id. | Yes |
split_stems | Audio URL to vocals, drums, bass, other. Returns a job id. | Yes |
scan_sheet_music | Image URL of one printed page to MusicXML. Returns a job id. | Yes |
get_job | Status of a job. | No |
get_result | The 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
402and nothing more is spent. - Always pass
max_credits. The call is refused, and free, if it would cost more. Agents should callget_pricingor readcredits_chargedto 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
| Resource | URL |
|---|---|
| OpenAPI 3.1 spec | https://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 key | https://api.scoreflipml.roovemusic.com/v1/pricing |
| MCP endpoint | https://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.