Use CantuStudio inside your apps and agents
Create a key, connect your MCP client, and continue your arrangement workflow.
Connect apps and agents to CantuStudio through its API and MCP. Create a key, discover tools, and continue SATB choir arrangement workflows.
What this page shows
This page is the API and MCP console. The text below repeats what the interface already shows: the endpoint, authentication, three methods, the example tool, the client template, the recipe, version discovery, and the translated limits.
The API key section says: Connect your apps and agents to the CantuStudio MCP. Without a session, the invitation is Sign in to generate a key and points to /login. With a session, the card generates, reissues, or revokes the studio key. The selector offers the scopes arrangements:read and arrangements:write. Save your key now. This is the only time the full key is shown. After this, only the masked value is available.
Endpoint and authentication
The client uses https://cantustudio.app/api/mcp/. Use the trailing slash in https://cantustudio.app/api/mcp/. The sample authentication header is Authorization: Bearer $CANTUS_API_KEY. The curl comment says to set CANTUS_API_KEY in a secure environment before running. Each call sends Content-Type application/json and Accept application/json, text/event-stream.
Quickstart methods
The quickstart has three tabs: curl, Python, and MCP client. The three sample calls are JSON-RPC 2.0. The first, id 1, uses the initialize method and sends protocolVersion 2025-03-26, empty capabilities, and clientInfo with name cantus-quickstart and version 1.0.0. The second, id 2, uses the tools/list method and the MCP-Protocol-Version: 2025-03-26 header. The third, id 3, uses the tools/call method with the same protocol header.
The sample tools/call invokes cantus_validate_musicxml. The argument is params.xml, a MusicXML score-partwise version 4.0 with one part named Fixture, one 4/4 measure, and a C4 whole note. The Python sample uses streamable_http_client on the same URL, ClientSession, initialize, list_tools, and call_tool with cantus_validate_musicxml and the same XML in params. This quickstart does not name any other tool.
Client, writes, and recipe
The MCP client tab shows JSON with the endpoint url and the headers Authorization Bearer ${CANTUS_API_KEY} and X-Cantus-Allow-Writes: true. Generic template for MCP clients that support Streamable HTTP. Adapt the URL and Bearer header to your client format; dynamic OAuth is coming in the next wave.
Write operations require X-Cantus-Allow-Writes and confirmed=true. Exports require the arrangements:write scope. The ready-to-copy agent request uses the same MCP and the CANTUS_API_KEY variable. It asks the agent to export MusicXML for the specified arrangement and generate rehearsal links by voice. For exports and other writes, that text asks for the X-Cantus-Allow-Writes: true header, a key with the arrangements:write scope, and confirmed=true after confirmation.
Recipe: hymnbook to SATB. 1. Choose hymns; 2. generate SATB arrangements; 3. export and prepare rehearsal parts. The link opens https://cantustudio.app/api/operations/guide. The API version comes from GET /api/operations/discovery. The page reads version or api_version. While loading, the label is Loading. With no version in the response, the state is Unavailable and Reload API version repeats the same GET.
Limits and best practices
- Use the trailing slash in https://cantustudio.app/api/mcp/.
- Uploads support up to 2 MiB; each request supports up to 4 MiB.
- Write operations require X-Cantus-Allow-Writes and confirmed=true.
- The account JWT lasts 30 days. The API key remains valid until revoked.
- Quota depends on the account plan.
- Exports require the arrangements:write scope.
Frequently asked questions
What is the CantuStudio MCP endpoint?
The client must use https://cantustudio.app/api/mcp/. Use the trailing slash in https://cantustudio.app/api/mcp/.
How do MCP calls authenticate?
Send Authorization: Bearer $CANTUS_API_KEY. The studio key is created only after sign-in. The account JWT lasts 30 days. The API key remains valid until revoked.
Which methods does the page quickstart show?
initialize, tools/list, and tools/call. initialize sends protocolVersion 2025-03-26. The other two send the MCP-Protocol-Version: 2025-03-26 header. The sample tools/call is cantus_validate_musicxml with MusicXML in params.xml.
Can the sample client enable writes?
The sample JSON includes X-Cantus-Allow-Writes: true. Write operations require X-Cantus-Allow-Writes and confirmed=true. Exports require the arrangements:write scope. Clients with dynamic OAuth are coming in the next wave.
Where are the recipe guide and the API version?
The guide opens at https://cantustudio.app/api/operations/guide. The version shown on the page comes from GET /api/operations/discovery, in the version or api_version fields.
Does the API key require sign-in?
Yes. Without a session the page shows Sign in to generate a key, linking to /login. The full key is shown only once; after that only the masked value remains.